Newer
Older
<ars-screen ars-flex-box class="questionwall-screen">
<ars-row [height]="50" class="questionwall-header">
<ars-style-btn-material *ngIf="room" style="width:100%;height:100%;" ars-flex-box>
<ars-fill ars-flex-box>
<ars-col ars-btn-wrp [xp]="16" [yp]="0" [extra]="true">
<button ars-btn (click)="leave()" matRipple><i>arrow_back</i></button>
</ars-col>
</ars-fill>
<ars-col>
<!-- centered col -->
<ars-fill ars-flex-box>
<ars-fill></ars-fill>
<ars-col ars-btn-wrp [xp]="16" [extra]="true">
<button mat-menu-item (click)="sortTime(true)">{{'question-wall.sort-new' | translate}}</button>
<button mat-menu-item (click)="sortTime()">{{'question-wall.sort-old' | translate}}</button>
<button mat-menu-item (click)="sortScore(true)">{{'question-wall.sort-score' | translate}}</button>
</mat-menu>
<mat-menu #filterMenu>
<button mat-menu-item (click)="filterFavorites()">
<mat-icon>star</mat-icon>
<span>{{'question-wall.filter-disapproved' | translate}}</span>
<button ars-btn [mat-menu-trigger-for]="sortMenu" matRipple><i>sort</i><p>{{'question-wall.sort' | translate}}</p></button>
<button ars-btn [mat-menu-trigger-for]="filterMenu" matRipple><i>filter_list</i><p>Filter</p></button>
<button ars-btn (click)="openUserMap()" matRipple><i>person</i><p>{{'question-wall.filter-user'| translate}}</p></button>
</ars-col>
</ars-row>
<ars-fill ars-flex-box>
<ars-fill style="overflow:hidden;" ars-flex-box>
<ars-fill>
</ars-fill>
<ars-row class="questionwall-present-box-outer">
<div class="questionwall-present-box-inner">
<ng-container *ngIf="commentFocus">
<ars-row class="questionwall-present-meta">
<i class="questionwall-icon questionwall-present-meta-icon">person</i>
<h2 class="questionwall-present-meta-user">{{commentFocus.comment.userNumber}}</h2>
<h2 class="questionwall-present-meta-timestamp">{{commentFocus.timeAgo}}</h2>
</ars-row>
<ars-row>
<p class="questionwall-present">{{commentFocus.comment.body}}</p>
</ars-row>
</ng-container>
<ng-container *ngIf="!commentFocus">
<p class="questionwall-present-introduction-title">{{'question-wall.intro-title' | translate}}</p>
<p class="questionwall-present-introduction-desc">{{'question-wall.intro-desc' | translate}}</p>
</ng-container>
</div>
<ars-fill>
</ars-fill>
<ars-col ars-flex-box [width]="450" class="questionwall-list" #colComponent>
<ars-row>
<ars-row *ngIf="hasFilter" class="questionwall-list-border-bottom" [height]="45">
<ars-style-btn-material style="width:100%;height:100%;" ars-flex-box>
<ars-col ars-btn-wrp [xp]="48">
<button ars-btn matRipple><i>{{filterIcon}}</i><p>{{filterTitle | translate}} {{filterDesc}}</p></button>
</ars-col>
<ars-fill></ars-fill>
<ars-col ars-btn-wrp [xp]="48">
<button ars-btn (click)="deactivateFilter()" matRipple><i>remove_circle</i><p>{{'question-wall.filter-remove' | translate}}</p></button>
</ars-col>
</ars-style-btn-material>
</ars-row>
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<ars-fill class="questionwall-list-comments">
<ars-row *ngIf="!userSelection">
<ars-row *ngFor="let comment of hasFilter?commentsFilter:comments" class="questionwall-comment-anchor" style="float:left;">
<ars-row style="box-sizing:border-box;padding:8px;">
<ars-row
[ngClass]="comment===commentFocus?'questionwall-comment-border-on':'questionwall-comment-border-off'"
style="border-radius:5px">
<ars-row ars-flex-box
(click)="focusComment(comment)"
style="box-sizing:border-box;padding:16px;cursor:pointer">
<ars-col class="questionwall-comment-meta">
<i class="questionwall-icon">person</i>
<p (click)="filterUser(comment);" class="questionwall-comment-user" matRipple>{{comment.comment.userNumber}}</p>
<p class="questionwall-comment-timestamp">{{comment.timeAgo}}</p>
</ars-col>
<ars-col>
<p class="questionwall-comment-notification">{{comment.old?'':'NEW'}}</p>
</ars-col>
</ars-row>
<ars-row
(click)="focusComment(comment)"
style="box-sizing:border-box;padding:0 16px;cursor:pointer">
<p class="questionwall-comment-body">{{comment.comment.body}}</p>
</ars-row>
<ars-row [height]="50">
<ars-style-btn-material style="width:100%;height:100%;" ars-flex-box>
<ars-col ars-btn-wrp [xp]="16" [extra]="true" class="questionwall-comment-btn">
<button ars-btn (click)="likeComment(comment)" matRipple><i>thumb_up</i><p>{{comment.comment.score}}</p></button>
<button ars-btn (click)="dislikeComment(comment)" matRipple><i>thumb_down</i></button>
</ars-col>
<ars-fill (click)="focusComment(comment)" style="cursor:pointer"></ars-fill>
</ars-style-btn-material>
</ars-row>
</ars-row>

