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
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-02-11 01:02:47 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-02-19 21:14:53 +0300
commit477ae66b4ddd3ace948f47c7bfa60085d6e320ae (patch)
tree8b5622f39eeb30b6f296badf2dfe1175be535a39 /app/helpers/commits_helper.rb
parent2ea5b37f2effacc98dd15e1d86386c40bc719200 (diff)
Move revert link to the MR widget section plus some refactor.
Diffstat (limited to 'app/helpers/commits_helper.rb')
-rw-r--r--app/helpers/commits_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/commits_helper.rb b/app/helpers/commits_helper.rb
index d5b1feed931..17cf4ddcdc0 100644
--- a/app/helpers/commits_helper.rb
+++ b/app/helpers/commits_helper.rb
@@ -123,14 +123,14 @@ module CommitsHelper
)
end
- def revert_commit_link(show_modal_condition, continue_to_path)
+ def revert_commit_link(show_modal_condition, continue_to_path, btn_class: nil)
return unless current_user
if show_modal_condition
link_to('Revert', '#modal-revert-commit',
'data-target' => '#modal-revert-commit',
'data-toggle' => 'modal',
- class: 'btn btn-grouped btn-close',
+ class: "btn btn-close btn-#{btn_class}",
title: 'Create merge request to revert commit'
)
else