mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
board admin can edit and delete comments as well #3201
This commit is contained in:
parent
167d9d34eb
commit
01285ba10d
1 changed files with 10 additions and 5 deletions
|
|
@ -15,6 +15,12 @@ template(name="cardActivities")
|
||||||
each activityData in currentCard.activities
|
each activityData in currentCard.activities
|
||||||
+activity(activity=activityData card=card mode=mode)
|
+activity(activity=activityData card=card mode=mode)
|
||||||
|
|
||||||
|
template(name="editOrDeleteComment")
|
||||||
|
= ' - '
|
||||||
|
a.js-open-inlined-form {{_ "edit"}}
|
||||||
|
= ' - '
|
||||||
|
a.js-delete-comment {{_ "delete"}}
|
||||||
|
|
||||||
template(name="activity")
|
template(name="activity")
|
||||||
.activity
|
.activity
|
||||||
+userAvatar(userId=activity.user._id)
|
+userAvatar(userId=activity.user._id)
|
||||||
|
|
@ -119,10 +125,9 @@ template(name="activity")
|
||||||
= activity.comment.text
|
= activity.comment.text
|
||||||
span(title=activity.createdAt).activity-meta {{ moment activity.createdAt }}
|
span(title=activity.createdAt).activity-meta {{ moment activity.createdAt }}
|
||||||
if($eq currentUser._id activity.comment.userId)
|
if($eq currentUser._id activity.comment.userId)
|
||||||
= ' - '
|
+editOrDeleteComment
|
||||||
a.js-open-inlined-form {{_ "edit"}}
|
else if currentUser.isBoardAdmin
|
||||||
= ' - '
|
+editOrDeleteComment
|
||||||
a.js-delete-comment {{_ "delete"}}
|
|
||||||
|
|
||||||
if($eq activity.activityType 'deleteComment')
|
if($eq activity.activityType 'deleteComment')
|
||||||
| {{{_ 'activity-deleteComment' currentData.commentId}}}.
|
| {{{_ 'activity-deleteComment' currentData.commentId}}}.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue