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:
Henrik Hodne 2014-01-28 19:46:30 -06:00
parent 5562e72492
commit e716c5d569
No known key found for this signature in database
GPG Key ID: 149794CB0A0ADFBF
2 changed files with 0 additions and 8 deletions

View File

@ -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">

View File

@ -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)