mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 14:49:01 +02:00
Add basic comment replying
This commit is contained in:
@@ -51,15 +51,23 @@ div.full-size(
|
||||
.review-panel-scroller
|
||||
.review-entry-list(review-panel-sorted)
|
||||
.review-entry(ng-repeat="(entry_id, entry) in reviewPanel.entries", ng-style="{'top': top}")
|
||||
div(ng-if="entry.type != 'focus-position'")
|
||||
div(ng-if="entry.type == 'change'")
|
||||
div.small {{ entry.metadata.ts }}
|
||||
{{ entry.content }}
|
||||
div(ng-if="entry.type == 'comment'")
|
||||
div(ng-repeat="comment in entry.thread", class="comment-thread__comment")
|
||||
div.small {{ comment.ts }}
|
||||
div.small {{ comment.user_id }}
|
||||
{{ comment.content }}
|
||||
div(ng-if="entry.replying")
|
||||
textarea(ng-model="entry.replyContent")
|
||||
a.btn.btn-sm.btn-primary(href, ng-click="submitReply(entry)") Submit
|
||||
a.btn.btn-sm.btn-primary(href, ng-click="startReply(entry)", ng-if="!entry.replying") Reply
|
||||
div(ng-if="entry.type == 'focus-position'")
|
||||
|
||||
a.btn.btn-sm(href, ng-if="!commentState.adding", ng-click="startAddingComment()") Add comment
|
||||
a.btn.btn-sm(href, ng-if="!commentState.adding", ng-click="startNewComment()") Add comment
|
||||
div(ng-if="commentState.adding")
|
||||
textarea(ng-model="commentState.content")
|
||||
a.btn.btn-sm.btm-primary(href, ng-click="submitComment()") Submit
|
||||
a.btn.btn-sm.btn-primary(href, ng-click="submitNewComment()") Submit
|
||||
|
||||
.ui-layout-east
|
||||
div(ng-if="ui.pdfLayout == 'sideBySide'")
|
||||
|
||||
Reference in New Issue
Block a user