Module: Projects::IncidentsHelper

Defined in:
app/helpers/projects/incidents_helper.rb

Instance Method Summary collapse

Instance Method Details

#incidents_data(project) ⇒ Object


4
5
6
7
8
9
10
11
12
13
# File 'app/helpers/projects/incidents_helper.rb', line 4

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