1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/views/_nav.slim
2013-05-13 23:41:53 +02:00

16 lines
573 B
Text

.navbar-inner
.container
a.brand href='#{{root_path}}'
= Sidekiq::NAME
ul.nav
- tabs.each do |title, url|
- if url == ''
li class="#{current_path == url ? 'active' : ''}"
a href="#{{root_path}}#{{url}}" = t(title)
- else
li class="#{current_path.start_with?(url) ? 'active' : ''}"
a href="#{{root_path}}#{{url}}" = t(title)
- custom_tabs.each do |title, url|
li class="#{current_path.start_with?(url) ? 'active' : ''}"
a href="#{{root_path}}#{{url}}" = t(title)