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; float: left;
width: calc(100% - 400px); width: calc(100% - 400px);
} }
.scrollable-menu {
height: auto;
max-height: 200px;
overflow-x: hidden;
}

View File

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

View File

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

View File

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

View File

@ -45,9 +45,4 @@ export class LoginService {
return this.isLoggedIn() && currentUser.permission >= level; 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; table-layout: fixed;
} }
.scoreboard-table-container {
min-width: 920px;
max-width: 920px;
margin-left: 5%
}
.table-container { .table-container {
margin-top: 10px; margin-top: 10px;
overflow-x: auto; overflow-x: auto;

View File

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