Stub out the repo admin view.

This commit is contained in:
yackob03 2013-09-26 20:34:58 -04:00
parent 539275d04e
commit f2ee7772f4
4 changed files with 10 additions and 3 deletions

View file

@ -29,8 +29,8 @@ quayApp = angular.module('quay', ['restangular'], function($provide) {
config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$routeProvider.
when('/repository/:namespace/:name', {templateUrl: '/static/partials/view-repo.html', controller: RepoCtrl}).
when('/repository/:namespace/:name/:tag', {templateUrl: '/static/partials/view-repo.html', controller: RepoCtrl}).
when('/repository/:namespace/:name/tag/:tag', {templateUrl: '/static/partials/view-repo.html', controller: RepoCtrl}).
when('/repository/:namespace/:name/admin', {templateUrl: '/static/partials/repo-admin.html', controller:RepoAdminCtrl}).
when('/repository/', {title: 'Repositories', templateUrl: '/static/partials/repo-list.html', controller: RepoListCtrl}).
when('/', {title: 'Quay', templateUrl: '/static/partials/landing.html', controller: LandingCtrl}).
otherwise({redirectTo: '/'});

View file

@ -44,3 +44,7 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope) {
$rootScope.title = 'Unknown Repository';
});
}
function RepoAdminCtrl() {
}

View file

@ -0,0 +1,3 @@
<div class="container">
<h2>Permissions</h2>
</div>

View file

@ -27,7 +27,7 @@
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">{{currentTag.name}} <b class="caret"></b></a>
<ul class="dropdown-menu">
<li ng-repeat="tag in repo.tags">
<a href="{{ '#/repository/' + repo.namespace + '/' + repo.name + '/' + tag.name }}">{{tag.name}}</a>
<a href="{{ '#/repository/' + repo.namespace + '/' + repo.name + '/tag/' + tag.name }}">{{tag.name}}</a>
</li>
</ul>
</span>