Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/projects/incidents_helper.rb')
-rw-r--r--app/helpers/projects/incidents_helper.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/helpers/projects/incidents_helper.rb b/app/helpers/projects/incidents_helper.rb
new file mode 100644
index 00000000000..e96f0f5a384
--- /dev/null
+++ b/app/helpers/projects/incidents_helper.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+module Projects::IncidentsHelper
+ def incidents_data(project)
+ {
+ 'project-path' => project.full_path,
+ 'new-issue-path' => new_project_issue_path(project),
+ 'incident-template-name' => 'incident',
+ 'incident-type' => 'incident',
+ 'issue-path' => project_issues_path(project),
+ 'empty-list-svg-path' => image_path('illustrations/incident-empty-state.svg')
+ }
+ end
+end
+
+Projects::IncidentsHelper.prepend_if_ee('EE::Projects::IncidentsHelper')