Commit 4aea975f38f3f3f8669c094615258043c2f78ab7

Authored by Gerrit Riessen
1 parent 3851c29b
Exists in master and in 1 other branch production

readded the link to issue in the errors listing

On branch: master
Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
app/views/errs/_table.html.haml
  1 +- any_issue_links = errs.any?{|e| e.issue_link.present? }
1 2 =form_tag do
2 3 %table.errs.selectable
3 4 %thead
... ... @@ -8,6 +9,8 @@
8 9 %th= link_for_sort "Latest", "last_notice_at"
9 10 %th= link_for_sort "Deploy", "last_deploy_at"
10 11 %th= link_for_sort "Count"
  12 + - if any_issue_links
  13 + %th Issue
11 14 %th Resolve
12 15 %tbody
13 16 - errs.each do |problem|
... ... @@ -26,6 +29,10 @@
26 29 %td.latest #{time_ago_in_words(last_notice_at problem)} ago
27 30 %td.deploy= problem.last_deploy_at ? problem.last_deploy_at.to_s(:micro) : 'n/a'
28 31 %td.count= link_to problem.notices.count, app_err_path(problem.app, problem)
  32 + - if any_issue_links
  33 + %td.issue_link
  34 + - if problem.issue_link.present?
  35 + = link_to image_tag("#{problem.app.issue_tracker.class::Label}_goto.png"), problem.issue_link, :target => "_blank"
29 36 %td.resolve= link_to image_tag("thumbs-up.png"), resolve_app_err_path(problem.app, problem), :title => "Resolve", :method => :put, :confirm => err_confirm, :class => 'resolve' if problem.unresolved?
30 37 - if errs.none?
31 38 %tr
... ...