Have the docker file view in the build pack tab use a nice formatter

This commit is contained in:
Joseph Schorr 2014-02-17 18:31:45 -05:00
parent 509ba2f4f7
commit d1922c6fd2
6 changed files with 163 additions and 51 deletions

View file

@ -0,0 +1,15 @@
<div class="dockerfile-view-element">
<div class="dockerfile-line" ng-repeat="line in lines">
<div ng-switch on="line.kind">
<div class="command entry" ng-switch-when="command">
<div class="dockerfile-command" command="line.text"></div>
</div>
<div class="comment entry" ng-switch-when="comment">
{{ line.text || ' ' }}
</div>
<div class="text entry" ng-switch-default>
{{ line.text || '&nbsp;' }}
</div>
</div>
</div>
</div>