aboutsummaryrefslogtreecommitdiff
path: root/participate.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-10-25 21:12:42 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-10-25 21:12:42 +0100
commit4bc0df7fb2758da15b306eb168529c6a3acb816f (patch)
treeed6bd2e5c299035c298f2411138ed6d849acf67b /participate.rb
parent967c201902dcd36899122b75d26ed663e7e0066e (diff)
usability: config is now a tab
Diffstat (limited to 'participate.rb')
-rwxr-xr-xparticipate.rb28
1 files changed, 12 insertions, 16 deletions
diff --git a/participate.rb b/participate.rb
index d828079..1ac9f64 100755
--- a/participate.rb
+++ b/participate.rb
@@ -73,34 +73,30 @@ $htmlout += '<link rel="alternate" type="application/atom+xml" href="atom.cgi"
$htmlout += <<HEAD
</head>
<body>
- <div>
- <small>
- <a href='..' style='text-decoration:none'>#{BACK}</a>
- <a href='config.cgi' style='text-decoration:none'>config</a>
- history:#{table.history_to_html}
- </small>
+ <div id='tabs'>
+ <ul>
+ <li id='active_tab' >&nbsp;poll&nbsp;</li>
+ <li class='nonactive_tab'><a href='config.cgi'>&nbsp;config&nbsp;</a></li>
+ </ul>
</div>
+ <div id='main'>
+ <p id='history'>history:#{table.history_to_html}</p>
HEAD
# TABLE
$htmlout += "<h1>#{table.name}</h1>"
if VCS.revno == 1
$htmlout += <<HINT
-<pre
- style="font-family:Courier New,Courier,monospace;
- letter-spacing:0;
- margin-top: -8ex;
- line-height:95%;"
->
+<pre id='configwarning'>
.
.:;:.
.:;;;;;:.
;;;;;
;;;;;
;;;;;
- ;;;;; Please press the config link on
- ;:;;; the top left corner of this page
- ;;; : to configure this poll!
+ ;;;;; Please configure this poll
+ ;:;;; within the config tab!
+ ;;; :
;:;
;.: .
: .
@@ -121,7 +117,7 @@ TABLE
$htmlout += table.comment_to_html
end
-$htmlout += "</body>"
+$htmlout += "</div></body>"
$htmlout += "</html>"