From 4aea975f38f3f3f8669c094615258043c2f78ab7 Mon Sep 17 00:00:00 2001 From: Gerrit Riessen Date: Sun, 2 Oct 2011 09:09:51 +0200 Subject: [PATCH] readded the link to issue in the errors listing --- app/views/errs/_table.html.haml | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/app/views/errs/_table.html.haml b/app/views/errs/_table.html.haml index 89d1547..ebf57f9 100644 --- a/app/views/errs/_table.html.haml +++ b/app/views/errs/_table.html.haml @@ -1,3 +1,4 @@ +- any_issue_links = errs.any?{|e| e.issue_link.present? } =form_tag do %table.errs.selectable %thead @@ -8,6 +9,8 @@ %th= link_for_sort "Latest", "last_notice_at" %th= link_for_sort "Deploy", "last_deploy_at" %th= link_for_sort "Count" + - if any_issue_links + %th Issue %th Resolve %tbody - errs.each do |problem| @@ -26,6 +29,10 @@ %td.latest #{time_ago_in_words(last_notice_at problem)} ago %td.deploy= problem.last_deploy_at ? problem.last_deploy_at.to_s(:micro) : 'n/a' %td.count= link_to problem.notices.count, app_err_path(problem.app, problem) + - if any_issue_links + %td.issue_link + - if problem.issue_link.present? + = link_to image_tag("#{problem.app.issue_tracker.class::Label}_goto.png"), problem.issue_link, :target => "_blank" %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? - if errs.none? %tr -- libgit2 0.21.2