Commit 638f8541 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Hide labels filter for MRs and remove unnecessary padding

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 25741c97
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.check-all-holder .check-all-holder
= check_box_tag "check_all_issues", nil, false, class: "check_all_issues left" = check_box_tag "check_all_issues", nil, false, class: "check_all_issues left"
.issues-filters .issues-filters
.dropdown.inline.prepend-left-10 .dropdown.inline
%a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"} %a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"}
%i.icon-user %i.icon-user
%span.light assignee: %span.light assignee:
......
= render "head" = render "head"
.row .row
.col-md-3 .col-md-3
= render 'shared/project_filter', project_entities_path: project_issues_path(@project) = render 'shared/project_filter', project_entities_path: project_issues_path(@project), labels: true
.col-md-9.issues-holder .col-md-9.issues-holder
= render "issues" = render "issues"
...@@ -26,17 +26,18 @@ ...@@ -26,17 +26,18 @@
= link_to project_filter_path(state: 'all') do = link_to project_filter_path(state: 'all') do
All All
%fieldset - if defined?(labels)
%legend Labels %fieldset
%ul.list-group %legend Labels
- issue_label_names.each do |label_name| %ul.list-group
= link_to labels_filter_path(label_name), class: label_filter_class(label_name) do - issue_label_names.each do |label_name|
%span{class: "label #{label_css_class(label_name)}"} = link_to labels_filter_path(label_name), class: label_filter_class(label_name) do
%i.icon-tag %span{class: "label #{label_css_class(label_name)}"}
= label_name %i.icon-tag
- if selected_label?(label_name) = label_name
.pull-right - if selected_label?(label_name)
%i.icon-remove .pull-right
%i.icon-remove
%fieldset %fieldset
- if %w(state scope milestone_id assignee_id label_name).select { |k| params[k].present? }.any? - if %w(state scope milestone_id assignee_id label_name).select { |k| params[k].present? }.any?
......
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