From b9768ef6cf8dec2b3e9e0533410d43797325b9ef Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 27 Nov 2017 12:40:08 +0200 Subject: [PATCH] Remove unused component --- static/css/directives/ui/tag-info-sidebar.css | 5 --- static/directives/tag-info-sidebar.html | 42 ------------------- static/js/directives/ui/tag-info-sidebar.js | 28 ------------- 3 files changed, 75 deletions(-) delete mode 100644 static/css/directives/ui/tag-info-sidebar.css delete mode 100644 static/directives/tag-info-sidebar.html delete mode 100644 static/js/directives/ui/tag-info-sidebar.js diff --git a/static/css/directives/ui/tag-info-sidebar.css b/static/css/directives/ui/tag-info-sidebar.css deleted file mode 100644 index 020625ad0..000000000 --- a/static/css/directives/ui/tag-info-sidebar.css +++ /dev/null @@ -1,5 +0,0 @@ -.tag-info-sidebar .control-bar { - padding-top: 10px; - margin-top: 10px; - border-top: 1px solid #eee; -} \ No newline at end of file diff --git a/static/directives/tag-info-sidebar.html b/static/directives/tag-info-sidebar.html deleted file mode 100644 index b4835359d..000000000 --- a/static/directives/tag-info-sidebar.html +++ /dev/null @@ -1,42 +0,0 @@ -
-
-
Last Modified
-
- -
Total Compressed Size
-
- - {{ tracker.getTotalSize(tag) | bytes }} - -
-
- - - -
- -
-
diff --git a/static/js/directives/ui/tag-info-sidebar.js b/static/js/directives/ui/tag-info-sidebar.js deleted file mode 100644 index 3e029e805..000000000 --- a/static/js/directives/ui/tag-info-sidebar.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * An element which displays sidebar information for a tag. Primarily used in the repo view. - */ -angular.module('quay').directive('tagInfoSidebar', function () { - var directiveDefinitionObject = { - priority: 0, - templateUrl: '/static/directives/tag-info-sidebar.html', - replace: false, - transclude: true, - restrict: 'C', - scope: { - 'tracker': '=tracker', - 'tag': '=tag', - - 'imageSelected': '&imageSelected', - 'deleteTagRequested': '&deleteTagRequested' - }, - controller: function($scope, $element) { - $scope.$watch('tag', function(tag) { - if (!tag || !$scope.tracker) { return; } - - $scope.tagImage = $scope.tracker.getImageForTag(tag); - $scope.tagData = $scope.tracker.lookupTag(tag); - }); - } - }; - return directiveDefinitionObject; -}); \ No newline at end of file