Remove obsolete CSS classes

This commit is contained in:
Eelco Dolstra 2013-02-22 17:11:10 +01:00
parent f5a2859ce2
commit bd7be1cb84
8 changed files with 12 additions and 24 deletions

View file

@ -24,7 +24,7 @@
[% IF ( type == "All" ) || ( type == "Failed" && step.status != 0 ) || ( type == "Running" && step.busy == 1 ) %] [% IF ( type == "All" ) || ( type == "Failed" && step.status != 0 ) || ( type == "Running" && step.busy == 1 ) %]
[% has_log = log_exists(step.drvpath); [% has_log = log_exists(step.drvpath);
log = c.uri_for('/build' build.id 'nixlog' step.stepnr); %] log = c.uri_for('/build' build.id 'nixlog' step.stepnr); %]
<tr [% IF has_log %] class="clickable" onclick="window.location = '[% log %]'" [% END %]> <tr [% IF has_log %] onclick="window.location = '[% log %]'" [% END %]>
<td>[% step.stepnr %]</td> <td>[% step.stepnr %]</td>
<td> <td>
[% IF step.type == 0 %] [% IF step.type == 0 %]

View file

@ -45,14 +45,12 @@ install the package simply by clicking on the packages below.</p>
<tbody> <tbody>
[% odd = 0 %]
[% FOREACH pkg IN nixPkgs %] [% FOREACH pkg IN nixPkgs %]
[% b = pkg.build %] [% b = pkg.build %]
[% uri = "${curUri}/pkg/${pkg.name}.nixpkg" %] [% uri = "${curUri}/pkg/${pkg.name}.nixpkg" %]
<tr class="clickable [% IF odd %] odd [% END; odd = !odd %]" onclick="window.location = '[% uri %]'"> <tr onclick="window.location = '[% uri %]'">
<td><a href="[% c.uri_for('/build' b.id) %]">[% b.id %]</a></td> <td><a href="[% c.uri_for('/build' b.id) %]">[% b.id %]</a></td>
<td><a href="[% uri %]"><tt>[% b.get_column('releasename') || b.nixname %]</tt></a></td> <td><a href="[% uri %]"><tt>[% b.get_column('releasename') || b.nixname %]</tt></a></td>
<td><tt>[% b.system %]</tt></td> <td><tt>[% b.system %]</tt></td>

View file

@ -62,7 +62,7 @@ END;
BLOCK renderBuildListHeader %] BLOCK renderBuildListHeader %]
<table class="buildList table table-striped table-condensed [% IF !unsortable %]tablesorter[% END %] [% IF !showSchedulingInfo %] clean[% END %]"> <table class="table table-striped table-condensed [% IF !unsortable %]tablesorter[% END %]">
<thead> <thead>
<tr> <tr>
[% IF !hideResultInfo %] [% IF !hideResultInfo %]
@ -94,15 +94,8 @@ BLOCK renderBuildListHeader %]
BLOCK renderBuildListBody; BLOCK renderBuildListBody;
odd = 0;
FOREACH build IN builds; %] FOREACH build IN builds; %]
<tr class="clickable <tr onclick="if(event.which == 2) return true; window.location = '[% c.uri_for('/build' build.id) %]'">
[% IF showSchedulingInfo %]
[% IF build.busy %]runningBuild[% ELSIF build.disabled == 1 || build.get_column('enabled') == 0 %]disabledBuild[% END %]
[% ELSE %]
[% IF odd %] odd [% END; odd = !odd %]
[% END %]"
onclick="if(event.which == 2) return true; window.location = '[% c.uri_for('/build' build.id) %]'">
[% IF !hideResultInfo %] [% IF !hideResultInfo %]
<td> <td>
[% INCLUDE renderBuildStatusIcon size=16 busy=(showSchedulingInfo ? 1 : 0) buildstatus=build.buildstatus %] [% INCLUDE renderBuildStatusIcon size=16 busy=(showSchedulingInfo ? 1 : 0) buildstatus=build.buildstatus %]
@ -405,7 +398,7 @@ BLOCK renderEvals %]
[% FOREACH e IN evals; [% FOREACH e IN evals;
eval = e.eval; eval = e.eval;
link = c.uri_for(c.controller('JobsetEval').action_for('view'), [eval.id]) %] link = c.uri_for(c.controller('JobsetEval').action_for('view'), [eval.id]) %]
<tr class="clickable" onclick="window.location = '[% link %]'"> <tr onclick="window.location = '[% link %]'">
[% IF !jobset && !build %] [% IF !jobset && !build %]
<td>[% INCLUDE renderFullJobsetName project=eval.get_column('project') jobset=eval.get_column('jobset') %]</td> <td>[% INCLUDE renderFullJobsetName project=eval.get_column('project') jobset=eval.get_column('jobset') %]</td>
[% END %] [% END %]

View file

