diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-02-14 22:36:30 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-02-19 13:14:54 -0500 |
commit | d34733efc4ac24979587a7ce6ac69db41a2003c3 (patch) | |
tree | 6676c82cdc7736e37a36a9a083851a9c8c097c68 /app/views/projects/commit/_commit_box.html.haml | |
parent | e8d15f1339b1dac1c97516c320631e04c3e5e4d7 (diff) | |
download | gitlab-ce-d34733efc4ac24979587a7ce6ac69db41a2003c3.tar.gz |
Don't show revert button if commit/MR has already been reverted.
Diffstat (limited to 'app/views/projects/commit/_commit_box.html.haml')
-rw-r--r-- | app/views/projects/commit/_commit_box.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/commit/_commit_box.html.haml b/app/views/projects/commit/_commit_box.html.haml index 14f4e429f13..585cc35202d 100644 --- a/app/views/projects/commit/_commit_box.html.haml +++ b/app/views/projects/commit/_commit_box.html.haml @@ -16,7 +16,8 @@ = link_to namespace_project_tree_path(@project.namespace, @project, @commit), class: "btn btn-grouped" do = icon('files-o') Browse Files - = revert_commit_link(namespace_project_commit_path(@project.namespace, @project, @commit.id)) + - unless @commit.has_been_reverted?(current_user) + = revert_commit_link(namespace_project_commit_path(@project.namespace, @project, @commit.id)) %div %p |