Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2018-01-29 18:37:56 +0300
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2018-01-30 23:26:35 +0300
commit659e6f32d3d8e25f473c8a7413e5c6a0d19e41f6 (patch)
treef10b33ed62f9a8a004088b1d7986535da36c5bbb /app
parent0ef1a582b625f7f6f52e377fc62dc526da34cfb6 (diff)
Fix labels specs
Diffstat (limited to 'app')
-rw-r--r--app/views/shared/_delete_label_modal.html.haml4
-rw-r--r--app/views/shared/_label.html.haml2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/shared/_delete_label_modal.html.haml b/app/views/shared/_delete_label_modal.html.haml
index f29c8f00d52..01effefc34d 100644
--- a/app/views/shared/_delete_label_modal.html.haml
+++ b/app/views/shared/_delete_label_modal.html.haml
@@ -7,8 +7,8 @@
.modal-body
%p
- %strong #{label.name}
- will be permanently deleted from #{label.group.name}. This cannot be undone.
+ %strong= label.name
+ %span will be permanently deleted from #{label.is_a?(ProjectLabel)? label.project.name : label.group.name}. This cannot be undone.
.modal-footer
%a{ href: '#', data: { dismiss: 'modal' }, class: 'btn btn-default' } Cancel
diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml
index dd9b4b4db44..9e140cd3f13 100644
--- a/app/views/shared/_label.html.haml
+++ b/app/views/shared/_label.html.haml
@@ -5,7 +5,7 @@
- show_label_merge_requests_link = show_label_issuables_link?(label, :merge_requests, project: @project)
- show_label_issues_link = show_label_issuables_link?(label, :issues, project: @project)
-%li{ id: label_css_id, data: { id: label.id } }
+%li.label-list-item{ id: label_css_id, data: { id: label.id } }
= render "shared/label_row", label: label
.visible-xs.visible-sm-inline-block.dropdown