diff options
Diffstat (limited to 'app/views/projects/labels/index.html.haml')
-rw-r--r-- | app/views/projects/labels/index.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/labels/index.html.haml b/app/views/projects/labels/index.html.haml index 0a63325f26e..d02ea5cccc3 100644 --- a/app/views/projects/labels/index.html.haml +++ b/app/views/projects/labels/index.html.haml @@ -16,7 +16,8 @@ .nav-controls{ class: ("visible-xs" if show_new_nav?) } - if can?(current_user, :admin_label, @project) - = link_to "New label", new_namespace_project_label_path(@project.namespace, @project), class: "btn btn-new" + = link_to new_project_label_path(@project), class: "btn btn-new" do + New label .labels - if can?(current_user, :admin_label, @project) @@ -24,7 +25,7 @@ - hide = @available_labels.empty? || (params[:page].present? && params[:page] != '1') .prioritized-labels{ class: ('hide' if hide) } %h5 Prioritized Labels - %ul.content-list.manage-labels-list.js-prioritized-labels{ "data-url" => set_priorities_namespace_project_labels_path(@project.namespace, @project) } + %ul.content-list.manage-labels-list.js-prioritized-labels{ "data-url" => set_priorities_project_labels_path(@project) } #js-priority-labels-empty-state{ class: "#{'hidden' unless @prioritized_labels.empty?}" } = render 'shared/empty_states/priority_labels' - if @prioritized_labels.present? |