Mailinglist Archive: opensuse-buildservice (354 mails)

< Previous Next >
Re: [opensuse-buildservice] Webclient running locally
  • From: Dirk Stoecker <opensuse@xxxxxxxxxxxx>
  • Date: Thu, 8 Feb 2007 14:11:55 +0100 (CET)
  • Message-id: <Pine.LNX.4.64.0702081410040.3906@xxxxxxxxxxxxxxxxx>
On Thu, 8 Feb 2007, Rafal Kwasny wrote:

> I had already patched webclient to use https - it works on my side
> you have to configure front and as api.opensuse.org port 443
> disable ichain and apply this patch:
> http://altar.mine.nu/~mag/webclient-https.patch
> it should be integrated with svn version today, or they will propose
> another solution

Ok, works now.

Adrian: I attached a patch for the Build-Log from Monitor-Page links.
Please apply when ok.

Please note:
a) This is my first ruby code, but
b) it works :-)

Ciao
--
http://www.dstoecker.eu/ (PGP key available)Index: app/views/project/monitor.rhtml
===================================================================
--- app/views/project/monitor.rhtml (Revision 1195)
+++ app/views/project/monitor.rhtml (Arbeitskopie)
@@ -45,27 +45,39 @@
:package => packname, :project => @project.to_s %></td>
<% @repohash.each do |repo, archlist| -%>
<% archlist.each do |arch| -%>
- <td id="<%= status_id_for(packname, repo, arch)%>"
- <% if @statushash[repo][arch][packname] == "blocked" -%>
- bgcolor="#BBBBBB"><font color="#FFFFFF">blocked</font>
- <% elsif @statushash[repo][arch][packname] == "scheduled" -%>
- bgcolor="#BBBBBB">scheduled
- <% elsif @statushash[repo][arch][packname] == "building" -%>
- bgcolor="#BBBBBB"><font color="#0000F0">building</font>
- <% elsif @statushash[repo][arch][packname] == "disabled" -%>
- ><font color="#D0D000">disabled</font>
- <% elsif @statushash[repo][arch][packname] == "succeeded" -%>
- ><font color="#6EB927">succeeded</font>
- <% elsif @statushash[repo][arch][packname] == "broken" -%>
- ><font color="#F00000">broken</font>
- <% elsif @statushash[repo][arch][packname] == "failed" -%>
- ><font color="#F00000">failed</font>
- <% @failed[packname] = true %>
- <% elsif @statushash[repo][arch][packname] == "expansion error" -%>
- ><font color="#F00000">expansion error</font>
- <% else -%>
- ><%=h @statushash[repo][arch][packname] %>
- <% end -%>
+ <% $font = 0
+ $bgcolor = 0
+ if @statushash[repo][arch][packname] == "blocked"
+ $bgcolor="#BBBBBB"
+ $font="#FFFFFF"
+ elsif @statushash[repo][arch][packname] == "scheduled"
+ $bgcolor="#BBBBBB"
+ elsif @statushash[repo][arch][packname] == "building"
+ $bgcolor="#BBBBBB"
+ $font="#0000F0"
+ elsif @statushash[repo][arch][packname] == "disabled"
+ $font="#D0D000"
+ elsif @statushash[repo][arch][packname] == "succeeded"
+ $font="#6EB927"
+ elsif @statushash[repo][arch][packname] == "broken"
+ $font="#F00000"
+ elsif @statushash[repo][arch][packname] == "failed"
+ $font="#F00000"
+ @failed[packname] = true
+ elsif @statushash[repo][arch][packname] == "expansion error"
+ $font="#F00000"
+ @failed[packname] = true
+ end -%>
+ <td id="<%= status_id_for(packname, repo, arch)%>"<%
+ if $bgcolor != 0 %> bgcolor="<%=h $bgcolor %>"<% end -%>>
+ <% if $font
+ $txt = "<font color=\""+$font+"\">"+@statushash[repo][arch][packname]+"</font>"
+ else
+ $txt = @statushash[repo][arch][packname]
+ end -%>
+ <%= link_to $txt, :action => :live_build_log,
+ :package => packname, :project => @project.to_s, :arch => arch,
+ :controller => "package", :repository => repo %>
</td>
<% end -%>
<% end -%>
< Previous Next >