summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2015-12-25 21:00:16 +0000
committerRobert Speicher <robert@gitlab.com>2015-12-25 21:00:16 +0000
commit98f77d2edcfba7783174cd0010a9c9b7fa44aaa5 (patch)
tree69890e6dfb234f9d0934c7457ba706c887b60cac /app/helpers
parentfd231ff9fb6292c2fd15f71c5329216e67935560 (diff)
parent00e967a07f476f7df7aaddc652258668af392f5d (diff)
downloadgitlab-ce-98f77d2edcfba7783174cd0010a9c9b7fa44aaa5.tar.gz
Merge branch 'close-open-ajax-issue' into 'master'
open and close issue via ajax request. With tests Close and Reopen issues with ajax request. See merge request !2164
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/issues_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index c1053554fbd..80e2741b09a 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -69,6 +69,10 @@ module IssuesHelper
end
end
+ def issue_button_visibility(issue, closed)
+ return 'hidden' if issue.closed? == closed
+ end
+
def issue_to_atom(xml, issue)
xml.entry do
xml.id namespace_project_issue_url(issue.project.namespace,