This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit e7b31d34 authored by Eduard Frankford's avatar Eduard Frankford
Browse files

add missing badge rewarded column in statistics entity view

parent 9ccaf639
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -19,7 +19,18 @@
<tr *ngFor="let reviewRating of reviewRatings">
<td>{{ reviewRating.id }}</td>
<td>
{{ reviewRating.comment }}
<div class="btn-group">
<button
class="btn btn-info btn-sm"
type="button"
data-toggle="modal"
data-target="#detailModal2"
(click)="commentToShow = reviewRating.comment"
>
<fa-icon icon="times"></fa-icon>
<span class="d-none d-md-inline">View comment</span>
</button>
</div>
</td>
<td>
{{ reviewRating.status }}
......@@ -34,3 +45,28 @@
</tbody>
</table>
</div>
<div>
<div class="modal fade" id="detailModal2">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
Comment
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<!-- Modal body -->
<div class="modal-body">
<div class="form-group">
<div class="pb-3">
<textarea class="form-control" disabled rows="8">{{ commentToShow }}</textarea>
</div>
</div>
</div>
<!-- Modal footer -->
<div class="modal-footer"></div>
</div>
</div>
</div>
</div>
......@@ -13,6 +13,7 @@ import { SearchService } from 'app/search/service/search-service';
})
export class ReviewRatingsComponent implements OnInit {
reviewRatings: ReviewRating[] = [];
commentToShow: string | undefined;
constructor(
private userService: UserManagementService,
......
......@@ -55,6 +55,9 @@
<th scope="col" jhiSortBy="exerciseID">
<span jhiTranslate="gitsearchApp.statistics.exerciseID">Exercise ID</span> <fa-icon icon="sort"></fa-icon>
</th>
<th scope="col" jhiSortBy="exerciseID">
<span>Badge Rewarded</span>
</th>
<th scope="col"></th>
</tr>
</thead>
......@@ -66,6 +69,7 @@
<td>{{ statistics.views }}</td>
<td>{{ statistics.downloads }}</td>
<td>{{ statistics.exerciseID }}</td>
<td>{{ statistics.badgeRewarded }}</td>
<td class="text-right">
<div class="btn-group">
<button type="submit" [routerLink]="['/statistics', statistics.id, 'view']" class="btn btn-info btn-sm">
......
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