Commit dabe2bc2 authored by Mark Florian's avatar Mark Florian

Remove unnecessary active_when call

parent ad9a628a
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
.top-area.adjust .top-area.adjust
= gl_tabs_nav({ class: 'gl-flex-grow-1 gl-border-0' }) do = gl_tabs_nav({ class: 'gl-flex-grow-1 gl-border-0' }) do
= gl_tab_link_to _('All'), labels_filter_path, { item_active: active_when(subscribed != 'true') } = gl_tab_link_to _('All'), labels_filter_path, { item_active: subscribed != 'true' }
- if current_user - if current_user
= gl_tab_link_to _('Subscribed'), labels_filter_path(subscribed: 'true'), { item_active: active_when(subscribed == 'true') } = gl_tab_link_to _('Subscribed'), labels_filter_path(subscribed: 'true'), { item_active: subscribed == 'true' }
.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]
......
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