From 368ca8bc935ff783e495027ed4826ea00d7f7876 Mon Sep 17 00:00:00 2001 From: Michal Hrusecky Date: Sat, 12 Dec 2009 18:28:33 +0100 Subject: [PATCH] More links and images in status. Adding link to package overview in original project and devel project. Also adding few icons to find current status more easily. --- src/webui/app/views/project/status.rhtml | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/webui/app/views/project/status.rhtml b/src/webui/app/views/project/status.rhtml index 58ecd74..933cf52 100644 --- a/src/webui/app/views/project/status.rhtml +++ b/src/webui/app/views/project/status.rhtml @@ -51,10 +51,11 @@ + - + @@ -66,14 +67,21 @@ if shortname.length > 24 shortname = shortname[0..20] + "..." end -%> + + <% if p['firstfail'] -%> - - + <% else -%> - <% end -%> - +
Name Failing Devel ProjectMaintainerMaintainer Requests Comment
<% if p['firstfail'] -%> + <%= image_tag("dialog-warning.png", :size => "22x22", :title => "Error" ) %> + <% elsif p['request'].include? 'different_sources' -%> + <%= image_tag("dialog-question.png", :size => "22x22", :title => "So-so" ) %> + <% else -%> + <%= image_tag("ok.png", :size => "16x16", :title => "Ok" ) %> + <% end -%> + <%= link_to shortname, :controller => :package, :action => :show, :project => @project, :package => p['name'] %><%= link_to shortname, :title => p['name'], :controller => :package, :action => :live_build_log, :arch => p['failedarch'], :repository => p['failedrepo'], :project => @project, :package => p['name'] %><%= Integer(Time.now.to_i - p['firstfail']) / 3600 / 24 %>d<%= link_to String(Integer(Time.now.to_i - p['firstfail']) / 3600 / 24)+"d", :title => p['name'], :controller => :package, :action => :live_build_log, :arch => p['failedarch'], :repository => p['failedrepo'], :project => @project, :package => p['name'] %><%= shortname %> <%= if p['develproject'] then p['develproject'] end %><%= if p['develproject'] then link_to p['develproject'], :controller => :package, :action => :show, :project => p['develproject'], :package => p['name'] end %> <%= out='' if p['request'].include? 'different_sources' -- 1.6.5.6