2016-11-05 13:28:29 -04:00
- 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
2018-04-09 12:45:38 -04:00
.col-12
2016-11-05 13:28:29 -04:00
.svg-content
2017-09-22 04:39:47 -04:00
= image_tag 'illustrations/issues.svg'
2018-04-09 12:45:38 -04:00
.col-12
2016-11-05 13:28:29 -04:00
.text-content
2018-11-02 10:51:18 -04:00
- if has_filter_bar_param?
%h4.text-center
= _("Sorry, your filter produced no results")
2018-11-19 08:24:15 -05:00
%p.text-center
= _("To widen your search, change or remove filters above")
2018-11-02 10:51:18 -04:00
- elsif current_user
2016-11-05 13:28:29 -04:00
%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")
2016-11-05 13:28:29 -04:00
%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.")
2017-12-18 10:54:44 -05:00
- if has_button
.text-center
- if project_select_button
2018-07-02 04:04:43 -04:00
= render 'shared/new_project_item_select', path: 'issues/new', label: 'New issue', type: :issues, with_feature_enabled: 'issues'
2017-12-18 10:54:44 -05:00
- else
= link_to 'New issue', button_path, class: 'btn btn-success', title: 'New issue', id: 'new_issue_link'
2016-11-05 13:28:29 -04:00
- else
2017-12-12 11:55:16 -05:00
%h4.text-center= _("There are no issues to show")
2017-12-11 07:08:55 -05:00
%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'