diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-10 21:08:01 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-10 21:08:01 +0000 |
| commit | 4ba55564e1dd7fdbdb89065be8eefd01d8c2d607 (patch) | |
| tree | 32e6eaec4cf44b40607e3fd8c4077050c3ce9771 /app/views/snippets/_actions.html.haml | |
| parent | 115c8ea7af7ef69ca3f09c333314546e9b5712f9 (diff) | |
| download | gitlab-ce-4ba55564e1dd7fdbdb89065be8eefd01d8c2d607.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/snippets/_actions.html.haml')
| -rw-r--r-- | app/views/snippets/_actions.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/snippets/_actions.html.haml b/app/views/snippets/_actions.html.haml index a408278f7c9..5ee12a2f22a 100644 --- a/app/views/snippets/_actions.html.haml +++ b/app/views/snippets/_actions.html.haml @@ -5,7 +5,7 @@ = link_to edit_snippet_path(@snippet), class: "btn btn-grouped" do = _("Edit") - 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-inverted btn-remove", title: _('Delete Snippet') do + = link_to gitlab_snippet_path(@snippet), method: :delete, data: { confirm: _("Are you sure?") }, class: "btn btn-grouped btn-inverted btn-remove", title: _('Delete Snippet') do = _("Delete") - if can?(current_user, :create_personal_snippet) = link_to new_snippet_path, class: "btn btn-grouped btn-success btn-inverted", title: _("New snippet") do @@ -24,7 +24,7 @@ = _("New snippet") - if can?(current_user, :admin_personal_snippet, @snippet) %li - = link_to snippet_path(@snippet), method: :delete, data: { confirm: _("Are you sure?") }, title: _('Delete Snippet') do + = link_to gitlab_snippet_path(@snippet), method: :delete, data: { confirm: _("Are you sure?") }, title: _('Delete Snippet') do = _("Delete") - if can?(current_user, :update_personal_snippet, @snippet) %li |
