Add ability to change the visibility of a repo, and show whether the repo is private in the repo-view screen

This commit is contained in:
Joseph Schorr 2013-09-28 17:11:10 -04:00
parent ce7620673b
commit 4382ebfd20
6 changed files with 214 additions and 11 deletions

View file

@ -6,7 +6,12 @@
<!-- Repo Header -->
<div class="header">
<h3>
<i class="icon-hdd icon-large"></i> <span style="color: #aaa;"> {{repo.namespace}}</span> <span style="color: #ccc">/</span> {{repo.name}}
<span class="icon-container">
<i class="icon-lock icon-large" ng-show="!repo.is_public" title="Private Repository"></i>
<i class="icon-hdd icon-large"></i>
</span>
<span style="color: #aaa;"> {{repo.namespace}}</span> <span style="color: #ccc">/</span> {{repo.name}}
<span class="settings-cog" ng-show="repo.can_admin" title="Repository Settings">
<a href="{{ '#/repository/' + repo.namespace + '/' + repo.name + '/admin' }}">