diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2016-11-13 02:51:47 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-01-30 17:54:48 +0300 |
commit | bfbdc62a3f9d99cad85940526fa17031baface28 (patch) | |
tree | 6ac918c35930c262e1eb5c11631fe7e35382ab4a /app/views/shared/empty_states/_labels.html.haml | |
parent | 09567e93adf57421f3a7b86992b164e6a86e7542 (diff) |
Added labels empty state and priority label empty state
Fixed delete labels not working
Review changes
Diffstat (limited to 'app/views/shared/empty_states/_labels.html.haml')
-rw-r--r-- | app/views/shared/empty_states/_labels.html.haml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/shared/empty_states/_labels.html.haml b/app/views/shared/empty_states/_labels.html.haml new file mode 100644 index 00000000000..ba5c2dae09d --- /dev/null +++ b/app/views/shared/empty_states/_labels.html.haml @@ -0,0 +1,11 @@ +.row.empty-state.labels + .pull-right.col-xs-12.col-sm-6 + .svg-content + = render 'shared/empty_states/icons/labels.svg' + .col-xs-12.col-sm-6 + .text-content + %h4 Labels can be applied to issues and merge requests to categorize them. + %p You can also star label to make it a priority label. + - if can?(current_user, :admin_label, @project) + = link_to 'New label', new_namespace_project_label_path(@project.namespace, @project), class: 'btn btn-new', title: 'New label', id: 'new_label_link' + = link_to 'Generate a default set of labels', generate_namespace_project_labels_path(@project.namespace, @project), method: :post, class: 'btn btn-success btn-inverted', title: 'Generate a default set of labels', id: 'generate_labels_link' |