Files
aspnet-core-signalr-angular/app/shared/components/match.component.html
2016-10-03 16:30:49 +03:00

59 lines
2.3 KiB
HTML

<table class="table table-bordered box">
<thead>
<tr>
<th>Team</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="teamName">{{match.Host}}</span></td>
<td><span class="teamScore"> {{match.HostScore}} </span></td>
</tr>
<tr>
<td><span class="teamName"> {{match.Guest}} </span></td>
<td><span class="teamScore">{{match.GuestScore}}</span></td>
</tr>
<tr>
<td>
<span class="label label-success">{{match.Type}}</span>
</td>
<td>
<button type="button" class="btn btn-default btn-md" (click)="subscribe()" *ngIf="!subscribed">
Subscribe to feed
</button>
<button type="button" class="btn btn-danger btn-md" (click)="unsubscribe()" *ngIf="subscribed">
Unubscribe
</button>
</td>
</tr>
<tr *ngIf="subscribed">
<td><button type="button" class="btn btn-default btn-md" (click)="addChatMessage()">Send</button></td>
<td><input type="text" class="form-control" placeholder="Type message.." [(ngModel)]="chatMessage" /></td>
</tr>
<tr>
<td colspan="2">
<div class="feed-table">
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>Update</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let feed of match.Feeds" feedHighlight>
<td>
<span class="feed-time">{{feed.CreatedAt | date:'shortTime' }}</span>
</td>
<td class="filterable-cell">
<span class="feed-update"> {{feed.Description}} </span>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>