aboutsummaryrefslogtreecommitdiff
path: root/html.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-23 17:43:56 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-23 17:43:56 +0100
commit9c8175b323d8536d349a1c50a0a32e1665dc6d39 (patch)
treec283d94eaafe2894ea7b1f7fce6f347e3050997e /html.rb
parente08d15c23c949313f27bf8a6574b7dde62712e73 (diff)
changed tab order and separator
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