Compare commits

..

No commits in common. "4c522a4e270062d12785a98d2244fdeaec29eb31" and "6e015934b3437493972a1c8b0c3fe25881d08876" have entirely different histories.

7 changed files with 10 additions and 26 deletions

View File

@ -22,9 +22,3 @@ li {
float: left;
width: calc(100% - 400px);
}
.scrollable-menu {
height: auto;
max-height: 200px;
overflow-x: hidden;
}

View File

@ -27,7 +27,7 @@
Schlacht Statistik
<span class="caret"></span>
</a>
<ul class="dropdown-menu scrollable-menu">
<ul class="dropdown-menu">
<li *ngFor="let war of wars">
<a [routerLink]="['/cc-wars/' + war._id]">{{war.title}} <small>{{war.date | date: 'dd.MM.yy'}}</small></a>
</li>
@ -45,7 +45,7 @@
<li *ngIf="loginService.hasPermission(2)" routerLinkActive="active">
<a routerLink='/cc-ranks' class="link">Ränge</a>
</li>
<li *ngIf="loginService.hasPermission(1) && !loginService.hasPermission(2) && loginService.hasSquad()" class="dropdown">
<li *ngIf="loginService.hasPermission(1) && !loginService.hasPermission(2)" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
aria-expanded="false">
Beantragen
@ -60,7 +60,7 @@
</li>
</ul>
</li>
<li *ngIf="loginService.hasPermission(2) && loginService.hasSquad()" class="dropdown">
<li *ngIf="loginService.hasPermission(2)" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
aria-expanded="false">
Anträge

View File

@ -1,14 +1,15 @@
h1 {
width: 920px;
float: left;
margin-bottom: 50px;
margin-left: 25%
}
img {
img{
margin-top: 10px;
padding-right: 30px;
}
.div-table {
display: table;
border-radius: 10px;

View File

@ -1,6 +1,6 @@
<h1>Übersicht über alle Spieler, Squads und Armeen</h1>
<div style="width: 1900px; margin-left: 25%">
<div style="width: 1000px;">
<div class="div-table" style="width: 490px; float:left">
<h3 class="text-blufor army-head">NATO</h3>
@ -30,7 +30,7 @@
<div style="padding-left: 80px">Armeemitglieder: {{army.NATO.memberCount}}</div>
</div>
<div class="div-table" style="width: 540px; padding-left: 50px">
<div class="div-table" style="width: 490px; float:right">
<h3 class="text-opfor army-head">CSAT</h3>
<div *ngFor="let squad of army.CSAT.squads" style="outline:1px solid #D4D4D4;">
<div class="div-table-row">

View File

@ -45,9 +45,4 @@ export class LoginService {
return this.isLoggedIn() && currentUser.permission >= level;
}
hasSquad() {
let currentUser = JSON.parse(localStorage.getItem('currentUser'));
return currentUser.squad != null;
}
}

View File

@ -19,12 +19,6 @@
table-layout: fixed;
}
.scoreboard-table-container {
min-width: 920px;
max-width: 920px;
margin-left: 5%
}
.table-container {
margin-top: 10px;
overflow-x: auto;

View File

@ -9,7 +9,7 @@
<span class="text-opfor" style="font-weight: bold; margin-left: 10px;">{{war.ptOpfor}} CSAT</span>
</h3>
<div style="margin-left: 500px; margin-top:1%">
<div style="margin-left: 50%; margin-top:1%">
<a class="btn btn-default btn-" style="margin: 20px" target="_blank" href="resource/logs/{{war._id}}/clean.log">Logfile
anzeigen</a>
<form class="form-group">
@ -37,7 +37,7 @@
</div>
<div class="pull-left" style="margin-top:20px;">
<div class="table-container scoreboard-table-container">
<div class="table-container" style="width: 75%; min-width: 500px">
<table class="table table-hover" [mfData]="players" #mf="mfDataTable" [(mfSortBy)]="sortBy"
[(mfSortOrder)]="sortOrder">
<thead>