diff --git a/app/controllers/projects/labels_controller.rb b/app/controllers/projects/labels_controller.rb index 65f9e2b9d572264f3e1b67ee991b72c2485bebde..0166ca9ff00db5aa474cf17fd8c45771101cabe8 100644 --- a/app/controllers/projects/labels_controller.rb +++ b/app/controllers/projects/labels_controller.rb @@ -13,7 +13,7 @@ class Projects::LabelsController < Projects::ApplicationController def generate Gitlab::IssuesLabels.generate(@project) - redirect_to project_labels_path(@project) + redirect_to project_issues_path(@project) end protected diff --git a/app/views/shared/_project_filter.html.haml b/app/views/shared/_project_filter.html.haml index 1315c76fbb5070c7fa5e5c2d17ca6736a6e9fd3d..d82b08eeaa28b8a330e505456cefafae332b53c6 100644 --- a/app/views/shared/_project_filter.html.haml +++ b/app/views/shared/_project_filter.html.haml @@ -40,6 +40,12 @@ .pull-right %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 - 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