diff --git a/static/src/app/army/army-member.component.css b/static/src/app/army/army-member.component.css
index c8dfb3b..594963a 100644
--- a/static/src/app/army/army-member.component.css
+++ b/static/src/app/army/army-member.component.css
@@ -1,12 +1,14 @@
.overview {
- position: fixed;
- overflow-y: scroll;
- overflow-x: hidden;
- bottom: 20px;
- padding-left: 50px;
- padding-top: 190px;
- margin-left: 10px;
height: 100vh;
+ width: 90%;
+ padding: 5px;
+ margin: auto;
+ position: relative;
+ left: -1%;
+}
+
+:host /deep/ #right {
+ padding-left: 0;
}
.return-button {
diff --git a/static/src/app/army/army-member.component.html b/static/src/app/army/army-member.component.html
index a7d458e..373b72e 100644
--- a/static/src/app/army/army-member.component.html
+++ b/static/src/app/army/army-member.component.html
@@ -1,58 +1,57 @@
-
- < zurück zur Übersicht
-
-
- Auszeichnungen von {{user.rank?.name}} {{user.username}}
-
-
-
-
+
diff --git a/static/src/app/army/army.component.css b/static/src/app/army/army.component.css
index 7a0fe4c..16ead7f 100644
--- a/static/src/app/army/army.component.css
+++ b/static/src/app/army/army.component.css
@@ -1,41 +1,61 @@
-h1 {
- width: 920px;
- margin-bottom: 50px;
- margin-left: 25%
-}
-
-img {
- margin-top: 10px;
- padding-right: 30px;
-}
-
-.div-table {
- display: table;
- border-radius: 10px;
- margin-left: 1%;
- width: auto;
- border-spacing: 5px; /* cellspacing:poor IE support for this */
-}
-
-.div-table-row {
- display: table-row;
- width: auto;
- clear: both;
-}
-
-.div-table-col {
- float: left; /* fix for buggy browsers */
- display: table-column;
+.squad-layout {
+ overflow: hidden;
padding: 5px 15px 5px 15px;
}
-.army-head {
- font-weight: bolder;
- text-align: center
+.row {
+ clear: both;
+}
+
+.squad-cell {
+ display: table-cell;
+ padding: 5px;
+}
+
+.colored-row {
+ background: rgb(34, 34, 34);
+}
+
+.title-row {
+ border-radius: 12px 12px 0 0;
+}
+
+.footer-row {
+ border-radius: 0 0 12px 12px;
+}
+
+.middle-row {
+ min-height: 120px;
+ border: rgb(34, 34, 34);
+ background-color: white;
+ border-left-style: solid;
+ border-right-style: solid;
+}
+
+.title {
+ color: whitesmoke;
+ font-weight: bold;
+ font-size: 14px;
+}
+
+.name-cell {
+ display: inherit;
+ margin-left: 200px;
+}
+
+h1 {
+ text-align: center;
+}
+
+img {
+ position: absolute;
+ margin-top: 8px;
+ margin-left: 25px;
}
.member-link {
cursor: pointer;
+ display: block;
text-decoration: underline;
}
@@ -46,3 +66,9 @@ img {
.text-blufor {
color: blue;
}
+
+.army-head {
+ font-weight: bolder;
+ text-align: center
+}
+
diff --git a/static/src/app/army/army.component.html b/static/src/app/army/army.component.html
index 3a02e79..6c1809b 100644
--- a/static/src/app/army/army.component.html
+++ b/static/src/app/army/army.component.html
@@ -1,62 +1,56 @@
-
Übersicht über alle Spieler, Squads und Armeen
+
+
Übersicht über alle Spieler, Squads und Armeen
-
-
-
+
NATO
-
-
-
-
-

+
+
+
+
+
+ {{member.rank}} {{member.username}}
+
-
-
-
{{squad.name}}
-
-
-
-
{{member.rank}} {{member.username}}
-
-
-
-
- Mitglieder: {{squad.memberCount}}
-
+
+
-
-
-
Armeemitglieder: {{army.NATO.memberCount}}
+
Armeemitglieder: {{army.NATO.memberCount}}
-
+
CSAT
-
-
-
-
-

+
+
+
+
+
+ {{member.rank}} {{member.username}}
+
-
-
-
{{squad.name}}
-
-
-
-
{{member.rank}} {{member.username}}
-
-
-
- Mitglieder: {{squad.memberCount}}
-
+
+
-
-
-
Armeemitglieder: {{army.CSAT.memberCount}}
+
Armeemitglieder: {{army.CSAT.memberCount}}
diff --git a/static/src/app/army/army.component.ts b/static/src/app/army/army.component.ts
index 55565dd..f9ea9f7 100644
--- a/static/src/app/army/army.component.ts
+++ b/static/src/app/army/army.component.ts
@@ -26,7 +26,7 @@ export class ArmyComponent {
};
select(memberId) {
- this.router.navigate(['member', memberId], {relativeTo: this.route});
+ this.router.navigate([{outlets: {'right': ['member', memberId]}}], {relativeTo: this.route});
}
}
diff --git a/static/src/app/army/army.routing.ts b/static/src/app/army/army.routing.ts
index b708cf0..d530b6b 100644
--- a/static/src/app/army/army.routing.ts
+++ b/static/src/app/army/army.routing.ts
@@ -6,11 +6,13 @@ import {ArmyMemberComponent} from "./army-member.component";
export const armyRoutes: Routes = [
{
path: '',
- component: ArmyComponent
+ component: ArmyComponent,
+ outlet: 'right'
},
{
path: 'member/:id',
component: ArmyMemberComponent,
+ outlet: 'right'
}
];