Temp revert to label.priority? need to fix group page

This commit is contained in:
Luke Bennett 2018-05-28 12:14:01 +01:00
parent 2ed974d22b
commit 3984067c5a
No known key found for this signature in database
GPG key ID: A738E9C68D3BF31A

View file

@ -2,7 +2,7 @@
- status = label_subscription_status(label, @project).inquiry if current_user
- subject = local_assigns[:subject]
- use_label_priority = local_assigns.fetch(:use_label_priority, false)
- force_priority = local_assigns.fetch(:force_priority, use_label_priority ? label.priority.present? : false)
- force_priority = local_assigns.fetch(:force_priority, use_label_priority ? label.priority? : false)
- toggle_subscription_path = toggle_subscription_label_path(label, @project) if current_user
- show_label_merge_requests_link = show_label_issuables_link?(label, :merge_requests, project: @project)
- show_label_issues_link = show_label_issuables_link?(label, :issues, project: @project)