diff options
-rw-r--r-- | dudle.css | 6 | ||||
-rw-r--r-- | html.rb | 12 |
2 files changed, 14 insertions, 4 deletions
@@ -152,7 +152,7 @@ html { margin-right:auto; width:auto; display: table; - min-width: 30em; + min-width: 35em; } div#tabs{ @@ -197,6 +197,10 @@ li.nonactive_tab a:hover { background: #CCC; } +li.separator_tab { + margin-left: 2em; +} + pre#configwarning { font-family: "Courier New",Courier,monospace; letter-spacing:0; @@ -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' > #{tab} </li> " + when "" + ret += "<li class='separator_tab'></li>" else ret += "<li class='nonactive_tab' ><a href='#{file}'> #{tab} </a></li> " end |