Merge pull request #184 from travis-ci/mm-repo-name-links-to-travis
Change repository header to link to Travis repo.
This commit is contained in:
commit
c263319ed5
BIN
assets/images/icons/github.png
Normal file
BIN
assets/images/icons/github.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
|
@ -7,9 +7,10 @@
|
|||
{{else}}
|
||||
{{#if repo.isLoaded}}
|
||||
{{#with repo}}
|
||||
<h3>
|
||||
<a {{bindAttr href="controller.urlGithub"}}>{{slug}}</a>
|
||||
</h3>
|
||||
<div id="repo-header">
|
||||
<h3>{{#linkTo "repo" this}}{{slug}}{{/linkTo}}</h3>
|
||||
<div class="github-icon"><a {{bindAttr href="controller.urlGithub"}}><img src="/images/icons/github.png" width="21" height="21"/></a></div>
|
||||
</div>
|
||||
|
||||
<p class="description">{{description}}</p>
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ describe 'on the "build" state', ->
|
|||
]
|
||||
|
||||
displaysRepository
|
||||
href: 'http://github.com/travis-ci/travis-core'
|
||||
href: '/travis-ci/travis-core'
|
||||
|
||||
displaysSummary
|
||||
type: 'build'
|
||||
|
|
|
@ -11,7 +11,7 @@ describe 'on the "builds" state', ->
|
|||
]
|
||||
|
||||
displaysRepository
|
||||
href: 'http://github.com/travis-ci/travis-core'
|
||||
href: '/travis-ci/travis-core'
|
||||
|
||||
displaysTabs
|
||||
current: { href: '/travis-ci/travis-core' }
|
||||
|
|
|
@ -11,7 +11,7 @@ describe 'on the "current" state', ->
|
|||
]
|
||||
|
||||
displaysRepository
|
||||
href: 'http://github.com/travis-ci/travis-core'
|
||||
href: '/travis-ci/travis-core'
|
||||
|
||||
displaysSummary
|
||||
type: 'build'
|
||||
|
|
|
@ -11,7 +11,7 @@ describe 'on the "index" state', ->
|
|||
]
|
||||
|
||||
displaysRepository
|
||||
href: 'http://github.com/travis-ci/travis-core'
|
||||
href: '/travis-ci/travis-core'
|
||||
|
||||
displaysSummary
|
||||
type: 'build'
|
||||
|
|
|
@ -21,7 +21,7 @@ describe 'on the "job" state', ->
|
|||
waits 100
|
||||
runs ->
|
||||
displaysRepository
|
||||
href: 'http://github.com/travis-ci/travis-core'
|
||||
href: '/travis-ci/travis-core'
|
||||
|
||||
displaysSummary
|
||||
id: 1
|
||||
|
|
|
@ -13,7 +13,7 @@ describe 'my repos tab', ->
|
|||
]
|
||||
|
||||
displaysRepository
|
||||
href: 'http://github.com/travis-ci/travis-core'
|
||||
href: '/travis-ci/travis-core'
|
||||
|
||||
displaysSummary
|
||||
type: 'build'
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
@displaysRepository = (repo) ->
|
||||
expect($('#repo h3 a').attr('href')).toEqual (repo.href)
|
||||
expect($('#repo .github-icon a').attr('href')).toEqual ("http://github.com#{repo.href}")
|
||||
|
||||
@displaysTabs = (tabs) ->
|
||||
for name, tab of tabs
|
||||
|
|
|
@ -6,6 +6,19 @@
|
|||
overflow-x: hidden
|
||||
padding-right: 10px
|
||||
|
||||
h3
|
||||
display: inline-block
|
||||
margin-right: 5px
|
||||
|
||||
.github-icon
|
||||
width: 21px
|
||||
height: 21px
|
||||
display: inline-block
|
||||
|
||||
.github-icon
|
||||
img
|
||||
margin-top: 2px
|
||||
|
||||
.not-found
|
||||
display: block
|
||||
padding: 10px 5px
|
||||
|
|
Loading…
Reference in New Issue
Block a user