2020-07-21 12:09:30 +00:00
|
|
|
- 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
|
2020-07-22 09:09:38 +00:00
|
|
|
- enable_lfs_message = s_("DesignManagement|To upload designs, you'll need to enable LFS. %{requirements_link_start}More information%{requirements_link_end}").html_safe % { requirements_link_start: requirements_link_start, requirements_link_end: link_end }
|
2020-07-21 12:09:30 +00:00
|
|
|
|
2020-05-15 15:08:04 +00:00
|
|
|
- if @project.design_management_enabled?
|
2020-07-15 15:09:21 +00:00
|
|
|
- if Feature.enabled?(:design_management_moved, @project, default_enabled: true)
|
2020-06-24 09:08:32 +00:00
|
|
|
.js-design-management-new{ data: { project_path: @project.full_path, issue_iid: @issue.iid, issue_path: project_issue_path(@project, @issue) } }
|
|
|
|
- else
|
|
|
|
.js-design-management{ data: { project_path: @project.full_path, issue_iid: @issue.iid, issue_path: project_issue_path(@project, @issue) } }
|
2020-05-15 15:08:04 +00:00
|
|
|
- else
|
2020-07-15 15:09:21 +00:00
|
|
|
- if Feature.enabled?(:design_management_moved, @project, default_enabled: true)
|
2020-07-21 12:09:30 +00:00
|
|
|
.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
|
2020-07-13 09:09:29 +00:00
|
|
|
- else
|
|
|
|
.mt-4
|
|
|
|
.row.empty-state
|
|
|
|
.col-12
|
|
|
|
.text-content
|
|
|
|
%h4.center
|
|
|
|
= _('The one place for your designs')
|
|
|
|
%p.center
|
2020-07-21 12:09:30 +00:00
|
|
|
= enable_lfs_message
|