Commit ad9a628a authored by Kushal Pandya's avatar Kushal Pandya

Convert labels page tabs to Pajamas

Changelog: other
parent 09536de1
- subscribed = params[:subscribed] - subscribed = params[:subscribed]
.top-area.adjust .top-area.adjust
%ul.nav-links.nav.nav-tabs = gl_tabs_nav({ class: 'gl-flex-grow-1 gl-border-0' }) do
%li{ class: active_when(subscribed != 'true') }> = gl_tab_link_to _('All'), labels_filter_path, { item_active: active_when(subscribed != 'true') }
= link_to labels_filter_path do
= _('All')
- if current_user - if current_user
%li{ class: active_when(subscribed == 'true') }> = gl_tab_link_to _('Subscribed'), labels_filter_path(subscribed: 'true'), { item_active: active_when(subscribed == 'true') }
= link_to labels_filter_path(subscribed: 'true') do
= _('Subscribed')
.nav-controls .nav-controls
= form_tag labels_filter_path, method: :get do = form_tag labels_filter_path, method: :get do
= hidden_field_tag :subscribed, params[:subscribed] = hidden_field_tag :subscribed, params[:subscribed]
......
...@@ -71,7 +71,7 @@ RSpec.describe 'Labels subscription' do ...@@ -71,7 +71,7 @@ RSpec.describe 'Labels subscription' do
end end
it 'does not show subscribed tab' do it 'does not show subscribed tab' do
page.within('.nav-tabs') do page.within('.gl-tabs-nav') do
expect(page).not_to have_link 'Subscribed' expect(page).not_to have_link 'Subscribed'
end end
end end
...@@ -86,7 +86,7 @@ RSpec.describe 'Labels subscription' do ...@@ -86,7 +86,7 @@ RSpec.describe 'Labels subscription' do
end end
def click_subscribed_tab def click_subscribed_tab
page.within('.nav-tabs') do page.within('.gl-tabs-nav') do
click_link 'Subscribed' click_link 'Subscribed'
end end
end end
......
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