Have tags selected be handled universally throughout the entire repository view page.

This commit is contained in:
Joseph Schorr 2015-03-12 12:22:47 -07:00
parent ea61a68bcb
commit 347bf31f2d
9 changed files with 154 additions and 85 deletions

View file

@ -60,5 +60,4 @@
</div>
<div class="tag-operations-dialog" repository="repository" images="images"
action-handler="tagActionHandler"
tag-changed="handleTagChanged(data)"></div>
action-handler="tagActionHandler" tag-changed="handleTagChanged(data)"></div>

View file

@ -21,8 +21,9 @@
</span>
<span class="co-checked-actions" ng-if="checkedTags.checked.length">
<a ng-href="/repository/{{ repository.namespace }}/{{ repository.name }}?tab=changes&tags={{ getCheckedTagsString(checkedTags.checked) }}"
class="btn btn-default"><i class="fa fa-code-fork"></i> Visualize</a>
<a href="javascript:void(0)" class="btn btn-default" ng-click="setTab('changes')">
<i class="fa fa-code-fork"></i> Visualize
</a>
<button class="btn btn-default" ng-click="askDeleteMultipleTags(checkedTags.checked)">
<i class="fa fa-times"></i> Delete
</button>
@ -60,8 +61,9 @@
<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-track" ng-repeat="it in imageTracks" ng-style="{'color': it.color}">
<span class="image-track-dot" ng-if="it.image_id == tag.image_id"></span>
<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>
<span class="image-track-line" ng-class="trackLineClass($parent.$index, it)"
ng-style="{'borderColor': it.color}"></span>
</td>