Have the docker file view in the build pack tab use a nice formatter
This commit is contained in:
parent
509ba2f4f7
commit
d1922c6fd2
6 changed files with 163 additions and 51 deletions
15
static/directives/dockerfile-view.html
Normal file
15
static/directives/dockerfile-view.html
Normal 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 || ' ' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in a new issue