blob: c54d5816e1ed6a8fe31781d6e67abceb7b750af1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<nb-card class="xds-projects">
<nb-card-header>
<div class="row">
<div class="col-12 col-md-8">
{{ project.label }}
</div>
<div class="col-6 col-md-4 text-right" role="group">
<button class="btn btn-outline-danger btn-tn btn-xds" (click)="delete(project)">
<span class="fa fa-trash fa-size-x2"></span>
</button>
</div>
</div>
</nb-card-header>
<nb-card-body>
<table class="table table-striped">
<tbody>
<tr>
<th>
<span class="fa fa-fw fa-id-badge"></span>
<span>Project ID</span>
</th>
<td>{{ project.id }}</td>
</tr>
<tr>
<th>
<span class="fa fa-fw fa-exchange"></span>
<span>Sharing type</span>
</th>
<td>{{ project.type | readableType }}</td>
</tr>
<tr>
<th>
<span class="fa fa-fw fa-folder-open-o"></span>
<span>Local path</span>
</th>
<td>{{ project.pathClient }}</td>
</tr>
<tr *ngIf="project.pathServer && project.pathServer != ''">
<th>
<span class="fa fa-fw fa-folder-open-o"></span>
<span>Server path</span>
</th>
<td>{{ project.pathServer }}</td>
</tr>
<tr>
<th>
<span class="fa fa-fw fa-flag"></span>
<span>Status</span>
</th>
<td>{{ project.status }} - {{ project.isInSync ? "Up to Date" : "Out of Sync"}}
<button *ngIf="!project.isInSync" class="btn btn-outline-info btn-tn btn-xds" (click)="sync(project)" style="margin-left:2em;">
<span class="fa fa-refresh fa-size-x2"></span>
</button>
</td>
</tr>
</tbody>
</table>
</nb-card-body>
<nb-card-footer>
<!-- <pre>{{project | json}}</pre> -->
</nb-card-footer>
</nb-card>
|