Commit 058befa0 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '230774-migrate-haml-nav-to-gltabs' into 'master'

Convert credential inventory tabs to pajamas

See merge request gitlab-org/gitlab!73974
parents 080c1045 389c65bd
...@@ -5,17 +5,11 @@ ...@@ -5,17 +5,11 @@
= sprite_icon('chevron-lg-left', size: 12) = sprite_icon('chevron-lg-left', size: 12)
.fade-right .fade-right
= sprite_icon('chevron-lg-right', size: 12) = sprite_icon('chevron-lg-right', size: 12)
%ul.nav-links.nav.nav-tabs.scrolling-tabs = gl_tabs_nav({ class: 'scrolling-tabs nav-links gl-border-0'}) do
= nav_link(html_options: { class: active_when(show_personal_access_tokens?) }) do = gl_tab_link_to s_('CredentialsInventory|Personal Access Tokens'), credentials_inventory_path(filter: 'personal_access_tokens'), { item_active: active_when(show_personal_access_tokens?), class: 'gl-border-0!' }
= link_to credentials_inventory_path(filter: 'personal_access_tokens') do = gl_tab_link_to s_('CredentialsInventory|SSH Keys'), credentials_inventory_path(filter: 'ssh_keys'), { item_active: active_when(show_ssh_keys?), class: 'gl-border-0!' }
= s_('CredentialsInventory|Personal Access Tokens')
= nav_link(html_options: { class: active_when(show_ssh_keys?) }) do
= link_to credentials_inventory_path(filter: 'ssh_keys') do
= s_('CredentialsInventory|SSH Keys')
- if gpg_keys_available? - if gpg_keys_available?
= nav_link(html_options: { class: active_when(show_gpg_keys?) }) do = gl_tab_link_to s_('CredentialsInventory|GPG Keys'), credentials_inventory_path(filter: 'gpg_keys'), { item_active: active_when(show_gpg_keys?), class: 'gl-border-0!' }
= link_to credentials_inventory_path(filter: 'gpg_keys') do
= s_('CredentialsInventory|GPG Keys')
- if @credentials.empty? - if @credentials.empty?
.nothing-here-block.border-top-0 .nothing-here-block.border-top-0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment