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}}
|
{{else}}
|
||||||
{{#if repo.isLoaded}}
|
{{#if repo.isLoaded}}
|
||||||
{{#with repo}}
|
{{#with repo}}
|
||||||
<h3>
|
<div id="repo-header">
|
||||||
<a {{bindAttr href="controller.urlGithub"}}>{{slug}}</a>
|
<h3>{{#linkTo "repo" this}}{{slug}}{{/linkTo}}</h3>
|
||||||
</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>
|
<p class="description">{{description}}</p>
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ describe 'on the "build" state', ->
|
||||||
]
|
]
|
||||||
|
|
||||||
displaysRepository
|
displaysRepository
|
||||||
href: 'http://github.com/travis-ci/travis-core'
|
href: '/travis-ci/travis-core'
|
||||||
|
|
||||||
displaysSummary
|
displaysSummary
|
||||||
type: 'build'
|
type: 'build'
|
||||||
|
|
|
@ -11,7 +11,7 @@ describe 'on the "builds" state', ->
|
||||||
]
|
]
|
||||||
|
|
||||||
displaysRepository
|
displaysRepository
|
||||||
href: 'http://github.com/travis-ci/travis-core'
|
href: '/travis-ci/travis-core'
|
||||||
|
|
||||||
displaysTabs
|
displaysTabs
|
||||||
current: { href: '/travis-ci/travis-core' }
|
current: { href: '/travis-ci/travis-core' }
|
||||||
|
|
|
@ -11,7 +11,7 @@ describe 'on the "current" state', ->
|
||||||
]
|
]
|
||||||
|
|
||||||
displaysRepository
|
displaysRepository
|
||||||
href: 'http://github.com/travis-ci/travis-core'
|
href: '/travis-ci/travis-core'
|
||||||
|
|
||||||
displaysSummary
|
displaysSummary
|
||||||
type: 'build'
|
type: 'build'
|
||||||
|
|
|
@ -11,7 +11,7 @@ describe 'on the "index" state', ->
|
||||||
]
|
]
|
||||||
|
|
||||||
displaysRepository
|
displaysRepository
|
||||||
href: 'http://github.com/travis-ci/travis-core'
|
href: '/travis-ci/travis-core'
|
||||||
|
|
||||||
displaysSummary
|
displaysSummary
|
||||||
type: 'build'
|
type: 'build'
|
||||||
|
|
|
@ -21,7 +21,7 @@ describe 'on the "job" state', ->
|
||||||
waits 100
|
waits 100
|
||||||
runs ->
|
runs ->
|
||||||
displaysRepository
|
displaysRepository
|
||||||
href: 'http://github.com/travis-ci/travis-core'
|
href: '/travis-ci/travis-core'
|
||||||
|
|
||||||
displaysSummary
|
displaysSummary
|
||||||
id: 1
|
id: 1
|
||||||
|
|
|
@ -13,7 +13,7 @@ describe 'my repos tab', ->
|
||||||
]
|
]
|
||||||
|
|
||||||
displaysRepository
|
displaysRepository
|
||||||
href: 'http://github.com/travis-ci/travis-core'
|
href: '/travis-ci/travis-core'
|
||||||
|
|
||||||
displaysSummary
|
displaysSummary
|
||||||
type: 'build'
|
type: 'build'
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
@displaysRepository = (repo) ->
|
@displaysRepository = (repo) ->
|
||||||
expect($('#repo h3 a').attr('href')).toEqual (repo.href)
|
expect($('#repo h3 a').attr('href')).toEqual (repo.href)
|
||||||
|
expect($('#repo .github-icon a').attr('href')).toEqual ("http://github.com#{repo.href}")
|
||||||
|
|
||||||
@displaysTabs = (tabs) ->
|
@displaysTabs = (tabs) ->
|
||||||
for name, tab of tabs
|
for name, tab of tabs
|
||||||
|
|
|
@ -6,6 +6,19 @@
|
||||||
overflow-x: hidden
|
overflow-x: hidden
|
||||||
padding-right: 10px
|
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
|
.not-found
|
||||||
display: block
|
display: block
|
||||||
padding: 10px 5px
|
padding: 10px 5px
|
||||||
|
|
Loading…
Reference in New Issue
Block a user