Cleanup display of image commands to be better shared
Also moves the work into a TS component
This commit is contained in:
parent
7f436bb54a
commit
1d60414a23
10 changed files with 41 additions and 51 deletions
|
@ -164,9 +164,7 @@
|
|||
</td>
|
||||
<td class="double-col image-col hidden-xs hidden-sm hidden-md">
|
||||
<span bo-if="feature.imageCommand">
|
||||
<span data-title="{{ feature.imageCommand }}" data-container="body" bs-tooltip>
|
||||
<dockerfile-command command="feature.imageCommand"></dockerfile-command>
|
||||
</span>
|
||||
<image-command command="feature.imageCommand"></image-command>
|
||||
<a href="/repository/{{ repository.namespace }}/{{ repository.name }}/image/{{ feature.imageId }}"><i class="fa fa-archive"></i></a>
|
||||
</span>
|
||||
<span bo-if="!feature.imageCommand">
|
||||
|
|
|
@ -5,9 +5,7 @@
|
|||
</a>
|
||||
</div>
|
||||
<div class="image-command">
|
||||
<div class="nondocker-command" ng-if="!getDockerfileCommand(image.command)">{{ image.command.join(' ') }}</div>
|
||||
<dockerfile-command command="getDockerfileCommand(image.command)"
|
||||
ng-if="getDockerfileCommand(image.command)"></dockerfile-command>
|
||||
<image-command command="image.command"></image-command>
|
||||
</div>
|
||||
<div class="image-layer-dot"></div>
|
||||
<div class="image-layer-line"></div>
|
||||
|
|
|
@ -152,9 +152,7 @@
|
|||
</td>
|
||||
<td class="double-col image-col hidden-xs hidden-sm hidden-md">
|
||||
<span bo-if="vuln.imageCommand">
|
||||
<span data-title="{{ vuln.imageCommand }}" data-container="body" bs-tooltip>
|
||||
<dockerfile-command command="vuln.imageCommand"></dockerfile-command>
|
||||
</span>
|
||||
<image-command command="vuln.imageCommand"></image-command>
|
||||
<a href="/repository/{{ repository.namespace }}/{{ repository.name }}/image/{{ vuln.imageId }}"><i class="fa fa-archive"></i></a>
|
||||
</span>
|
||||
<span bo-if="!vuln.imageCommand">
|
||||
|
|
Reference in a new issue