|
@@ -30,10 +30,6 @@
|
|
|
entry="entry"
|
|
entry="entry"
|
|
|
threads="reviewPanel.commentThreads"
|
|
threads="reviewPanel.commentThreads"
|
|
|
on-resolve="resolveComment(entry, entry_id)"
|
|
on-resolve="resolveComment(entry, entry_id)"
|
|
|
- on-unresolve="unresolveComment(entry, entry_id)"
|
|
|
|
|
- on-show-thread="showThread(entry)"
|
|
|
|
|
- on-hide-thread="hideThread(entry)"
|
|
|
|
|
- on-delete="deleteComment(entry_id)"
|
|
|
|
|
on-reply="submitReply(entry, entry_id);"
|
|
on-reply="submitReply(entry, entry_id);"
|
|
|
on-indicator-click="toggleReviewPanel();"
|
|
on-indicator-click="toggleReviewPanel();"
|
|
|
)
|
|
)
|
|
@@ -66,8 +62,6 @@
|
|
|
change-entry(
|
|
change-entry(
|
|
|
entry="entry"
|
|
entry="entry"
|
|
|
user="users[entry.metadata.user_id]"
|
|
user="users[entry.metadata.user_id]"
|
|
|
- on-reject="rejectChange(entry.id);"
|
|
|
|
|
- on-accept="acceptChange(entry.id);"
|
|
|
|
|
on-indicator-click="toggleReviewPanel();"
|
|
on-indicator-click="toggleReviewPanel();"
|
|
|
ng-click="gotoEntry(doc_id, entry)"
|
|
ng-click="gotoEntry(doc_id, entry)"
|
|
|
)
|
|
)
|
|
@@ -76,9 +70,6 @@
|
|
|
comment-entry(
|
|
comment-entry(
|
|
|
entry="entry"
|
|
entry="entry"
|
|
|
users="users"
|
|
users="users"
|
|
|
- on-resolve="resolveComment(entry, entry.id)"
|
|
|
|
|
- on-unresolve="unresolveComment(entry, entry.id)"
|
|
|
|
|
- on-delete="deleteComment(entry.id)"
|
|
|
|
|
on-reply="submitReply(entry, entry_id);"
|
|
on-reply="submitReply(entry, entry_id);"
|
|
|
on-indicator-click="toggleReviewPanel();"
|
|
on-indicator-click="toggleReviewPanel();"
|
|
|
ng-click="gotoEntry(doc_id, entry)"
|
|
ng-click="gotoEntry(doc_id, entry)"
|
|
@@ -127,7 +118,8 @@ script(type='text/ng-template', id='changeEntryTemplate')
|
|
|
span(ng-switch-when="delete") Deleted
|
|
span(ng-switch-when="delete") Deleted
|
|
|
del.rp-content-highlight {{ entry.content }}
|
|
del.rp-content-highlight {{ entry.content }}
|
|
|
.rp-entry-metadata
|
|
.rp-entry-metadata
|
|
|
- span {{ entry.metadata.ts | date : 'MMM d, y h:mm a' }} •
|
|
|
|
|
|
|
+ | {{ entry.metadata.ts | date : 'MMM d, y h:mm a' }}
|
|
|
|
|
+ | •
|
|
|
span.rp-entry-user(style="color: hsl({{ user.hue }}, 70%, 40%);") {{ user.name }}
|
|
span.rp-entry-user(style="color: hsl({{ user.hue }}, 70%, 40%);") {{ user.name }}
|
|
|
.rp-entry-actions
|
|
.rp-entry-actions
|
|
|
a.rp-entry-button(href, ng-click="onReject();")
|
|
a.rp-entry-button(href, ng-click="onReject();")
|
|
@@ -139,54 +131,51 @@ script(type='text/ng-template', id='changeEntryTemplate')
|
|
|
|
|
|
|
|
script(type='text/ng-template', id='commentEntryTemplate')
|
|
script(type='text/ng-template', id='commentEntryTemplate')
|
|
|
div
|
|
div
|
|
|
- .rp-entry-callout.rp-entry-callout-comment(ng-if="!threads[entry.thread_id].resolved")
|
|
|
|
|
|
|
+ .rp-entry-callout.rp-entry-callout-comment
|
|
|
.rp-entry-indicator(
|
|
.rp-entry-indicator(
|
|
|
ng-class="{ 'rp-entry-indicator-focused': entry.focused }"
|
|
ng-class="{ 'rp-entry-indicator-focused': entry.focused }"
|
|
|
ng-click="onIndicatorClick();"
|
|
ng-click="onIndicatorClick();"
|
|
|
)
|
|
)
|
|
|
i.fa.fa-comment
|
|
i.fa.fa-comment
|
|
|
.rp-entry.rp-entry-comment(
|
|
.rp-entry.rp-entry-comment(
|
|
|
- ng-class="{ 'rp-entry-focused': entry.focused, 'rp-entry-comment-resolved': threads[entry.thread_id].resolved}"
|
|
|
|
|
|
|
+ ng-class="{ 'rp-entry-focused': entry.focused }"
|
|
|
)
|
|
)
|
|
|
- .rp-comment(
|
|
|
|
|
- ng-if="!threads[entry.thread_id].resolved || entry.showWhenResolved"
|
|
|
|
|
- ng-repeat="comment in threads[entry.thread_id].messages"
|
|
|
|
|
- ng-class="comment.user.isSelf ? 'rp-comment-self' : '';"
|
|
|
|
|
- )
|
|
|
|
|
- .rp-avatar(
|
|
|
|
|
- ng-if="!comment.user.isSelf;"
|
|
|
|
|
- style="background-color: hsl({{ comment.user.hue }}, 70%, 50%);"
|
|
|
|
|
- ) {{ comment.user.avatar_text | limitTo : 1 }}
|
|
|
|
|
- .rp-comment-body(style="color: hsl({{ comment.user.hue }}, 70%, 90%);")
|
|
|
|
|
|
|
+ div
|
|
|
|
|
+ .rp-comment(
|
|
|
|
|
+ ng-repeat="comment in threads[entry.thread_id].messages"
|
|
|
|
|
+ )
|
|
|
p.rp-comment-content {{ comment.content }}
|
|
p.rp-comment-content {{ comment.content }}
|
|
|
- p.rp-comment-metadata
|
|
|
|
|
|
|
+ .rp-entry-metadata
|
|
|
| {{ comment.timestamp | date : 'MMM d, y h:mm a' }}
|
|
| {{ comment.timestamp | date : 'MMM d, y h:mm a' }}
|
|
|
| •
|
|
| •
|
|
|
- span(style="color: hsl({{ comment.user.hue }}, 70%, 40%);") {{ comment.user.name }}
|
|
|
|
|
- .rp-comment-reply(ng-if="!threads[entry.thread_id].resolved || entry.showWhenResolved")
|
|
|
|
|
|
|
+ span.rp-entry-user(style="color: hsl({{ comment.user.hue }}, 70%, 40%);") {{ comment.user.name }}
|
|
|
|
|
+ .rp-comment-reply
|
|
|
textarea.rp-comment-input(
|
|
textarea.rp-comment-input(
|
|
|
ng-model="entry.replyContent"
|
|
ng-model="entry.replyContent"
|
|
|
ng-keypress="handleCommentReplyKeyPress($event);"
|
|
ng-keypress="handleCommentReplyKeyPress($event);"
|
|
|
stop-propagation="click"
|
|
stop-propagation="click"
|
|
|
placeholder="{{ 'Hit \"Enter\" to reply' + (entry.resolved ? ' and re-open' : '') }}"
|
|
placeholder="{{ 'Hit \"Enter\" to reply' + (entry.resolved ? ' and re-open' : '') }}"
|
|
|
)
|
|
)
|
|
|
- .rp-comment-resolved-description(ng-if="threads[entry.thread_id].resolved && !entry.showWhenResolved")
|
|
|
|
|
- div
|
|
|
|
|
- | Comment resolved by
|
|
|
|
|
- span(style="color: hsl({{ threads[entry.thread_id].resolved_by_user.hue }}, 70%, 40%);") {{ threads[entry.thread_id].resolved_by_user.name }}
|
|
|
|
|
- div {{ threads[entry.thread_id].resolved_at | date : 'MMM d, y h:mm a' }}
|
|
|
|
|
|
|
+ //- .rp-comment-resolved-description(ng-if="threads[entry.thread_id].resolved && !entry.showWhenResolved")
|
|
|
|
|
+ //- div
|
|
|
|
|
+ //- | Comment resolved by
|
|
|
|
|
+ //- span(style="color: hsl({{ threads[entry.thread_id].resolved_by_user.hue }}, 70%, 40%);") {{ threads[entry.thread_id].resolved_by_user.name }}
|
|
|
|
|
+ //- div {{ threads[entry.thread_id].resolved_at | date : 'MMM d, y h:mm a' }}
|
|
|
.rp-entry-actions
|
|
.rp-entry-actions
|
|
|
- a.rp-entry-button(href, ng-click="onResolve();", ng-if="!threads[entry.thread_id].resolved")
|
|
|
|
|
|
|
+ a.rp-entry-button(href, ng-click="onResolve();")
|
|
|
i.fa.fa-check
|
|
i.fa.fa-check
|
|
|
- | Mark as resolved
|
|
|
|
|
- a.rp-entry-button(href, ng-click="onShowThread();", ng-if="threads[entry.thread_id].resolved && !entry.showWhenResolved")
|
|
|
|
|
- | Show
|
|
|
|
|
- a.rp-entry-button(href, ng-click="onHideThread();", ng-if="threads[entry.thread_id].resolved && entry.showWhenResolved")
|
|
|
|
|
- | Hide
|
|
|
|
|
- a.rp-entry-button(href, ng-click="onUnresolve();", ng-if="threads[entry.thread_id].resolved")
|
|
|
|
|
- | Re-open
|
|
|
|
|
- a.rp-entry-button(href, ng-click="onDelete();", ng-if="threads[entry.thread_id].resolved")
|
|
|
|
|
- | Delete
|
|
|
|
|
|
|
+ | Resolve
|
|
|
|
|
+ a.rp-entry-button(href, ng-click="onReply();")
|
|
|
|
|
+ i.fa.fa-reply
|
|
|
|
|
+ | Reply
|
|
|
|
|
+ //- a.rp-entry-button(href, ng-click="onShowThread();", ng-if="threads[entry.thread_id].resolved && !entry.showWhenResolved")
|
|
|
|
|
+ //- | Show
|
|
|
|
|
+ //- a.rp-entry-button(href, ng-click="onHideThread();", ng-if="threads[entry.thread_id].resolved && entry.showWhenResolved")
|
|
|
|
|
+ //- | Hide
|
|
|
|
|
+ //- a.rp-entry-button(href, ng-click="onUnresolve();", ng-if="threads[entry.thread_id].resolved")
|
|
|
|
|
+ //- | Re-open
|
|
|
|
|
+ //- a.rp-entry-button(href, ng-click="onDelete();", ng-if="threads[entry.thread_id].resolved")
|
|
|
|
|
+ //- | Delete
|
|
|
|
|
|
|
|
|
|
|
|
|
script(type='text/ng-template', id='addCommentEntryTemplate')
|
|
script(type='text/ng-template', id='addCommentEntryTemplate')
|