Add CSV download button FE
parent
a24f3bf4b1
commit
3745241d75
|
@ -18,7 +18,6 @@ So if your server is reachable at `https://cc.myserver.lan` the API endpoint is
|
|||
https://cc.myserver.lan/api/
|
||||
```
|
||||
|
||||
|
||||
## Authentication
|
||||
|
||||
Requests to most of the API endpoints have to be authenticated using an API token which is received after successfully providing your application credentials to the API.
|
||||
|
|
|
@ -10,6 +10,16 @@
|
|||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
|
||||
form.tab-control {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
span.tab-control {
|
||||
margin: 4px 67px;
|
||||
padding: 4px 16px;
|
||||
}
|
||||
|
||||
.war-header {
|
||||
border-bottom: thin solid lightgrey;
|
||||
}
|
||||
|
@ -34,6 +44,10 @@
|
|||
color: #f5f5f5;
|
||||
}
|
||||
|
||||
.nav-tabs > li:last-child {
|
||||
margin-left: 70px;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
cursor: pointer !important;
|
||||
color: #FFF !important;
|
||||
|
|
|
@ -24,9 +24,25 @@
|
|||
</div>
|
||||
|
||||
<div class="pull-left " style="padding-left: 100px; padding-top:15px">
|
||||
<a class="btn btn-default" style="margin: 20px" target="_blank" href="resource/logs/{{war._id}}/clean.log">Logfile
|
||||
anzeigen</a>
|
||||
<form class="form-group" *ngIf="tab === 0">
|
||||
<a class="btn btn-default" style="margin: 20px" target="_blank" href="resource/logs/{{war._id}}/clean.log">
|
||||
Logfile anzeigen
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item" [ngClass]="{active :tab === 0}" (click)="switchTab(0)">
|
||||
<a class="nav-link"><img src="../../../assets/scoreboard-btn.png"> Scoreboard</a>
|
||||
</li>
|
||||
<li class="nav-item" [ngClass]="{active :tab === 1}" (click)="switchTab(1)">
|
||||
<a class="nav-link"><img src="../../../assets/fraction-btn.png"> Fraktionen</a>
|
||||
</li>
|
||||
<li class="nav-item" [ngClass]="{active :tab === 2, deactivated :tab !== 2} ">
|
||||
<a class="nav-link"><img src="../../../assets/player-stats-btn.png"> Player</a>
|
||||
</li>
|
||||
<li>
|
||||
<div *ngIf="tab === 0">
|
||||
<form class="pull-left tab-control">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="fractSelect"
|
||||
[checked]="(fractionFilterSelected == undefined) ? 'true' : 'false'"
|
||||
|
@ -45,20 +61,11 @@
|
|||
#fractRadioOpfor
|
||||
(change)="filterPlayersByFraction(fractRadioOpfor.value)">{{fraction.OPFOR}}
|
||||
</label>
|
||||
<br>
|
||||
</form>
|
||||
<span class="btn btn-default pull-left tab-control">
|
||||
Download CSV
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item" [ngClass]="{active :tab === 0}" (click)="switchTab(0)">
|
||||
<a class="nav-link"><img src="../../../assets/scoreboard-btn.png"> Scoreboard</a>
|
||||
</li>
|
||||
<li class="nav-item" [ngClass]="{active :tab === 1}" (click)="switchTab(1)">
|
||||
<a class="nav-link"><img src="../../../assets/fraction-btn.png"> Fraktionen</a>
|
||||
</li>
|
||||
<li class="nav-item" [ngClass]="{active :tab === 2, deactivated :tab !== 2} ">
|
||||
<a class="nav-link"><img src="../../../assets/player-stats-btn.png"> Player</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
|
Loading…
Reference in New Issue