debian-mirror-gitlab/app/views/shared/empty_states/_issues.html.haml

42 lines
1.8 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- button_path = local_assigns.fetch(:button_path, false)
- project_select_button = local_assigns.fetch(:project_select_button, false)
2019-02-15 15:39:39 +05:30
- show_import_button = local_assigns.fetch(:show_import_button, false) && can?(current_user, :import_issues, @project)
2017-08-17 22:00:37 +05:30
- has_button = button_path || project_select_button
.row.empty-state
2018-11-08 19:23:39 +05:30
.col-12
2017-08-17 22:00:37 +05:30
.svg-content
2018-03-17 18:26:18 +05:30
= image_tag 'illustrations/issues.svg'
2018-11-08 19:23:39 +05:30
.col-12
2017-08-17 22:00:37 +05:30
.text-content
2019-02-15 15:39:39 +05:30
- if has_filter_bar_param?
%h4.text-center
= _("Sorry, your filter produced no results")
%p.text-center
= _("To widen your search, change or remove filters above")
- elsif current_user
2017-08-17 22:00:37 +05:30
%h4
2018-03-17 18:26:18 +05:30
= _("The Issue Tracker is the place to add things that need to be improved or solved in a project")
2017-08-17 22:00:37 +05:30
%p
2018-03-17 18:26:18 +05:30
= _("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
2019-02-15 15:39:39 +05:30
= render 'shared/new_project_item_select', path: 'issues/new', label: _('New issue'), type: :issues, with_feature_enabled: 'issues'
2018-03-17 18:26:18 +05:30
- else
2019-02-15 15:39:39 +05:30
= link_to _('New issue'), button_path, class: 'btn btn-success', title: _('New issue'), id: 'new_issue_link'
- if show_import_button
= render 'projects/issues/import_csv/button', type: :text
2017-08-17 22:00:37 +05:30
- else
2018-03-17 18:26:18 +05:30
%h4.text-center= _("There are no issues to show")
%p
= _("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-08-17 22:00:37 +05:30
.text-center
2018-03-17 18:26:18 +05:30
= link_to _('Register / Sign In'), new_user_session_path, class: 'btn btn-success'
2019-02-15 15:39:39 +05:30
- if show_import_button
= render 'projects/issues/import_csv/modal'