Fixed last release file issue
trimmed logs in tables some more
This commit is contained in:
parent
07d499456b
commit
1a161d9554
File diff suppressed because one or more lines are too long
@ -121,7 +121,7 @@ func (ds *Store) LastRelease() (*Release, error) {
|
||||
err := ds.bolt.View(func(tx *bolt.Tx) error {
|
||||
c := tx.Bucket([]byte(bucketReleases)).Cursor()
|
||||
|
||||
_, v := c.Last()
|
||||
_, v := c.First() // this is confusing
|
||||
if v == nil {
|
||||
return ErrNotFound
|
||||
}
|
||||
|
@ -177,7 +177,7 @@
|
||||
<td>
|
||||
<a href="/project/{{.id}}/{{.lastLog.version}}">{{.lastLog.version}}</a>
|
||||
</td>
|
||||
<td title="{{.lastLog.log}}">{{#if .lastLog.log && .lastLog.length > 200}}{{.lastLog.log.substring(0,200)}}...{{else}}{{.lastLog.log}}{{/if}}</td>
|
||||
<td title="{{.lastLog.log}}">{{#if .lastLog.log && .lastLog.length > 100}}{{.lastLog.log.substring(0,100)}}...{{else}}{{.lastLog.log}}{{/if}}</td>
|
||||
<td>
|
||||
<a href="/project/{{.id}}/{{.releaseVersion}}">{{.releaseVersion}}</a>
|
||||
</td>
|
||||
@ -213,7 +213,7 @@
|
||||
<a href="/project/{{project.id}}/{{.version}}">{{.version}}</a>
|
||||
</td>
|
||||
<td>{{.stage}}</td>
|
||||
<td title="{{.log}}">{{#if .log && .log.length > 200}}{{.log.substring(0,200)}}...{{else}}{{.log}}{{/if}}</td>
|
||||
<td title="{{.log}}">{{#if .log && .log.length > 100}}{{.log.substring(0,100)}}...{{else}}{{.log}}{{/if}}</td>
|
||||
<td>
|
||||
{{#if releases[project.id + .version]}}
|
||||
<a href="/release/{{project.id}}/{{.version}}?file">{{releases[project.id + .version].fileName}}</a>
|
||||
|
Loading…
Reference in New Issue
Block a user