diff options
author | Robert Speicher <robert@gitlab.com> | 2015-12-25 21:00:16 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2015-12-25 21:00:16 +0000 |
commit | 98f77d2edcfba7783174cd0010a9c9b7fa44aaa5 (patch) | |
tree | 69890e6dfb234f9d0934c7457ba706c887b60cac /app/helpers | |
parent | fd231ff9fb6292c2fd15f71c5329216e67935560 (diff) | |
parent | 00e967a07f476f7df7aaddc652258668af392f5d (diff) | |
download | gitlab-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.rb | 4 |
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, |