2018-12-05 23:21:45 +05:30
|
|
|
- subscribed = params[:subscribed]
|
|
|
|
|
|
|
|
.top-area.adjust
|
|
|
|
%ul.nav-links.nav.nav-tabs
|
|
|
|
%li{ class: active_when(subscribed != 'true') }>
|
|
|
|
= link_to labels_filter_path do
|
|
|
|
= _('All')
|
|
|
|
- if current_user
|
|
|
|
%li{ class: active_when(subscribed == 'true') }>
|
|
|
|
= link_to labels_filter_path(subscribed: 'true') do
|
|
|
|
= _('Subscribed')
|
|
|
|
.nav-controls
|
|
|
|
= form_tag labels_filter_path, method: :get do
|
|
|
|
= hidden_field_tag :subscribed, params[:subscribed]
|
|
|
|
.input-group
|
2020-01-01 13:55:28 +05:30
|
|
|
= search_field_tag :search, params[:search], { placeholder: _('Filter'), id: 'label-search', class: 'form-control search-text-input input-short', spellcheck: false, autofocus: true }
|
2018-12-05 23:21:45 +05:30
|
|
|
%span.input-group-append
|
2021-01-03 14:25:43 +05:30
|
|
|
%button.btn.gl-button.btn-default{ type: "submit", "aria-label" => _('Submit search') }
|
|
|
|
= sprite_icon('search')
|
2018-12-05 23:21:45 +05:30
|
|
|
= render 'shared/labels/sort_dropdown'
|
2019-03-02 22:35:43 +05:30
|
|
|
- if labels_or_filters && can_admin_label && @project
|
2021-01-03 14:25:43 +05:30
|
|
|
= link_to _('New label'), new_project_label_path(@project), class: "btn gl-button btn-success qa-label-create-new"
|
2019-03-02 22:35:43 +05:30
|
|
|
- if labels_or_filters && can_admin_label && @group
|
2021-01-03 14:25:43 +05:30
|
|
|
= link_to _('New label'), new_group_label_path(@group), class: "btn gl-button btn-success qa-label-create-new"
|