additionals/app/views/users/_additionals_contextual.html.slim

4 lines
269 B
Plaintext

- if Additionals.setting?(:new_issue_on_profile) && user.active? && @memberships.present?
- project_url = memberships_new_issue_project_url user, @memberships
= link_to l(:label_issue_new), project_url, class: 'user-new-issue icon icon-add' if project_url.present?