Small UI fixes to tag history timeline
This commit is contained in:
parent
0dbe267212
commit
35752176b5
3 changed files with 7 additions and 2 deletions
|
@ -137,7 +137,6 @@
|
|||
background: #eee;
|
||||
padding-right: 6px;
|
||||
color: black;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.repo-tag-history-element .history-entry .tag-span.checked {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 ''; }
|
||||
|
||||
|
|
Reference in a new issue