|
1 |
| -<h1>Application Details</h1> |
| 1 | +<div *ngIf="application" id="app-details"> |
2 | 2 |
|
3 |
| -<table class="table table-striped table-hover table-fixed" *ngIf="detailedAppRegistration"> |
4 |
| - <tbody> |
5 |
| - <tr> |
6 |
| - <th> |
7 |
| - Name |
8 |
| - </th> |
9 |
| - <td> |
10 |
| - {{detailedAppRegistration.name}} |
11 |
| - </td> |
12 |
| - </tr> |
13 |
| - <tr> |
14 |
| - <th> |
15 |
| - Type |
16 |
| - </th> |
17 |
| - <td> |
18 |
| - {{detailedAppRegistration.type}} |
19 |
| - </td> |
20 |
| - </tr> |
21 |
| - <tr> |
22 |
| - <th> |
23 |
| - Uri |
24 |
| - </th> |
25 |
| - <td> |
26 |
| - {{detailedAppRegistration.uri}} |
27 |
| - </td> |
28 |
| - </tr> |
29 |
| - </tbody> |
30 |
| -</table> |
| 3 | + <div class="heading"> |
| 4 | + <h1> |
| 5 | + Application <strong>{{application.name}}</strong> |
| 6 | + <span style="position: relative"> |
| 7 | + <span style="position: absolute;top:0;left:10px;white-space: nowrap;"> |
| 8 | + <app-type [application]="application"></app-type> |
| 9 | + <app-version-label [forceSimple]="true" *ngIf="skipperEnabled && defaultVersion" |
| 10 | + [application]="application"></app-version-label> |
| 11 | + </span> |
| 12 | + </span> |
| 13 | + </h1> |
| 14 | + </div> |
| 15 | + |
| 16 | + <hr/> |
31 | 17 |
|
32 |
| -<div class="row" *ngIf="!detailedAppRegistration"> |
33 |
| - <div class="col-md-12"> |
34 |
| - No information available. |
| 18 | + <div id="no-default-version" *ngIf="skipperEnabled && application.versions.length > 0 && !defaultVersion"> |
| 19 | + <div> |
| 20 | + <div class="alert alert-danger" style="display: inline-block;padding:1rem 2rem;"> |
| 21 | + <strong>Application unavailable.</strong><br> |
| 22 | + You have to set a default version for this application. |
| 23 | + <div style="padding-top:1rem;"> |
| 24 | + <a (click)="versions(application)" class="btn btn-danger">Manage versions</a> |
| 25 | + </div> |
| 26 | + </div> |
| 27 | + </div> |
35 | 28 | </div>
|
36 |
| -</div> |
37 | 29 |
|
38 |
| -<h2 *ngIf="detailedAppRegistration">Application Properties</h2> |
| 30 | + <div *ngIf="detailedAppRegistration"> |
| 31 | + <div *ngIf="skipperEnabled && application.versions.length > 1" style="padding: 1rem 0;"> |
| 32 | + <div id="version-dropdown" class="dropdown" dropdown> |
| 33 | + <button dropdownToggle type="button" class="btn btn-dropdown btn-primary"> |
| 34 | + Version: {{ versionSelect }} |
| 35 | + <span *ngIf="versionSelect == defaultVersion?.version"> |
| 36 | + <span placement="bottom" tooltip="Default version" |
| 37 | + class="ico-current-version glyphicon glyphicon-star"></span> |
| 38 | + </span> |
| 39 | + <span class="caret"></span> |
| 40 | + </button> |
| 41 | + <ul *dropdownMenu class="dropdown-menu"> |
| 42 | + <li *ngFor="let version of application.versions" [class.active]="versionSelect == version.version"> |
| 43 | + <a style="cursor: pointer" (click)="selectVersion(version.version)"> |
| 44 | + {{ version.version }} |
| 45 | + <span *ngIf="version.defaultVersion"> |
| 46 | + <span placement="bottom" tooltip="Default version" |
| 47 | + class="ico-current-version glyphicon glyphicon-star"></span> |
| 48 | + </span> |
| 49 | + </a> |
| 50 | + </li> |
| 51 | + </ul> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + <div style="padding: 0.5rem 0 1.5rem;"> |
| 55 | + <div><strong>Uri</strong>: <code>{{ detailedAppRegistration.uri }}</code></div> |
| 56 | + <div *ngIf="skipperEnabled && application.versions.length == 1"> |
| 57 | + <strong>Version</strong>: {{ detailedAppRegistration.version }} |
| 58 | + </div> |
| 59 | + </div> |
| 60 | + <div *ngIf="detailedAppRegistration?.options && detailedAppRegistration?.options.length > 0"> |
| 61 | + <table id="table-properties" class="table table-hover" *ngIf="detailedAppRegistration?.options"> |
| 62 | + <thead> |
| 63 | + <tr> |
| 64 | + <th> |
| 65 | + <app-sort id="sort-name" [indeterminate]="true" (change)="applySort($event)" [value]="'name'" [sort]="sort"> |
| 66 | + Property |
| 67 | + </app-sort> |
| 68 | + </th> |
| 69 | + <th>Description</th> |
| 70 | + </tr> |
| 71 | + </thead> |
| 72 | + <tbody> |
| 73 | + <tr *ngFor="let property of detailedAppRegistration.options | orderby:sort.sort:sort.order"> |
| 74 | + <td> |
| 75 | + <strong>{{property.name}}</strong> |
| 76 | + <div *ngIf="property.isDeprecated"> |
| 77 | + <span class="label label-warning">Deprecation level: {{property.deprecation.level}}</span> |
| 78 | + </div> |
| 79 | + </td> |
| 80 | + <td> |
| 81 | + <p>{{property.description ? property.description : '(No Description Available)'}}</p> |
| 82 | + <p class="type-block"><code>{{property.type}}</code> <span |
| 83 | + *ngIf="property.defaultValue">(Default value: <code>{{property.defaultValue}}</code>)</span></p> |
| 84 | + </td> |
| 85 | + </tr> |
| 86 | + </tbody> |
| 87 | + </table> |
| 88 | + </div> |
| 89 | + <div *ngIf="!(detailedAppRegistration?.options && detailedAppRegistration?.options.length > 0)"> |
| 90 | + <div class="alert alert-warning" style="display: inline-block;margin-top: 5px;"> |
| 91 | + No properties available. |
| 92 | + </div> |
| 93 | + </div> |
| 94 | + </div> |
39 | 95 |
|
40 |
| -<table class="table table-striped table-hover table-fixed" *ngIf="detailedAppRegistration?.options"> |
41 |
| - <tbody> |
42 |
| - <tr *ngFor="let property of detailedAppRegistration.options"> |
43 |
| - <th> |
44 |
| - {{property.name}} <span *ngIf="property.isDeprecated" class="label label-warning">Deprecation level: {{property.deprecation.level}}</span> |
45 |
| - </th> |
46 |
| - <td> |
47 |
| - <p>{{property.description ? property.description : '(No Description Available)'}}</p> |
48 |
| - <p class="type-block"><code>{{property.type}}</code> <span *ngIf="property.defaultValue">(Default value: <code>{{property.defaultValue}}</code>)</span></p> |
49 |
| - </td> |
50 |
| - </tr> |
51 |
| - </tbody> |
52 |
| -</table> |
| 96 | + <hr/> |
53 | 97 |
|
54 |
| -<div class="row" *ngIf="detailedAppRegistration && detailedAppRegistration.options && detailedAppRegistration?.options.length === 0">No properties available.</div> |
| 98 | + <div class="footer-actions"> |
| 99 | + <button id="back-button" type="button" class="btn btn-default" (click)="cancel()"> |
| 100 | + Cancel |
| 101 | + </button> |
| 102 | + </div> |
55 | 103 |
|
56 |
| -<div class="row"> |
57 |
| - <div class="col-md-12 text-right"><button id="back-button" |
58 |
| - type="button" class="btn btn-default" (click)="goBack()"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span>Back</button></div> |
59 | 104 | </div>
|
0 commit comments