Implemented showing of which tab is selected.

This commit is contained in:
Paul van Tilburg 2011-11-10 13:07:55 +01:00
parent aa3e53b925
commit b2ce309d5f
1 changed files with 1 additions and 2 deletions

View File

@ -756,8 +756,7 @@ module StopTime::Views
end
def _menu_link(label, ctrl)
# FIXME: this should not be hardcoded!
if ctrl == Index
if ctrl == self.helpers.class # FIXME: dirty hack?
li.selected { a label, :href => R(ctrl) }
else
li { a label, :href => R(ctrl) }