debian-mirror-gitlab/app/views/projects/issues/_design_management.html.haml

15 lines
1.2 KiB
Text
Raw Normal View History

2020-11-24 15:15:51 +05:30
- return if @issue.incident?
2020-07-28 23:09:34 +05:30
- requirements_link_url = help_page_path('user/project/issues/design_management', anchor: 'requirements')
- requirements_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: requirements_link_url }
- link_end = '</a>'.html_safe
2021-03-08 18:12:59 +05:30
- enable_lfs_message = s_("DesignManagement|To upload designs, you'll need to enable LFS and have an admin enable hashed storage. %{requirements_link_start}More information%{requirements_link_end}").html_safe % { requirements_link_start: requirements_link_start, requirements_link_end: link_end }
2020-07-28 23:09:34 +05:30
2020-05-24 23:13:21 +05:30
- if @project.design_management_enabled?
2021-01-29 00:20:46 +05:30
- add_page_startup_graphql_call('design_management/get_design_list', { fullPath: @project.full_path, iid: @issue.iid.to_s, atVersion: nil })
- add_page_startup_graphql_call('design_management/design_permissions', { fullPath: @project.full_path, iid: @issue.iid.to_s })
2020-11-24 15:15:51 +05:30
.js-design-management{ data: { project_path: @project.full_path, issue_iid: @issue.iid, issue_path: project_issue_path(@project, @issue) } }
2020-05-24 23:13:21 +05:30
- else
2020-11-24 15:15:51 +05:30
.gl-border-solid.gl-border-1.gl-border-gray-100.gl-rounded-base.gl-mt-5.gl-p-3.gl-text-center
= enable_lfs_message