feat(repo-tools): show status image popup to everyone
If you can see the repository, then you should also be able to see the status of said repository (and status image), so you should also be able to copy the link to a status image. Close travis-ci/travis-ci#1881.
This commit is contained in:
parent
5562e72492
commit
e716c5d569
|
@ -12,13 +12,9 @@
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
{{#if view.displayStatusImages}}
|
|
||||||
<a href="#" id="status-image-popup" name="status-images" class="open-popup" {{action "statusImages" target="view"}}>
|
<a href="#" id="status-image-popup" name="status-images" class="open-popup" {{action "statusImages" target="view"}}>
|
||||||
<img {{bind-attr src="view.statusImageUrl"}} title="Build Status Images"/>
|
<img {{bind-attr src="view.statusImageUrl"}} title="Build Status Images"/>
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="regenerate-key" class="popup">
|
<div id="regenerate-key" class="popup">
|
||||||
|
|
|
@ -124,10 +124,6 @@ Travis.reopen
|
||||||
Travis.Urls.statusImage(@get('slug'))
|
Travis.Urls.statusImage(@get('slug'))
|
||||||
).property('slug')
|
).property('slug')
|
||||||
|
|
||||||
displayStatusImages: (->
|
|
||||||
@get('hasPermission')
|
|
||||||
).property('hasPermission')
|
|
||||||
|
|
||||||
statusImages: ->
|
statusImages: ->
|
||||||
@popupCloseAll()
|
@popupCloseAll()
|
||||||
view = Travis.StatusImagesView.create(toolsView: this)
|
view = Travis.StatusImagesView.create(toolsView: this)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user