diff --git a/static/css/directives/ui/repo-tag-history.css b/static/css/directives/ui/repo-tag-history.css index e1de7cecc..5312c46f4 100644 --- a/static/css/directives/ui/repo-tag-history.css +++ b/static/css/directives/ui/repo-tag-history.css @@ -137,7 +137,6 @@ background: #eee; padding-right: 6px; color: black; - cursor: pointer; } .repo-tag-history-element .history-entry .tag-span.checked { diff --git a/static/directives/repo-tag-history.html b/static/directives/repo-tag-history.html index f8e551f78..5c03cfc4a 100644 --- a/static/directives/repo-tag-history.html +++ b/static/directives/repo-tag-history.html @@ -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" diff --git a/static/js/directives/ui/repo-tag-history.js b/static/js/directives/ui/repo-tag-history.js index 9ebc179a5..295b6d265 100644 --- a/static/js/directives/ui/repo-tag-history.js +++ b/static/js/directives/ui/repo-tag-history.js @@ -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 ''; }