| Further HTML5-fication, plus fix some case consistency mismatches. - swerc - an… | |
| git clone git://git.suckless.org/swerc | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit 37304deaf08821b7758d14febb00941a5d7657c6 | |
| parent d9257087e1d9fac9dfae34e5f8dd8518a7a07386 | |
| Author: [email protected] <unknown> | |
| Date: Tue, 28 Jul 2009 20:49:53 +0200 | |
| Further HTML5-fication, plus fix some case consistency mismatches. | |
| Diffstat: | |
| M apps/bridge/app.rc | 2 +- | |
| M apps/bridge/comments_list.tpl | 6 +++--- | |
| M apps/bridge/foot.tpl | 12 ++++++------ | |
| M apps/dirdir/edit.tpl | 12 ++++++------ | |
| M tpl/_debug.tpl | 10 +++++----- | |
| M tpl/_users/login.tpl | 10 +++++----- | |
| 6 files changed, 26 insertions(+), 26 deletions(-) | |
| --- | |
| diff --git a/apps/bridge/app.rc b/apps/bridge/app.rc | |
| @@ -31,7 +31,7 @@ fn bridge_init { | |
| ll_add handlers_body_foot template apps/bridge/foot.tpl | |
| } | |
| if not if(~ $REQUEST_METHOD GET) | |
| - ll_add handlers_body_foot echo '<hr /><p>To post a comment you nee… | |
| + ll_add handlers_body_foot echo '<hr><p>To post a comment you need … | |
| } | |
| } | |
| diff --git a/apps/bridge/comments_list.tpl b/apps/bridge/comments_list.tpl | |
| @@ -1,4 +1,4 @@ | |
| -<hr /> | |
| +<hr> | |
| <h2>Comments</h2> | |
| % for(c in `{ls $comments_dir/}) { | |
| @@ -6,8 +6,8 @@ | |
| <div class="comment"> | |
| <h5>By: <i>%(`{cat $c/user}%)</i></b> (%(`{cat $c/posted}%)) | |
| </h5> | |
| -% cat $c/body | escape_html | sed 's,$,<br />,' | |
| - <hr /></div> | |
| +% cat $c/body | escape_html | sed 's,$,<br>,' | |
| + <hr></div> | |
| % } | |
| % } | |
| diff --git a/apps/bridge/foot.tpl b/apps/bridge/foot.tpl | |
| @@ -1,22 +1,22 @@ | |
| -<hr /> | |
| +<hr> | |
| % notices_handler | |
| <form action="" method="post"> | |
| <textarea name="comment_text" id="comment_text" cols="80" rows="16">%($"sa… | |
| - <br /> | |
| - <input type="submit" name="bridge_post" value="Post a comment" /> | |
| + <br> | |
| + <input type="submit" name="bridge_post" value="Post a comment"> | |
| % if(~ $#logged_user 0 && ! ~ $#allow_new_user_comments 0) { | |
| <label>New user name: | |
| - <input type="text" name="comment_user" value="%($"post_arg_comment_use… | |
| + <input type="text" name="comment_user" value="%($"post_arg_comment_use… | |
| </label> | |
| <label>Password: | |
| - <input type="password" name="comment_passwd" value="" /> | |
| + <input type="password" name="comment_passwd" value=""> | |
| </label> | |
| <label>Repeat password: | |
| - <input type="password" name="comment_passwd2" value="" /> | |
| + <input type="password" name="comment_passwd2" value=""> | |
| </label> | |
| <div style="font-size: 70%"> | |
| Enter your desired user name/password and after your comment has been revi… | |
| diff --git a/apps/dirdir/edit.tpl b/apps/dirdir/edit.tpl | |
| @@ -1,7 +1,7 @@ | |
| <div> | |
| <h1>Editing: <a href="%($req_path%)">%($req_path%)</a></h1> | |
| - <br /> | |
| - <form action="" method="post"> | |
| + <br> | |
| + <form action="" method="POST"> | |
| <textarea name="edit_text" id="edit_text" cols="80" rows="43">%{ | |
| # FIXME Extra trailing new lines get added to the content somehow, should avoi… | |
| if(~ $#post_arg_edit_text 0 && test -f $dirdir_file) | |
| @@ -10,15 +10,15 @@ | |
| echo -n $post_arg_edit_text | escape_html | |
| %}</textarea> | |
| - <br /> | |
| - <input type="submit" name="dirdir_save" value="Save"/> | |
| - <input type="submit" name="dirdir_preview" value="Preview" /> | |
| + <br> | |
| + <input type="submit" name="dirdir_save" value="Save"> | |
| + <input type="submit" name="dirdir_preview" value="Preview"> | |
| <small>DirDir documents are written using <a href="http://daringfireba… | |
| </form> | |
| </div> | |
| % if(! ~ $"post_arg_dirdir_preview '') { | |
| - <H2>Preview:</H2> | |
| + <h2>Preview:</h2> | |
| <div id="preview"> | |
| % echo $post_arg_edit_text | $formatter | |
| </div> | |
| diff --git a/tpl/_debug.tpl b/tpl/_debug.tpl | |
| @@ -1,7 +1,7 @@ | |
| % if(! ~ $#debug_shell 0) { | |
| <form method="POST" name="prompt"> | |
| -<input size="80" type="text" name="command" value="%($"post_arg_command%)" /> | |
| -<input type="submit" Value="Run" /> | |
| +<input size="80" type="text" name="command" value="%($"post_arg_command%)"> | |
| +<input type="submit" Value="Run"> | |
| </form> | |
| <script language="javascript"><!-- | |
| document.prompt.command.focus() | |
| @@ -14,16 +14,16 @@ fn evl { | |
| rc -c 'flag s +; flag x +;'^$post_arg_command | |
| } | |
| if(! ~ $#post_arg_command 0 && ! ~ $#post_arg_command '') { | |
| - echo '<hr /><pre>' | |
| + echo '<hr><pre>' | |
| evl | escape_html |[2] awk '{print "<b>"$0"</b>"}' | |
| echo '</pre>' | |
| } | |
| %} | |
| % } | |
| -<hr /><pre> | |
| +<hr><pre> | |
| % env | escape_html | |
| -</pre><hr /> | |
| +</pre><hr> | |
| % umask | |
| diff --git a/tpl/_users/login.tpl b/tpl/_users/login.tpl | |
| @@ -6,13 +6,13 @@ | |
| % if not { | |
| % if (~ $REQUEST_METHOD POST) | |
| % echo '<div class="notify_errors">Login failed!</div>' | |
| -<form method="post" action="" style="text-align: right; float: left;"> | |
| +<form method="POST" action="" style="text-align: right; float: left;"> | |
| <fieldset> | |
| - <label>User name: <input type="text" name="user_name" value="%($"post_arg_… | |
| - <label>User password: <input type="password" name="user_password" /></labe… | |
| - <input name="s" type="submit" value="Login" /> | |
| + <label>User name: <input type="text" name="user_name" value="%($"post_arg_… | |
| + <label>User password: <input type="password" name="user_password"></label>… | |
| + <input name="s" type="submit" value="Login"> | |
| </fieldset> | |
| </form> | |
| % } | |
| -<br style="clear:left" /> | |
| +<br style="clear:left"> |