Skip to content
Snippets Groups Projects
Commit 68b5c147 authored by David Noah Donges's avatar David Noah Donges
Browse files

Merge branch '47-creator-home-screen-html-template-list' into 'master'

Resolve "creator home screen - html template (list)"

Closes #47

See merge request swtp-block-ws17/arsnova-angular-frontend!60
parents 4acfb95f 94b0fa9e
Branches
Tags
1 merge request!60Resolve "creator home screen - html template (list)"
Pipeline #13098 passed with stage
in 32 seconds
app-room-list {
width: 100%;
max-width: 800px;
}
...@@ -25,20 +25,29 @@ export class InMemoryDataService implements InMemoryDbService { ...@@ -25,20 +25,29 @@ export class InMemoryDataService implements InMemoryDbService {
const rooms = [ const rooms = [
{ {
id: '1', id: '1',
revision: '1', revision: '10',
shortId: 't', shortId: '12345678',
abbreviation: 'abb', abbreviation: 'abb',
name: 'testroom', name: 'ARSnova Testroom',
description: 'this is a test room', description: 'Refactoring ARSnova to look and feel good',
closed: true closed: true
}, },
{ {
id: '2', id: '2',
revision: '11', revision: '11',
shortId: 't1', shortId: '23456789',
abbreviation: 'abb1', abbreviation: 'abb1',
name: 'testroom1', name: 'Darkroom',
description: 'this is a test room1', description: 'Here is where the 18+ stuff happens',
closed: false
},
{
id: '3',
revision: '11',
shortId: '34567890',
abbreviation: 'abb1',
name: 'Keller',
description: 'This is where the beer stehs',
closed: false closed: false
} }
]; ];
......
<mat-list> <mat-accordion>
<mat-list-item *ngFor="let room of rooms"> <mat-expansion-panel *ngFor="let room of rooms">
<button mat-button routerLink="room/{{room.id}}"> <mat-expansion-panel-header>
{{room.name}} <mat-panel-title>
</button> {{ room.shortId }}
</mat-list-item> </mat-panel-title>
</mat-list> <mat-panel-description>
{{ room.name }}
</mat-panel-description>
</mat-expansion-panel-header>
<p>
{{ room.description }}
</p>
<mat-action-row>
<button mat-button routerLink="/room/{{ room.id }}">Join room</button>
</mat-action-row>
</mat-expansion-panel>
</mat-accordion>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment