Small fixes

This commit is contained in:
Joseph Schorr 2015-03-16 17:09:46 -04:00
parent 31480de8c1
commit 5479ffdf32
2 changed files with 8 additions and 2 deletions

View file

@ -62,7 +62,11 @@
<td><i class="fa fa-tag"></i> {{ tag.name }}</td>
<td><span am-time-ago="tag.last_modified"></span></td>
<td>{{ tag.size | bytes }}</td>
<td class="image-id-col">{{ tag.image_id.substr(0, 12) }}</td>
<td class="image-id-col">
<a ng-href="/repository/{{ repository.namespace }}/{{ repository.name }}/image/{{ tag.image_id }}">
{{ tag.image_id.substr(0, 12) }}
</a>
</td>
<td class="image-track" ng-repeat="it in imageTracks">
<span class="image-track-dot" ng-if="it.image_id == tag.image_id"
ng-style="{'borderColor': it.color}"></span>

View file

@ -59,6 +59,8 @@ angular.module('quay').directive('tagOperationsDialog', function () {
};
$scope.createOrMoveTag = function(image, tag) {
if (!$scope.repository.can_write) { return; }
$scope.addingTag = true;
var params = {
@ -105,7 +107,7 @@ angular.module('quay').directive('tagOperationsDialog', function () {
};
$scope.deleteTag = function(tag, callback, opt_skipmarking) {
if (!$scope.repository.can_admin) { return; }
if (!$scope.repository.can_write) { return; }
var params = {
'repository': $scope.repository.namespace + '/' + $scope.repository.name,