This commit is contained in:
Eelco Dolstra 2008-11-06 13:40:31 +00:00
parent 9894b10131
commit b0bbb1a011
2 changed files with 26 additions and 0 deletions

View file

@ -56,4 +56,6 @@ __PACKAGE__->has_many(
# Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-05 23:48:14 # Created by DBIx::Class::Schema::Loader v0.04005 @ 2008-11-05 23:48:14
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bneV9O2uXIrg3Wuencuj+Q # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bneV9O2uXIrg3Wuencuj+Q
__PACKAGE__->has_many(dependentBuildInputs => 'HydraFrontend::Schema::Buildinputs', 'inputid');
1; 1;

View file

@ -105,5 +105,29 @@
</table> </table>
[% IF build.dependentBuildInputs %]
<h2>Used by</h2>
<p>The following builds have used this build as an input:</p>
<table class="tablesorter">
<thead>
<tr><th>Build</th><th>Input name</th><th>Timestamp</th></tr>
</thead>
<tbody>
[% FOREACH input IN build.dependentBuildInputs -%]
<tr>
<td><a href="[% c.uri_for('/build' input.buildid.id) %]">Job <tt>[% input.buildid.project %]:[% input.buildid.attrname %]</tt> build [% input.buildid.id %]</a></td>
<td><tt>[% input.name %]</tt></td>
<td>[% date.format(input.buildid.timestamp, '%Y-%m-%d %H:%M:%S') %]</td>
</tr>
[% END -%]
</tbody>
</table>
[% END %]
[% END %] [% END %]