aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-20 00:30:19 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-20 00:30:19 +0100
commitc3d97c3944186d3ad08bcd50b496f3e64ebd8c3b (patch)
treec59bf557a0de56464f923eff2a8679153e51e59a
parentc827b6deaadb0c08c003cd8e6410fc02b49513fc (diff)
home tab + bugfix
-rwxr-xr-xconfig_poll.rb2
-rw-r--r--html.rb3
2 files changed, 3 insertions, 2 deletions
diff --git a/config_poll.rb b/config_poll.rb
index 1bb30c9..65484df 100755
--- a/config_poll.rb
+++ b/config_poll.rb
@@ -220,6 +220,6 @@ REMOVE
$html << "</div></body>"
-cgi.out($cgi)
+$html.out($cgi)
end
diff --git a/html.rb b/html.rb
index e0c521f..fc92971 100644
--- a/html.rb
+++ b/html.rb
@@ -69,7 +69,8 @@ end
module Dudle
def Dudle.tabs(active_tab)
ret = "<div id='tabs'><ul>"
- [["Poll","."],
+ [["Home",".."],
+ ["Poll","."],
["Admin","config.cgi"]].each{|tab,file|
if tab == active_tab
ret += "<li id='active_tab' >&nbsp;#{tab}&nbsp;</li> "