Commit e0e311a1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix bg for labels page when no labels present

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 7794cc8b
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
= render @labels = render @labels
= paginate @labels, theme: 'gitlab' = paginate @labels, theme: 'gitlab'
- else - else
.light-well .nothing-here-block
- if can? current_user, :admin_label, @project - if can? current_user, :admin_label, @project
.nothing-here-block Create first label or #{link_to 'generate', generate_namespace_project_labels_path(@project.namespace, @project), method: :post} default set of labels Create first label or #{link_to 'generate', generate_namespace_project_labels_path(@project.namespace, @project), method: :post} default set of labels
- else - else
.nothing-here-block No labels created No labels created
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