@ -13,7 +13,7 @@ that dont build.</p>
<h2>Evaluation errors in jobsets</h2> <h2>Evaluation errors in jobsets</h2>
<table class="buildList tablesorter table table-condensed table-striped"> <table class="tablesorter table table-condensed table-striped">
<thead> <thead>
<tr> <tr>
<th>Name</th> <th>Name</th>
@ -39,7 +39,7 @@ that dont build.</p>
<h2>Evaluation errors in jobs</h2> <h2>Evaluation errors in jobs</h2>
<table class="buildList tablesorter table table-condensed table-striped"> <table class="tablesorter table table-condensed table-striped">
<thead> <thead>
<tr> <tr>
<th>Name</th> <th>Name</th>

View file

@ -3,9 +3,8 @@
<table class="table table-striped table-condensed"> <table class="table table-striped table-condensed">
<thead><tr><th>Job</th>[% FOREACH s IN systems %]<th>[% s.system %]</th>[% END %]</tr></thead> <thead><tr><th>Job</th>[% FOREACH s IN systems %]<th>[% s.system %]</th>[% END %]</tr></thead>
<tbody> <tbody>
[% odd = 0 %]
[% FOREACH j IN activeJobsStatus %] [% FOREACH j IN activeJobsStatus %]
<tr class="[% IF odd %] odd [% END; odd = !odd %]"> <tr>
<td>[% INCLUDE renderJobName project=project.name jobset = jobset.name job = j.get_column('job') %]</td> <td>[% INCLUDE renderJobName project=project.name jobset = jobset.name job = j.get_column('job') %]</td>
[% FOREACH s IN systems %] [% FOREACH s IN systems %]
[% system = s.system %] [% system = s.system %]

View file

@ -25,8 +25,7 @@
</thead> </thead>
<tbody> <tbody>
[% FOREACH p IN projects %] [% FOREACH p IN projects %]
<tr class="clickable [% IF odd %] odd [% END; odd = !odd %]" <tr onclick="window.location = '[% c.uri_for('/project' p.name) %]'">
onclick="window.location = '[% c.uri_for('/project' p.name) %]'">
<td><span class="[% IF !p.enabled %]disabled-project[% END %] [%+ IF p.hidden %]hidden-project[% END %]">[% INCLUDE renderProjectName project = p.name %]</span></td> <td><span class="[% IF !p.enabled %]disabled-project[% END %] [%+ IF p.hidden %]hidden-project[% END %]">[% INCLUDE renderProjectName project = p.name %]</span></td>
<td>[% HTML.escape(p.displayname) %]</td> <td>[% HTML.escape(p.displayname) %]</td>
<td>[% WRAPPER maybeLink uri=p.homepage %][% HTML.escape(p.description) %][% END %]</td> <td>[% WRAPPER maybeLink uri=p.homepage %][% HTML.escape(p.description) %][% END %]</td>

View file

@ -27,8 +27,7 @@
<tbody> <tbody>
[% FOREACH j IN jobsets %] [% FOREACH j IN jobsets %]
[% successrate = 0 %] [% successrate = 0 %]
<tr class="clickable [% IF odd %] odd [% END; odd = !odd %]" <tr onclick="window.location = '[% c.uri_for('/jobset' project.name j.name) %]'">
onclick="window.location = '[% c.uri_for('/jobset' project.name j.name) %]'">
<td> <td>
[% IF j.get_column('nrscheduled') > 0 %] [% IF j.get_column('nrscheduled') > 0 %]
<img src="/static/images/help_16.png" alt="Scheduled" /> <img src="/static/images/help_16.png" alt="Scheduled" />
@ -130,7 +129,7 @@
<tbody> <tbody>
[% FOREACH release IN releases %] [% FOREACH release IN releases %]
[% link = c.uri_for('/release' project.name release.name) %] [% link = c.uri_for('/release' project.name release.name) %]
<tr class="clickable" onclick="window.location = '[% link %]'"> <tr onclick="window.location = '[% link %]'">
<td><a href="[% link %]"><tt>[% release.name %]</tt></a></td> <td><a href="[% link %]"><tt>[% release.name %]</tt></a></td>
<td>[% INCLUDE renderDateTime timestamp = release.timestamp %]</td> <td>[% INCLUDE renderDateTime timestamp = release.timestamp %]</td>
</tr> </tr>

View file

@ -25,7 +25,7 @@
<tbody> <tbody>
[% FOREACH result IN results %] [% FOREACH result IN results %]
[% link = c.uri_for('/view' project.name view.name result.id) %] [% link = c.uri_for('/view' project.name view.name result.id) %]
<tr class="clickable" onclick="window.location = '[% link %]'"> <tr onclick="window.location = '[% link %]'">
<td> <td>
[% IF result.status == 0 %] [% IF result.status == 0 %]
<img src="/static/images/checkmark_16.png" /> <img src="/static/images/checkmark_16.png" />