diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-06 18:59:22 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-06 19:59:49 +0300 |
commit | a04897b76b00e4a099faf55e30443378928e28e1 (patch) | |
tree | a29138165ee7f77d88bac0693901513ce52109e1 /app/views/projects/labels | |
parent | 7bc65b2bef1aaacb0122eabca23e1db0849321b0 (diff) |
Typo
Diffstat (limited to 'app/views/projects/labels')
-rw-r--r-- | app/views/projects/labels/_label.html.haml | 4 | ||||
-rw-r--r-- | app/views/projects/labels/index.html.haml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/labels/_label.html.haml b/app/views/projects/labels/_label.html.haml index b7df0aa36a7..1c51ea676c7 100644 --- a/app/views/projects/labels/_label.html.haml +++ b/app/views/projects/labels/_label.html.haml @@ -1,5 +1,5 @@ - label_css_id = dom_id(label) -%li{id: label_css_id, data: {id: label.id } } +%li{id: label_css_id, data: { id: label.id } } = render "shared/label_row", label: label .pull-info-right %span.append-right-20 @@ -17,7 +17,7 @@ %button.js-subscribe-button.label-subscribe-button.btn.action-buttons{ type: "button", data: { toggle: "tooltip" } } %span= label_subscription_toggle_button_text(label) - - if can? current_user, :admin_label, @project + - if can?(current_user, :admin_label, @project) = link_to edit_namespace_project_label_path(@project.namespace, @project, label), title: "Edit", class: 'btn action-buttons', data: { toggle: 'tooltip' } do %i.fa.fa-pencil-square-o = link_to namespace_project_label_path(@project.namespace, @project, label), title: "Delete", class: 'btn action-buttons remove-row', method: :delete, remote: true, data: { confirm: 'Remove this label? Are you sure?', toggle: 'tooltip' } do diff --git a/app/views/projects/labels/index.html.haml b/app/views/projects/labels/index.html.haml index 5deb84ad41e..c72eddba37f 100644 --- a/app/views/projects/labels/index.html.haml +++ b/app/views/projects/labels/index.html.haml @@ -5,7 +5,7 @@ .nav-text Labels can be applied to issues and merge requests. .nav-controls - - if can? current_user, :admin_label, @project + - if can?(current_user, :admin_label, @project) = link_to new_namespace_project_label_path(@project.namespace, @project), class: "btn btn-new" do = icon('plus') New label @@ -23,7 +23,7 @@ %p.empty-message No prioritized labels yet .other-labels - if can?(current_user, :admin_label, @project) - %h5{ class: ('hide' if hide } Other Labels + %h5{ class: ('hide' if hide) } Other Labels - if @labels.present? %ul.content-list.manage-labels-list.js-other-labels = render @labels |