More frontend work.

Added project data to version list.

Fleshing out project page
This commit is contained in:
Tim Shannon
2016-04-17 20:43:27 -05:00
parent ae961e9dd1
commit d117c3e664
5 changed files with 83 additions and 35 deletions

View File

@ -57,28 +57,6 @@
margin: 10px;
}
/*stages*/
.stage-load {
}
.stage-fetch {
}
.stage-build {
}
.stage-test {
}
.stage-release {
}
/* breadcrumbs */
#breadcrumbs {
@ -177,9 +155,37 @@
{{/partial}}
{{#partial project}}
<div class="table-responsive">
<table class="pure-table pure-table-striped">
<thead>
<tr>
<th>Version</th>
<th>Stage</th>
<th>Last Log</th>
<th>Release File</th>
</tr>
</thead>
<tbody>
{{#project.versions:i}}
<tr>
<td>{{.version}}</td>
<td>{{.stage}}</td>
<td title="{{.log}}">{{#if .log}}{{.log.substring(0,100) + " ..."}}{{/if}}</td>
<td>
{{#if .stage == "released"}}
<a href="/release/{{project.id}}/{{.version}}?file">Download</a>
{{/if}}
</td>
</tr>
{{/versions}}
</tbody>
</table>
</div>
{{/partial}}
{{#partial version}}
{{/partial}}
{{#partial stage}}