Merge pull request #269 from simi/update-jobs-summary
Update jobs summary to new format.
This commit is contained in:
commit
a6ee607771
|
@ -29,12 +29,14 @@
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="author">
|
<div class="author">
|
||||||
{{#if commit.authorName}}
|
{{#if job.commit.authorName}}
|
||||||
<img src="https://travis-ci.org/images/mailer/mascot-avatar-40px.png"/>{{commit.authorName}} authored
|
<div class="authored"><img {{bind-attr src="view.urlAuthorGravatarImage"}}/>{{job.commit.authorName}} authored{{#if job.commit.authorIsCommitter}} and committed{{/if}}</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if commit.committerName}}
|
{{#unless job.commit.authorIsCommitter}}
|
||||||
<img src="https://travis-ci.org/images/mailer/mascot-avatar-40px.png"/>{{commit.committerName}} committed
|
{{#if job.commit.committerName}}
|
||||||
|
<div class="committed"><img {{bind-attr src="view.urlCommitterGravatarImage"}}/>{{job.commit.committerName}} committed</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/unless}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="commit-changes">
|
<div class="commit-changes">
|
||||||
|
|
|
@ -30,3 +30,11 @@ Travis.reopen
|
||||||
urlGithubCommit: (->
|
urlGithubCommit: (->
|
||||||
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
|
Travis.Urls.githubCommit(@get('repo.slug'), @get('commit.sha'))
|
||||||
).property('repo.slug', 'commit.sha')
|
).property('repo.slug', 'commit.sha')
|
||||||
|
|
||||||
|
urlCommitterGravatarImage: (->
|
||||||
|
Travis.Urls.gravatarImage(@get('commit.committerEmail'), 40)
|
||||||
|
).property('commit.committerEmail')
|
||||||
|
|
||||||
|
urlAuthorGravatarImage: (->
|
||||||
|
Travis.Urls.gravatarImage(@get('commit.authorEmail'), 40)
|
||||||
|
).property('commit.authorEmail')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user