2 ~ Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
8 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
17 <div class="workspace-information-artifact">
18 <div data-tests-id="add-information-artifact-button" ng-if="!isViewMode()"
19 data-ng-class="{'disabled': isDisableMode()}"
20 data-tests-id="addGrey" class="add-btn" data-ng-click="addOrUpdate({})" type="button">Add </div>
21 <div class="table-container-flex">
22 <div class="table" data-ng-class="{'view-mode': isViewMode()}">
23 <div class="head flex-container">
24 <div class="table-header head-row hand flex-item" ng-repeat="header in tableHeadersList track by $index" data-ng-click="sort(header.property)">{{header.title}}
25 <span data-ng-show="sortBy === header.property" class="table-header-sort-arrow" data-ng-class="{'down': reverse, 'up':!reverse}"> </span>
27 <div class="table-no-text-header head-row flex-item"></div>
30 <perfect-scrollbar suppress-scroll-x="true" scroll-y-margin-offset="0" include-padding="true" class="scrollbar-container">
31 <div data-ng-if="showNoArtifactMessage()" class="no-row-text" data-ng-class="{'disabled': isDisableMode()}">
32 There are no information artifacts to display
34 <div data-ng-repeat-start="artifact in artifacts| orderBy:sortBy:reverse track by $index" data-tests-id="InformationalArtifactRow"
35 class="flex-container data-row"
36 data-ng-class="{'selected': artifact.selected}"
37 data-ng-if="artifact.esId">
39 <div class="table-col-general flex-item" data-ng-click="artifact.selected = !artifact.selected" data-tests-id="artifactDisplayName_{{artifact.artifactDisplayName}}">
40 <span class="sprite table-arrow" data-ng-class="{'opened': artifact.selected}" data-tests-id="artifact_arrow_{{artifact.artifactDisplayName}}"></span>
41 {{artifact.artifactDisplayName}}
44 <div class="table-col-general flex-item" data-ng-click="artifact.selected = !artifact.selected" data-tests-id="artifactType_{{artifact.artifactDisplayName}}">
45 {{artifact.artifactType}}
48 <div class="table-col-general flex-item" data-ng-click="artifact.selected = !artifact.selected" data-tests-id="artifactVersion_{{artifact.artifactDisplayName}}">
49 {{artifact.artifactVersion}}
52 <div class="table-col-general flex-item text" data-ng-click="artifact.selected = !artifact.selected" data-tests-id="artifactUUID_{{artifact.artifactDisplayName}}"
53 tooltips tooltip-content="{{artifact.artifactUUID}}">
54 <span>{{artifact.artifactUUID}}</span>
57 <div class="table-btn-col flex-item">
58 <button class="table-edit-btn" data-tests-id="edit_{{artifact.artifactDisplayName}}" data-ng-if="!isViewMode() && !artifact.isThirdParty()" data-ng-click="addOrUpdate(artifact)" data-ng-class="{'disabled': isDisableMode()}"></button>
59 <button class="table-delete-btn" data-tests-id="delete_{{artifact.artifactDisplayName}}" data-ng-if="!isViewMode() && !artifact.isThirdParty()" data-ng-click="delete(artifact)" data-ng-class="{'disabled': isDisableMode()}"> </button>
60 <button class="table-download-btn" download-artifact data-tests-id="download_{{artifact.artifactDisplayName}}"
61 data-ng-if="artifact.artifactName" component="component" artifact="artifact"></button>
64 <div data-ng-repeat-end="" data-ng-if="artifact.selected" class="item-opened" data-tests-id="{{artifact.artifactDisplayName}}Description" data-ng-bind="artifact.description"></div>
65 <button class="add-button" data-ng-repeat="artifact in artifacts track by $index"
66 data-ng-show="!artifact.esId"
67 data-tests-id="{{artifact.artifactDisplayName}}"
69 data-ng-class="{'disabled': isDisableMode()}"
70 translate="DEPLOYMENT_ARTIFACT_BUTTON_ADD_HEAT"
71 translate-values="{'name': '{{artifact.artifactDisplayName}}'}"
72 data-ng-click="addOrUpdate(artifact)"></button>
73 <button class="add-button"
75 data-ng-class="{'disabled': isDisableMode()}"
76 translate="DEPLOYMENT_ARTIFACT_BUTTON_ADD_OTHER"
77 data-ng-click="addOrUpdate({})"></button>