aboutsummaryrefslogtreecommitdiff
path: root/html.rb
diff options
context:
space:
mode:
Diffstat (limited to 'html.rb')
-rw-r--r--html.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/html.rb b/html.rb
index ae44d17..17baa5e 100644
--- a/html.rb
+++ b/html.rb
@@ -83,15 +83,21 @@ module Dudle
def Dudle.tabs(active_tab)
ret = "<div id='tabs'><ul>"
[["Home",".."],
- ["Customize","customize.cgi"],
+ ["",""],
["Poll","."],
["History","history.cgi"],
+ ["",""],
["Edit Columns","edit_columns.cgi"],
["Access Control","access_control.cgi"],
- ["Delete Poll","delete_poll.cgi"]
+ ["Delete Poll","delete_poll.cgi"],
+ ["",""],
+ ["Customize","customize.cgi"]
].each{|tab,file|
- if tab == active_tab
+ case tab
+ when active_tab
ret += "<li id='active_tab' >&nbsp;#{tab}&nbsp;</li> "
+ when ""
+ ret += "<li class='separator_tab'></li>"
else
ret += "<li class='nonactive_tab' ><a href='#{file}'>&nbsp;#{tab}&nbsp;</a></li> "
end