Created
June 11, 2009 14:50
-
-
Save kelso/127942 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pole s polozkami | |
@menu_items = [ | |
['messaging', messagging_path, 'Zpravy'], | |
['admin', admin_path, 'Administrace'] | |
] | |
# Generator menu | |
for item in @menu_items do | |
link_to(item[2], item[1], :class => (item[0] == @@current_tab) ? 'active' : 'inactive') | |
end | |
# Urcovanie aktivneho tabu | |
# (na vrchu kontroleru sa naplni superglobalne premenna @@current_tab) | |
# /admin/people_controller | |
@@current_tab = 'admin' | |
# /admin/rights_controller | |
@@current_tab = 'admin' | |
## /messaging/folders | |
@current_tab = 'messaging' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment