add githubCommitUrl helper to build history
This commit is contained in:
parent
8ff3297083
commit
4e03709cca
|
@ -1,5 +1,6 @@
|
||||||
`import Ember from 'ember'`
|
`import Ember from 'ember'`
|
||||||
`import { gravatarImage } from 'travis/utils/urls'`
|
`import { gravatarImage } from 'travis/utils/urls'`
|
||||||
|
`import { githubCommit as githubCommitUrl } from 'travis/utils/urls'`
|
||||||
|
|
||||||
BuildsItemComponent = Ember.Component.extend
|
BuildsItemComponent = Ember.Component.extend
|
||||||
classNameBindings: ['build.state']
|
classNameBindings: ['build.state']
|
||||||
|
@ -9,4 +10,8 @@ BuildsItemComponent = Ember.Component.extend
|
||||||
gravatarImage(@get('build.commit.authorEmail'), 40)
|
gravatarImage(@get('build.commit.authorEmail'), 40)
|
||||||
).property('build.commit.authorEmail')
|
).property('build.commit.authorEmail')
|
||||||
|
|
||||||
|
urlGithubCommit: (->
|
||||||
|
githubCommitUrl(@get('build.repo.slug'), @get('build.commit.sha'))
|
||||||
|
).property('build.commit.sha')
|
||||||
|
|
||||||
`export default BuildsItemComponent`
|
`export default BuildsItemComponent`
|
||||||
|
|
|
@ -31,8 +31,8 @@
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</p>
|
</p>
|
||||||
<p class="">
|
<p>
|
||||||
<a {{bind-attr href="build.urlGithubCommit"}}>
|
<a href="{{urlGithubCommit}}">
|
||||||
<span class="icon icon-github"></span>
|
<span class="icon icon-github"></span>
|
||||||
{{format-sha build.commit.sha}}
|
{{format-sha build.commit.sha}}
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
{{view 'repo-show-tabs'}}
|
{{view 'repo-show-tabs'}}
|
||||||
</div>
|
</div>
|
||||||
<div class="tabbody repo-main">
|
<div class="tabbody repo-main">
|
||||||
<h1>Hello</h1>
|
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user