summaryrefslogtreecommitdiff
path: root/app/views/shared/empty_states/_issues.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/empty_states/_issues.html.haml')
-rw-r--r--app/views/shared/empty_states/_issues.html.haml8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/views/shared/empty_states/_issues.html.haml b/app/views/shared/empty_states/_issues.html.haml
index fb410274859..37f7fbc0de5 100644
--- a/app/views/shared/empty_states/_issues.html.haml
+++ b/app/views/shared/empty_states/_issues.html.haml
@@ -1,7 +1,5 @@
- button_path = local_assigns.fetch(:new_project_issue_button_path, false)
-- project_select_button = local_assigns.fetch(:project_select_button, false)
- show_import_button = local_assigns.fetch(:show_import_button, false) && can?(current_user, :import_issues, @project)
-- has_button = button_path || project_select_button
- closed_issues_count = issuables_count_for_state(:issues, :closed)
- opened_issues_count = issuables_count_for_state(:issues, :opened)
- is_opened_state = params[:state] == 'opened'
@@ -39,11 +37,9 @@
= _("The Issue Tracker is the place to add things that need to be improved or solved in a project")
%p
= _("Issues can be bugs, tasks or ideas to be discussed. Also, issues are searchable and filterable.")
- - if has_button
+ - if button_path
.text-center
- - if project_select_button
- = render 'shared/new_project_item_select', path: 'issues/new', label: _('issue'), type: :issues, with_feature_enabled: 'issues'
- - elsif show_new_issue_link?(@project)
+ - if show_new_issue_link?(@project)
= link_to _('New issue'), button_path, class: 'gl-button btn btn-confirm', id: 'new_issue_link'
- if show_import_button