|
12 | 12 | <div class="ph-margin-row-content"> |
13 | 13 | <!-- view reply --> |
14 | 14 | <div ng-if="!$ctrl.editing" class="clearfix"> |
15 | | - <div class="ph-margin-info"> |
16 | | - <p class="ph-xs-margin-bottom"> |
17 | | - <a href="./users/{{$ctrl.reply.author.account.username}}"> |
18 | | - {{$ctrl.reply.author.displayName}}</a> |
19 | | - · <span am-time-ago="$ctrl.reply.createdAt"></span> |
20 | | - </p> |
21 | | - </div> |
22 | | - <kramjax body="$ctrl.reply.body"></kramjax> |
23 | | - <div class="pull-right"> |
24 | | - <div class="btn-group" uib-dropdown> |
25 | | - <button class="btn btn-link btn-xs" |
26 | | - uib-dropdown-toggle |
27 | | - uib-tooltip="Options" |
28 | | - tooltip-class="tooltip-nowrap" |
29 | | - > |
30 | | - <i class="fa fa-fw fa-lg fa-ellipsis-v"></i> |
31 | | - </button> |
32 | | - <ul class="dropdown-menu dropdown-menu-right ph-margin-dropdown"> |
33 | | - <li> |
34 | | - <a ng-href=".{{'documentItem.discussion.thread' | routeSegmentUrl:{discussion: $ctrl.reply.discussion} }}#{{$ctrl.reply.id}}"> |
35 | | - <i class="fa fa-fw fa-comments"></i> Show discussion view |
36 | | - </a> |
37 | | - </li> |
38 | | - <!-- edit reply --> |
39 | | - <li ng-if="$ctrl.authService.user.id === $ctrl.reply.author.id" |
40 | | - ng-class="{disabled: $ctrl.submitting}"> |
41 | | - <a ng-click="$ctrl.editing = true" href> |
42 | | - <i class="fa fa-fw fa-pencil"></i> Edit |
43 | | - </a> |
44 | | - </li> |
45 | | - <!-- delete reply --> |
46 | | - <li ng-if="$ctrl.authService.user.id === $ctrl.reply.author.id" |
47 | | - ng-class="{disabled: $ctrl.submitting}"> |
48 | | - <a ng-confirm-click="Really delete reply?" |
49 | | - confirmed-click="$ctrl.delete(reply)" href> |
50 | | - <i class="fa fa-fw fa-times"></i> Delete |
51 | | - </a> |
52 | | - </li> |
53 | | - <!--li ng-if="$ctrl.authService.user.id !== $ctrl.reply.author.id"> |
54 | | - <a href><i class="fa fa-fw fa-flag"></i> Flag</a> |
55 | | - </li--> |
56 | | - </ul> |
| 15 | + <p ng-if="$ctrl.reply.deleted" class="ph-margin-info"> |
| 16 | + <em>Contribution has been deleted. Reason: {{$ctrl.reply.deletedReason}}.</em> |
| 17 | + </p> |
| 18 | + <div ng-if="!$ctrl.reply.deleted"> |
| 19 | + <div class="ph-margin-info"> |
| 20 | + <p class="ph-xs-margin-bottom"> |
| 21 | + <a href="./users/{{$ctrl.reply.author.account.username}}"> |
| 22 | + {{$ctrl.reply.author.displayName}}</a> |
| 23 | + · <span am-time-ago="$ctrl.reply.createdAt"></span> |
| 24 | + </p> |
| 25 | + </div> |
| 26 | + <kramjax body="$ctrl.reply.body"></kramjax> |
| 27 | + <div class="pull-right"> |
| 28 | + <div class="btn-group" uib-dropdown> |
| 29 | + <button class="btn btn-link btn-xs" |
| 30 | + uib-dropdown-toggle |
| 31 | + uib-tooltip="Options" |
| 32 | + tooltip-class="tooltip-nowrap" |
| 33 | + > |
| 34 | + <i class="fa fa-fw fa-lg fa-ellipsis-v"></i> |
| 35 | + </button> |
| 36 | + <ul class="dropdown-menu dropdown-menu-right ph-margin-dropdown"> |
| 37 | + <li> |
| 38 | + <a ng-href=".{{'documentItem.discussion.thread' | routeSegmentUrl:{discussion: $ctrl.reply.discussion} }}#{{$ctrl.reply.id}}"> |
| 39 | + <i class="fa fa-fw fa-comments"></i> Show discussion view |
| 40 | + </a> |
| 41 | + </li> |
| 42 | + <!-- edit reply --> |
| 43 | + <li ng-if="$ctrl.authService.user.id === $ctrl.reply.author.id" |
| 44 | + ng-class="{disabled: $ctrl.submitting}"> |
| 45 | + <a ng-click="$ctrl.editing = true" href> |
| 46 | + <i class="fa fa-fw fa-pencil"></i> Edit |
| 47 | + </a> |
| 48 | + </li> |
| 49 | + <!-- delete reply --> |
| 50 | + <li ng-if="$ctrl.authService.user.id === $ctrl.reply.author.id" |
| 51 | + ng-class="{disabled: $ctrl.submitting}"> |
| 52 | + <a ng-confirm-click="Really delete reply?" |
| 53 | + confirmed-click="$ctrl.delete(reply)" href> |
| 54 | + <i class="fa fa-fw fa-times"></i> Delete |
| 55 | + </a> |
| 56 | + </li> |
| 57 | + <!--li ng-if="$ctrl.authService.user.id !== $ctrl.reply.author.id"> |
| 58 | + <a href><i class="fa fa-fw fa-flag"></i> Flag</a> |
| 59 | + </li--> |
| 60 | + </ul> |
| 61 | + </div> |
57 | 62 | </div> |
58 | 63 | </div> |
59 | 64 | </div> |
|
0 commit comments