diff options
| author | Han Loong Liauw <hanloongliauw@gmail.com> | 2015-10-15 15:24:26 +1100 |
|---|---|---|
| committer | Han Loong Liauw <hanloongliauw@gmail.com> | 2015-10-15 15:24:26 +1100 |
| commit | f7ed469ece5e113273b006dd64cc0d29243cfcde (patch) | |
| tree | 7203c438693202aedf6112a77b1639ee22ca8959 /app/views/snippets/_actions.html.haml | |
| parent | 1f92c22fec8493fa0efb8a53829a4c726e78934e (diff) | |
| download | gitlab-ce-f7ed469ece5e113273b006dd64cc0d29243cfcde.tar.gz | |
change capitalisation in buttons
Diffstat (limited to 'app/views/snippets/_actions.html.haml')
| -rw-r--r-- | app/views/snippets/_actions.html.haml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/snippets/_actions.html.haml b/app/views/snippets/_actions.html.haml index a4fdf89a4ee..751fafa8942 100644 --- a/app/views/snippets/_actions.html.haml +++ b/app/views/snippets/_actions.html.haml @@ -1,7 +1,10 @@ = link_to new_snippet_path, class: 'btn btn-grouped new-snippet-link', title: "New Snippet" do = icon('plus') - new snippet -= link_to "remove", snippet_path(@snippet), method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-grouped btn-remove", title: 'Delete Snippet' + New Snippet +- if can?(current_user, :admin_personal_snippet, @snippet) + = link_to snippet_path(@snippet), method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-grouped btn-remove", title: 'Delete Snippet' do + = icon('trash-o') + Delete - if can?(current_user, :update_personal_snippet, @snippet) = link_to edit_snippet_path(@snippet), class: "btn btn-grouped snippable-edit" do = icon('pencil-square-o') |
