Commit 8eeebf0d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Generate labels set from issues page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent a1b9b1d8
...@@ -13,7 +13,7 @@ class Projects::LabelsController < Projects::ApplicationController ...@@ -13,7 +13,7 @@ class Projects::LabelsController < Projects::ApplicationController
def generate def generate
Gitlab::IssuesLabels.generate(@project) Gitlab::IssuesLabels.generate(@project)
redirect_to project_labels_path(@project) redirect_to project_issues_path(@project)
end end
protected protected
......
...@@ -40,6 +40,12 @@ ...@@ -40,6 +40,12 @@
.pull-right .pull-right
%i.icon-remove %i.icon-remove
- if issue_label_names.empty?
.light-well
Add first label to your issues
%br
or #{link_to 'generate', generate_project_labels_path(@project), method: :post} default set of labels
%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?
= link_to project_entities_path, class: 'cgray pull-right' do = link_to project_entities_path, class: 'cgray pull-right' do
......
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