Last change
on this file was 8423429, checked in by AngelNasev <angel.nasev@…>, 17 months ago |
Add backend and frontend projects
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[8423429] | 1 | <div class="container">
|
---|
| 2 | <div class="header">
|
---|
| 3 | <h1>Детали за прашањето</h1>
|
---|
| 4 | <button routerLink="/add-answer/{{question?.id}}">Одговори на прашањето</button>
|
---|
| 5 | </div>
|
---|
| 6 | <hr>
|
---|
| 7 | <hr>
|
---|
| 8 | <h2 class="title">{{question?.title}}</h2>
|
---|
| 9 | <p class="content">{{question?.content}}</p>
|
---|
| 10 | <small>Поставено на: {{question?.dateAsked?.slice(0, 10)}}
|
---|
| 11 | од: {{question?.student?.name}} {{question?.student?.lastName}}</small>
|
---|
| 12 | <hr>
|
---|
| 13 | <div class="answer-card" *ngFor="let ans of answers">
|
---|
| 14 | <div class="arrows">
|
---|
| 15 | <svg (click)="likeAnswer(ans!!.id)" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
|
---|
| 16 | class="bi bi-arrow-up" viewBox="0 0 16 16">
|
---|
| 17 | <path fill-rule="evenodd"
|
---|
| 18 | d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"/>
|
---|
| 19 | </svg>
|
---|
| 20 | <b>{{answersLikes.get(ans!!.id)}}</b>
|
---|
| 21 | <svg (click)="unlikeAnswer(ans!!.id)" xmlns="http://www.w3.org/2000/svg" width="16" height="16"
|
---|
| 22 | fill="currentColor" class="bi bi-arrow-down" viewBox="0 0 16 16">
|
---|
| 23 | <path fill-rule="evenodd"
|
---|
| 24 | d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"/>
|
---|
| 25 | </svg>
|
---|
| 26 | </div>
|
---|
| 27 | <p>{{ans?.content}}</p>
|
---|
| 28 | </div>
|
---|
| 29 | </div>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.