parent
							
								
									f7893daeb8
								
							
						
					
					
						commit
						46b4ea8e3e
					
				
					 4 changed files with 20 additions and 9 deletions
				
			
		|  | @ -146,10 +146,15 @@ | |||
|            </span> | ||||
|          </td> | ||||
|          <td class="double-col image-col hidden-xs hidden-sm hidden-md"> | ||||
|             <span data-title="{{ feature.imageCommand }}" bs-tooltip> | ||||
|               <span class="dockerfile-command" command="feature.imageCommand"></span> | ||||
|             <span bo-if="feature.imageCommand"> | ||||
|               <span data-title="{{ feature.imageCommand }}" data-container="body" bs-tooltip> | ||||
|                 <span class="dockerfile-command" command="feature.imageCommand"></span> | ||||
|               </span> | ||||
|               <a href="/repository/{{ repository.namespace }}/{{ repository.name }}/image/{{ feature.imageId }}"><i class="fa fa-archive"></i></a> | ||||
|               </span> | ||||
|             <span bo-if="!feature.imageCommand"> | ||||
|               <span class="image-link" repository="repository" image-id="feature.imageId"></span> | ||||
|             </span> | ||||
|             <a href="/repository/{{ repository.namespace }}/{{ repository.name }}/image/{{ feature.imageId }}"><i class="fa fa-archive"></i></a> | ||||
|          </td> | ||||
|          <td></td> | ||||
|         </tr> | ||||
|  |  | |||
|  | @ -4,9 +4,8 @@ | |||
|         {{ image.id.substr(0, 12) }} | ||||
|     </a> | ||||
|   </div> | ||||
|   <div class="image-comment" ng-if="image.comment">{{ image.comment }}</div> | ||||
|   <div class="image-command"> | ||||
|      <div class="nondocker-command" ng-if="!getDockerfileCommand(image.command) && image.command.length">{{ image.command.join(' ') }}</div> | ||||
|    <div class="image-command"> | ||||
|      <div class="nondocker-command" ng-if="!getDockerfileCommand(image.command)">{{ image.command.join(' ') }}</div> | ||||
|      <div class="dockerfile-command" command="getDockerfileCommand(image.command)" | ||||
|           ng-if="getDockerfileCommand(image.command)"></div> | ||||
|   </div> | ||||
|  |  | |||
|  | @ -134,10 +134,15 @@ | |||
|             <span class="fixed-in-version" bo-if="vuln.fixedInVersion" bo-text="vuln.fixedInVersion"></span> | ||||
|          </td> | ||||
|          <td class="double-col image-col hidden-xs hidden-sm hidden-md"> | ||||
|             <span data-title="{{ vuln.imageCommand }}" data-container="body" bs-tooltip> | ||||
|               <span class="dockerfile-command" command="vuln.imageCommand"></span> | ||||
|             <span bo-if="vuln.imageCommand"> | ||||
|               <span data-title="{{ vuln.imageCommand }}" data-container="body" bs-tooltip> | ||||
|                 <span class="dockerfile-command" command="vuln.imageCommand"></span> | ||||
|               </span> | ||||
|               <a href="/repository/{{ repository.namespace }}/{{ repository.name }}/image/{{ vuln.imageId }}"><i class="fa fa-archive"></i></a> | ||||
|               </span> | ||||
|             <span bo-if="!vuln.imageCommand"> | ||||
|               <span class="image-link" repository="repository" image-id="vuln.imageId"></span> | ||||
|             </span> | ||||
|             <a href="/repository/{{ repository.namespace }}/{{ repository.name }}/image/{{ vuln.imageId }}"><i class="fa fa-archive"></i></a> | ||||
|          </td> | ||||
|          <td></td> | ||||
|         </tr> | ||||
|  |  | |||
|  | @ -31,6 +31,8 @@ angular.module('quay').factory('ImageMetadataService', ['UtilService', function( | |||
| 
 | ||||
|     if (!image.__imageMap) { | ||||
|       image.__imageMap = {}; | ||||
|       image.__imageMap[image.id] = image; | ||||
| 
 | ||||
|       for (var i = 0; i < image.history.length; ++i) { | ||||
|         var cimage = image.history[i]; | ||||
|         image.__imageMap[cimage.id] = cimage; | ||||
|  |  | |||
		Reference in a new issue