summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable/_close_reopen_button.html.haml
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2017-10-03 08:41:33 +1100
committerSimon Knox <psimyn@gmail.com>2017-10-03 08:41:33 +1100
commitd54983885bee00ff7b49c4352639beca4a082f46 (patch)
tree24c684554dfbfcc1a1fb3aa70b51f1ffdf041a48 /app/views/shared/issuable/_close_reopen_button.html.haml
parent06b31461f34bac86d31d898e4f0e5b573d6b0345 (diff)
parent0781e956e4a4174494aa28b62b8dfc92a92e8e84 (diff)
downloadgitlab-ce-d54983885bee00ff7b49c4352639beca4a082f46.tar.gz
Merge remote-tracking branch 'origin' into 37229-mr-widget-status-icon
Diffstat (limited to 'app/views/shared/issuable/_close_reopen_button.html.haml')
-rw-r--r--app/views/shared/issuable/_close_reopen_button.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/issuable/_close_reopen_button.html.haml b/app/views/shared/issuable/_close_reopen_button.html.haml
index f16bc8dd430..9ef015047c9 100644
--- a/app/views/shared/issuable/_close_reopen_button.html.haml
+++ b/app/views/shared/issuable/_close_reopen_button.html.haml
@@ -3,9 +3,9 @@
- button_method = issuable_close_reopen_button_method(issuable)
- if can_update && is_current_user
- = link_to "Close #{display_issuable_type}", close_issuable_url(issuable), method: button_method,
+ = link_to "Close #{display_issuable_type}", close_issuable_path(issuable), method: button_method,
class: "hidden-xs hidden-sm btn btn-grouped btn-close js-btn-issue-action #{issuable_button_visibility(issuable, true)}", title: "Close #{display_issuable_type}"
- = link_to "Reopen #{display_issuable_type}", reopen_issuable_url(issuable), method: button_method,
+ = link_to "Reopen #{display_issuable_type}", reopen_issuable_path(issuable), method: button_method,
class: "hidden-xs hidden-sm btn btn-grouped btn-reopen js-btn-issue-action #{issuable_button_visibility(issuable, false)}", title: "Reopen #{display_issuable_type}"
- elsif can_update && !is_current_user
= render 'shared/issuable/close_reopen_report_toggle', issuable: issuable