Lukas Haase
committed
</ars-row>
</ars-row>
</ars-row>
<ars-row *ngIf="userSelection">
<ars-style-btn-material style="width:100%">
<ars-row [height]="50" ars-flex-box class="questionwall-list-border-bottom">
<ars-col ars-btn-wrp [xp]="24" [extra]="true">
<button ars-btn (click)="cancelUserMap()" matRipple><i>arrow_back</i></button>
</ars-col>

Lukas Haase
committed
</ars-row>
<ars-row ars-btn-wrp [xp]="48" [yp]="32">
<button ars-btn mat-ripple *ngFor="let user of userList" (click)="applyUserMap(user[1])">
<p>{{user[1]}}</p><p>{{user[0]}}</p>
</button>

Lukas Haase
committed
</ars-row>

Lukas Haase
committed
</ars-row>
</ars-col>
</ars-fill>
<ars-row [height]="50" class="questionwall-footer">
<ars-style-btn-material style="width:100%;" ars-flex-box>
<ars-col ars-btn-wrp [xp]="16" [extra]="true">
<button ars-btn (click)="toggleFocusIncommingComments()" matRipple>
<ng-container *ngIf="focusIncommingComments">
<i>{{'question-wall.auto-renew-off-icon' | translate}}</i>
<p>{{'question-wall.auto-renew-off' | translate}}</p>
</ng-container>
<ng-container *ngIf="!focusIncommingComments">
<i>{{'question-wall.auto-renew-on-icon' | translate}}</i>
<p>{{'question-wall.auto-renew-on' | translate}}</p>
</ng-container>
</button>
</ars-col>
<ars-fill></ars-fill>
<ars-col style="display:flex;flex-direction:column;justify-content:center">
<p *ngIf="unreadComments" style="line-height:18px;" class="questionwall-text-color">{{unreadComments}}</p>
</ars-col>
<ars-col ars-btn-wrp [xp]="16" [extra]="true">
<button ars-btn (click)="prevComment()" matRipple>
<i>{{'question-wall.prev-comment-icon' | translate}}</i>
<p>{{'question-wall.prev-comment' | translate}}</p>
</button>
<button ars-btn (click)="nextComment()" matRipple>
<i>{{'question-wall.next-comment-icon' | translate}}</i>
<p>{{'question-wall.next-comment' | translate}}</p>
</button>
</ars-col>
</ars-style-btn-material>
</ars-row>