2014-03-16 02:08:15 +01:00
|
|
|
%ul.nav.nav-tabs.nav-tabs-with-heading
|
|
|
|
%li.heading
|
|
|
|
%h1= t '.title'
|
|
|
|
|
|
|
|
- for tab in @tabs
|
|
|
|
- url = action_name == 'show' ? nil : admin_config_path(tab: tab)
|
|
|
|
%li{class: ('active' if @current_tab==tab)}= link_to t("config.tabs.#{tab}"), "#{url}#tab-#{tab}", data: ({toggle: 'tab'} unless url)
|
|
|
|
|
2018-10-13 20:16:35 +02:00
|
|
|
-# make these buttons to give some indicator that navigation away might lose changes
|
2014-03-16 02:08:15 +01:00
|
|
|
%li.pull-right{class: ('active' if @current_tab=='list')}
|
|
|
|
= link_to t('config.tabs.list'), list_admin_config_path, class: ('btn' unless @current_tab=='list')
|
2018-10-13 20:16:35 +02:00
|
|
|
%li.pull-right
|
|
|
|
= link_to t('config.tabs.applications'), oauth_applications_path, class: 'btn'
|