This commit is contained in:
Eelco Dolstra 2008-11-25 01:22:47 +00:00
parent e742833da3
commit 147b980028
4 changed files with 9 additions and 2 deletions

View file

@ -328,7 +328,7 @@ sub nixlog :Local {
return error($c, "Build step $stepnr of build $id does not have a log file.") if $step->logfile eq ""; return error($c, "Build step $stepnr of build $id does not have a log file.") if $step->logfile eq "";
$c->stash->{template} = 'log.tt'; $c->stash->{template} = 'log.tt';
$c->stash->{id} = $id; $c->stash->{build} = $build;
$c->stash->{step} = $step; $c->stash->{step} = $step;
# !!! should be done in the view (as a TT plugin). # !!! should be done in the view (as a TT plugin).

View file

@ -1,6 +1,6 @@
[% WRAPPER layout.tt title="Hydra Overview" %] [% WRAPPER layout.tt title="Hydra Overview" %]
<h1>Logfile for <tt>[% build.project.name %]:[% build.attrname %]</tt> build [% build.id %]</h1> <h1>Logfile for <tt>[% build.project.name %]:[% build.attrname %]</tt> build [% build.id %][%IF step %], step [% step.stepnr %] (<tt>[% step.outpath %]</tt>)[% END %]</h1>
<div class="buildlog"> <div class="buildlog">
[% logtext -%] [% logtext -%]

View file

@ -79,3 +79,7 @@ em.storeref:hover span.popup {
color: #ff0000; color: #ff0000;
font-weight: bold; font-weight: bold;
} }
.prio3 {
font-style: italic;
}

View file

@ -65,6 +65,9 @@
<xsl:if test="@error"> <xsl:if test="@error">
<xsl:attribute name="class">errorLine</xsl:attribute> <xsl:attribute name="class">errorLine</xsl:attribute>
</xsl:if> </xsl:if>
<xsl:if test="@priority = 3">
<xsl:attribute name="class">prio3</xsl:attribute>
</xsl:if>
<xsl:apply-templates/> <xsl:apply-templates/>
</code> </code>
</xsl:template> </xsl:template>