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
|
@ -1,6 +1 @@
|
|||
<span class="command" bindonce>
|
||||
<span class="label" bo-class="getCommandKind(command.message)" bo-show="getCommandKind(command.message)"
|
||||
bo-text="getCommandKind(command.message)">
|
||||
</span>
|
||||
<span class="command-title" bo-html="getCommandTitleHtml(command.message)"></span>
|
||||
</span>
|
||||
<span class="dockerfile-command command" command="getWithoutStep(command.message)"></span>
|
||||
|
|
6
static/directives/dockerfile-command.html
Normal file
6
static/directives/dockerfile-command.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<span class="dockerfile-command-element" bindonce>
|
||||
<span class="label" bo-class="getCommandKind(command)" bo-show="getCommandKind(command)"
|
||||
bo-text="getCommandKind(command)">
|
||||
</span>
|
||||
<span class="command-title" bo-html="getCommandTitleHtml(command)"></span>
|
||||
</span>
|
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