Small UI fixes to tag history timeline

This commit is contained in:
Joseph Schorr 2017-03-03 13:59:28 -05:00
parent 0dbe267212
commit 35752176b5
3 changed files with 7 additions and 2 deletions

View file

@ -137,7 +137,6 @@
background: #eee;
padding-right: 6px;
color: black;
cursor: pointer;
}
.repo-tag-history-element .history-entry .tag-span.checked {

View file

@ -17,7 +17,9 @@
{{ entry.date | amDateFormat:'dddd, MMMM Do YYYY' }}
</div>
<div ng-if="!entry.date_break">
<div class="history-icon-container"><div class="history-icon"></div></div>
<div class="history-icon-container">
<div class="history-icon" data-title="{{ isCurrent(entry) ? 'Current view of this tag' : 'The value of this tag has changed since this action' }}" data-container="body" bs-tooltip></div>
</div>
<div class="history-text">
<div class="history-description">
<span class="tag-span"

View file

@ -135,6 +135,10 @@ angular.module('quay').directive('repoTagHistory', function () {
$scope.historyEntryMap = tagEntries;
};
$scope.isCurrent = function(entry) {
return $scope.historyEntryMap[entry.tag_name][0] == entry;
};
$scope.getEntryClasses = function(entry, historyFilter) {
if (!entry.action) { return ''; }