aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dudle.css2
-rw-r--r--poll.rb7
2 files changed, 5 insertions, 4 deletions
diff --git a/dudle.css b/dudle.css
index a7c9fd2..868a1d3 100644
--- a/dudle.css
+++ b/dudle.css
@@ -101,3 +101,5 @@ h1 {
text-align: center;
}
+div.comment { margin-top: 1ex; }
+
diff --git a/poll.rb b/poll.rb
index 931ca5d..114ab41 100644
--- a/poll.rb
+++ b/poll.rb
@@ -179,14 +179,14 @@ EDITDELETE
end
def comment_to_html
ret = "<div id='comments'>"
- ret += "<fieldset><legend>Comments</legend>"
+ ret += "<h2>Comments</h2>"
unless @comment.empty?
@comment.each_with_index{|c,i|
time,name,comment = c
ret += <<COMMENT
<form method='post' action='.'>
-<div>
+<div class='comment'>
<fieldset>
<legend>#{name} said on #{time.strftime("%d.%m, %H:%M")}
<input type='hidden' name='delete_comment' value='#{i}' />
@@ -204,7 +204,7 @@ COMMENT
# ADD COMMENT
ret += <<ADDCOMMENT
<form method='post' action='.'>
- <div>
+ <div class='comment'>
<fieldset>
<legend>
<input value='anonymous' type='text' name='commentname' size='9' /> says&nbsp;
@@ -215,7 +215,6 @@ COMMENT
</div>
</form>
ADDCOMMENT
- ret += "</fieldset>"
ret += "</div>\n"
ret