summaryrefslogtreecommitdiff
path: root/app/helpers/issues_helper.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-09-18 14:18:51 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-09-18 14:18:51 +0000
commitbdbded586beb38e2ee4642c6a1e78ccbebc094dc (patch)
treeb4ed16e070e6fc4ff99fcb353bc1af1ae0d066bd /app/helpers/issues_helper.rb
parent80f61b4035607d7cd87de993b8f5e996bde3481f (diff)
downloadgitlab-ce-bdbded586beb38e2ee4642c6a1e78ccbebc094dc.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r--app/helpers/issues_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index d11b0594632..6375513f514 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -64,6 +64,15 @@ module IssuesHelper
end
end
+ def issue_status_visibility(issue, status_box:)
+ case status_box
+ when :open
+ 'hidden' if issue.closed?
+ when :closed
+ 'hidden' unless issue.closed?
+ end
+ end
+
def issue_button_visibility(issue, closed)
return 'hidden' if issue_button_hidden?(issue, closed)
end