Show annotations on the job page
This commit is contained in:
parent
1b8ec432dc
commit
5ce8093253
|
@ -5,6 +5,7 @@ Travis.JobController = Em.Controller.extend
|
|||
repoBinding: 'controllers.repo.repo'
|
||||
commitBinding: 'job.commit'
|
||||
lineNumberBinding: 'controllers.repo.lineNumber'
|
||||
annotationsBinding: 'job.annotations'
|
||||
|
||||
currentItemBinding: 'job'
|
||||
|
||||
|
|
|
@ -48,6 +48,12 @@
|
|||
<dd class="config">{{formatConfig job.config}}</dd>
|
||||
</dl>
|
||||
|
||||
<div id="annotations">
|
||||
{{#each annotation in view.annotations}}
|
||||
<div class="annotation"><a {{bindAttr href="annotation.url"}}>{{annotation.providerName}}</a>: {{annotation.description}}</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
{{view Travis.LogView jobBinding="job"}}
|
||||
</div>
|
||||
{{else}}
|
||||
|
|
|
@ -19,6 +19,7 @@ Travis.reopen
|
|||
repoBinding: 'controller.repo'
|
||||
jobBinding: 'controller.job'
|
||||
commitBinding: 'job.commit'
|
||||
annotationsBinding: 'job.annotations'
|
||||
|
||||
currentItemBinding: 'job'
|
||||
|
||||
|
|
16
assets/styles/main/annotations.sass
Normal file
16
assets/styles/main/annotations.sass
Normal file
|
@ -0,0 +1,16 @@
|
|||
@import "_mixins/all"
|
||||
|
||||
#annotations
|
||||
margin: 0 0 0 12px
|
||||
padding: 12px 0 0 0
|
||||
border-top: 1px solid $gray-dark-3
|
||||
@include clearfix
|
||||
|
||||
a
|
||||
text-decoration: underline
|
||||
|
||||
.annotation
|
||||
float: left
|
||||
min-height: 25px
|
||||
margin: 0
|
||||
|
Loading…
Reference in New Issue
Block a user