css
This commit is contained in:
parent
7ad5bc2395
commit
c4608e68be
|
@ -38,8 +38,15 @@
|
||||||
background-color: #eaeaea;
|
background-color: #eaeaea;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-item .badge-label {
|
.menu-count {
|
||||||
|
padding-top: 0.3em;
|
||||||
|
padding-bottom: 0.3em;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
padding-right: 0.5em;
|
||||||
|
border-radius: 0.2em;
|
||||||
font-size: 0.6em;
|
font-size: 0.6em;
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
float: right;
|
float: right;
|
||||||
width: 2em;
|
width: 3em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<div *ngIf="r.simple">
|
<div *ngIf="r.simple">
|
||||||
<a class="menu-item" [routerLink]="['resources/' + r.id]">
|
<a class="menu-item" [routerLink]="['resources/' + r.id]">
|
||||||
{{r.name}}
|
{{r.name}}
|
||||||
<span class="badge-label badge-info">{{r.count}}</span>
|
<span class="menu-count">{{r.count}}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
<div *ngIf="!r.simple">
|
<div *ngIf="!r.simple">
|
||||||
<a class="menu-item" [routerLink]="['adv_resources/' + r.id]">
|
<a class="menu-item" [routerLink]="['adv_resources/' + r.id]">
|
||||||
{{r.name}}
|
{{r.name}}
|
||||||
<span class="badge-label badge-info">{{r.count}}</span>
|
<span class="menu-count">{{r.count}}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
|
@ -27,9 +27,21 @@
|
||||||
</p>
|
</p>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<mat-card-actions>
|
<mat-card-actions>
|
||||||
<button mat-stroked-button color="primary" (click)="openMetadataDialog(r)">edit metadata</button>
|
<button mat-stroked-button color="primary" (click)="openMetadataDialog(r)">
|
||||||
<button mat-stroked-button color="primary" (click)="openContentDialog(r)">edit content</button>
|
<mat-icon fontIcon="edit"></mat-icon>
|
||||||
<a href="./api/resources/{{r.id}}/content" mat-stroked-button color="link" target="_blank">raw content</a>
|
edit metadata
|
||||||
<button mat-stroked-button color="warn" (click)="deleteResource(r)">delete</button>
|
</button>
|
||||||
|
<button mat-stroked-button color="primary" (click)="openContentDialog(r)">
|
||||||
|
<mat-icon fontIcon="edit"></mat-icon>
|
||||||
|
edit content
|
||||||
|
</button>
|
||||||
|
<a href="./api/resources/{{r.id}}/content" mat-stroked-button color="link" target="_blank">
|
||||||
|
<mat-icon fontIcon="code"></mat-icon>
|
||||||
|
raw content
|
||||||
|
</a>
|
||||||
|
<button mat-stroked-button color="warn" (click)="deleteResource(r)">
|
||||||
|
<mat-icon fontIcon="delete"></mat-icon>
|
||||||
|
delete
|
||||||
|
</button>
|
||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
|
@ -19,13 +19,16 @@
|
||||||
</button>
|
</button>
|
||||||
<button mat-stroked-button color="primary" (click)="editConf()">
|
<button mat-stroked-button color="primary" (click)="editConf()">
|
||||||
<mat-icon fontIcon="edit"></mat-icon>
|
<mat-icon fontIcon="edit"></mat-icon>
|
||||||
edit
|
configure
|
||||||
</button>
|
</button>
|
||||||
|
<a href="./api/resources/{{conf.workflow}}/content" mat-stroked-button color="link" target="_blank">
|
||||||
|
<mat-icon fontIcon="code"></mat-icon>
|
||||||
|
raw workflow
|
||||||
|
</a>
|
||||||
<button mat-stroked-button color="warn" (click)="deleteConf()">
|
<button mat-stroked-button color="warn" (click)="deleteConf()">
|
||||||
<mat-icon fontIcon="delete"></mat-icon>
|
<mat-icon fontIcon="delete"></mat-icon>
|
||||||
delete
|
delete
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<pre>{{conf | json}}</pre>
|
<pre>{{conf | json}}</pre>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -81,10 +81,14 @@ a:not([href]):hover {
|
||||||
padding-bottom: 0.3em;
|
padding-bottom: 0.3em;
|
||||||
padding-left: 0.5em;
|
padding-left: 0.5em;
|
||||||
padding-right: 0.5em;
|
padding-right: 0.5em;
|
||||||
border-radius: 0.7em;
|
border-radius: 0.2em;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
font-weight: bold;
|
||||||
|
font-variant: small-caps;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-left: 0.1em;
|
||||||
|
margin-right: 0.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge-default {
|
.badge-default {
|
||||||
|
|
Loading…
Reference in New Issue