gitlab-org--gitlab-foss/app/views/shared/empty_states/_issues.html.haml

28 lines
1.3 KiB
Text
Raw Normal View History

- button_path = local_assigns.fetch(:button_path, false)
- project_select_button = local_assigns.fetch(:project_select_button, false)
- has_button = button_path || project_select_button
.row.empty-state
2017-05-10 12:57:39 -04:00
.col-xs-12
.svg-content
= image_tag 'illustrations/issues.svg'
2017-12-07 10:36:26 -05:00
.col-xs-12
.text-content
- if current_user
%h4
2017-12-12 11:55:16 -05:00
= _("The Issue Tracker is the place to add things that need to be improved or solved in a project")
%p
2017-12-12 11:55:16 -05:00
= _("Issues can be bugs, tasks or ideas to be discussed. Also, issues are searchable and filterable.")
- if has_button
.text-center
- if project_select_button
= render 'shared/new_project_item_select', path: 'issues/new', label: 'New issue', type: :issues
- else
= link_to 'New issue', button_path, class: 'btn btn-success', title: 'New issue', id: 'new_issue_link'
- else
2017-12-12 11:55:16 -05:00
%h4.text-center= _("There are no issues to show")
%p
2017-12-12 11:55:16 -05:00
= _("The Issue Tracker is the place to add things that need to be improved or solved in a project. You can register or sign in to create issues for this project.")
2017-04-13 12:33:32 -04:00
.text-center
2017-12-12 11:55:16 -05:00
= link_to _('Register / Sign In'), new_user_session_path, class: 'btn btn-success'