shithub: werc

Download patch

ref: 5f4bcc168c1685d2dbbfa29b83ef42113c89e234
parent: 623898ee35004c775675ad2cd2987d0f8b53adc6
author: uriel <uriel@engel.se.cat-v.org>
date: Sun Jan 25 11:54:03 EST 2009

Fix syntax error, and some cosmetic improvments to html form.

--- a/apps/bridge/app.rc
+++ b/apps/bridge/app.rc
@@ -12,7 +12,7 @@
                 get_post_args comment_user_name comment_user_password
                 # XXX Should do this too if user not in required group
                 if(! login_user $comment_user_name $comment_user_password) {
-                    u=$comment_user_name ':' $comment_user_password
+                    u=$comment_user_name':'$comment_user_password
                     d=$d^'_pending'
                 }
                 if not
--- a/apps/bridge/foot.tpl
+++ b/apps/bridge/foot.tpl
@@ -17,8 +17,8 @@
     <br />
     <input type="submit" name="post_comment" value="Post a comment" />
 % if(! check_user) {
-    User: <input type="text" name="comment_user_name" value="" />
-    Password: <input type="password" name="comment_user_password" value="" />
+    <label>User: <input type="text" name="comment_user_name" value="" /></label>
+    <label>Password: <input type="password" name="comment_user_password" value="" /></label>
     <div style="font-size: 70%">If you are not registered enter your desired user/password and your account will be created when your comment is approved.</div>
 % }
 </form>