Mailinglist Archive: opensuse-boosters (69 mails)

< Previous Next >
Re: [opensuse-boosters] factory.o.o
  • From: Michal Hrusecky <mhrusecky@xxxxxxx>
  • Date: Sat, 12 Dec 2009 18:49:20 +0100
  • Message-id: <20091212174920.GA17313@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Stephan Kulow - 14:58 11.12.09 wrote:
Hi,

https://build.opensuse.org/stage/project/status?project=openSUSE:Factory has
basically the current state of my perl scriptery as part of the build service.

My 2 cents. I was missing easy direct way to get to the package overview (to
see all files) and some pictures (everybody likes pictures). Attaching
patch.

--
Michal HRUSECKY SUSE LINUX, s.r.o
openSUSE Boosters Team Lihovarska 1060/12
PGP 0xFED656F6 19000 Praha 9
mhrusecky[at]suse.cz Czech Republic
http://michal.hrusecky.net http://www.suse.cz
From 368ca8bc935ff783e495027ed4826ea00d7f7876 Mon Sep 17 00:00:00 2001
From: Michal Hrusecky <Michal@xxxxxxxxxxxx>
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 @@
<table class='tablesorter' cellspacing='1'>
<thead>
<tr>
+ <th width='1%'></th>
<th width='5%'>Name</th>
<th width='2%'>Failing</th>
<th width='5%'>Devel Project</th>
- <th width='5%'>Maintainer</th>
+ <th width='4%'>Maintainer</th>
<th width='20%'>Requests</th>
<th width="20%">Comment</th>
</tr>
@@ -66,14 +67,21 @@
if shortname.length > 24
shortname = shortname[0..20] + "..."
end -%>
+ <td class="nowrap"><% 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 -%>
+ </td>
+ <td><%= link_to shortname, :controller => :package, :action => :show,
:project => @project, :package => p['name'] %></td>
<% if p['firstfail'] -%>
- <td class="nowrap"><%= link_to shortname, :title => p['name'],
:controller => :package, :action => :live_build_log, :arch => p['failedarch'],
:repository => p['failedrepo'], :project => @project, :package => p['name']
%></td>
- <td><%= Integer(Time.now.to_i - p['firstfail']) / 3600 / 24 %>d</td>
+ <td><%= 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'] %></td>
<% else -%>
- <td><span class="nowrap"><%= shortname %></span></td>
<td></td>
<% end -%>
- <td><%= if p['develproject'] then p['develproject'] end %></td>
+ <td><%= if p['develproject'] then link_to p['develproject'], :controller
=> :package, :action => :show, :project => p['develproject'], :package =>
p['name'] end %></td>
<td></td>
<td><%= out=''
if p['request'].include? 'different_sources'
--
1.6.5.6

< Previous Next >
Follow Ups
References