diff --git a/static/css/quay.css b/static/css/quay.css index 737ac6339..11b676ae5 100644 --- a/static/css/quay.css +++ b/static/css/quay.css @@ -222,22 +222,6 @@ font-size: 18px; } -.dockerfile-view { - margin-top: 10px; - margin: 20px; - padding: 20px; - background: #F7F6F6; - border: 1px solid #ddd; -} - -.dockerfile-view .entry { - font-family: Consolas, "Lucida Console", Monaco, monospace; -} - -.dockerfile-view .entry.comment { - color: rgb(82, 172, 82); -} - .dockerfile-command { position: relative; } diff --git a/static/directives/dockerfile-view.html b/static/directives/dockerfile-view.html deleted file mode 100644 index d1cb834d6..000000000 --- a/static/directives/dockerfile-view.html +++ /dev/null @@ -1,15 +0,0 @@ -
-
-
-
-
-
-
- {{ line.text || ' ' }} -
-
- {{ line.text || ' ' }} -
-
-
-
diff --git a/static/js/directives/ui/dockerfile-view.js b/static/js/directives/ui/dockerfile-view.js deleted file mode 100644 index d391c8d23..000000000 --- a/static/js/directives/ui/dockerfile-view.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * An element which displays the contents of a Dockerfile in a nicely formatted way. - */ -angular.module('quay').directive('dockerfileView', function () { - var directiveDefinitionObject = { - priority: 0, - templateUrl: '/static/directives/dockerfile-view.html', - replace: false, - transclude: false, - restrict: 'C', - scope: { - 'contents': '=contents' - }, - controller: function($scope, $element, UtilService) { - $scope.$watch('contents', function(contents) { - $scope.lines = []; - - var lines = contents ? contents.split('\n') : []; - for (var i = 0; i < lines.length; ++i) { - var line = $.trim(lines[i]); - var kind = 'text'; - if (line && line[0] == '#') { - kind = 'comment'; - } else if (line.match(/^([A-Z]+\s)/)) { - kind = 'command'; - } - - var lineInfo = { - 'text': line, - 'kind': kind - }; - $scope.lines.push(lineInfo); - } - }); - } - }; - return directiveDefinitionObject; -}); \ No newline at end of file