Add footer section for commit and author details.

This commit is contained in:
Mathias Meyer 2014-05-08 12:37:00 +02:00
parent 4554ca3c0b
commit 744e32a15c
2 changed files with 46 additions and 2 deletions

View File

@ -27,6 +27,28 @@
<pre class="body">
{{formatMessage build.commit.body repoBinding=build.repo pre=true}}
</pre>
<div class="footer">
<div class="author">
{{#if commit.authorName}}
<img src="https://travis-ci.org/images/mailer/mascot-avatar-40px.png"/>{{commit.authorName}} authored
{{/if}}
{{#if commit.committerName}}
<img src="https://travis-ci.org/images/mailer/mascot-avatar-40px.png"/>{{commit.committerName}} committed
{{/if}}
</div>
<div class="commit">
<a class="github" {{bind-attr href="controller.urlGithubCommit"}}>Commit {{formatSha commit.sha}}</a><img src="/images/icons/github.png" height="15"/>
{{#if build.pullRequest}}
<a {{bind-attr href="build.commit.compareUrl"}} >#{{build.pullRequestNumber}}: {{build.pullRequestTitle}}</a> {{else}}
{{#if build.commit.compareUrl}}
<a {{bind-attr href="build.commit.compareUrl"}}>Compare {{pathFrom build.commit.compareUrl}}</a>
{{/if}}
{{/if}}
<img src="/images/icons/github.png" height="15"/>
</div>
</div>
</div>
<dl id="summary">

View File

@ -15,7 +15,6 @@
#new-summary
@include clearfix
@include border-radius(5px)
width: 100%
background-color: #fafafa
min-height: 30px
padding: 5px 15px
@ -79,7 +78,30 @@
float: right
width: 150px
font-size: 11px
margin-right: 30px
.footer
a
text-decoration: underline
.commit
text-align: right
width: inherit
margin-top: 0px
float: right
img
margin-left: 5px
margin-right: 5px
vertical-align: middle
.author
float: left
img
height: 15px
width: 15px
.github
#summary
margin: 0 0 0 12px