travis-web/assets/scripts/app/templates/repos/show.hbs
2014-12-29 18:16:14 +01:00

33 lines
1.0 KiB
Handlebars

<div id="repo" {{bind-attr class="view.className"}}>
{{#if view.isEmpty}}
{{view Travis.ReposEmptyView}}
{{else}}
{{#if repo.isLoaded}}
{{#with repo}}
<div id="repo-header">
<h3>{{#link-to "repo" this}}{{slug}}{{/link-to}}</h3>
<div class="github-icon"><a {{bind-attr href="controller.urlGithub"}}><img src="/images/icons/github.svg" width="21" height="21"/></a></div>
<div class="status-image">
<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"/>
</a>
</div>
{{view 'repo-show-tools'}}
</div>
<p class="description">{{description}}</p>
{{view 'repo-show-tabs'}}
{{view 'repo-actions'}}
{{/with}}
<div class="tab">
{{outlet}}
</div>
{{else}}
<div class="loading"><span>Loading</span></div>
{{/if}}
{{/if}}
</div>