2017-03-17 13:05:38 -04:00
|
|
|
#review-panel
|
2017-03-24 10:04:37 -04:00
|
|
|
.rp-in-editor-widgets
|
|
|
|
a.rp-track-changes-indicator(
|
|
|
|
href
|
|
|
|
ng-if="editor.wantTrackChanges"
|
|
|
|
ng-click="toggleReviewPanel();"
|
|
|
|
ng-class="{ 'rp-track-changes-indicator-on-dark' : darkTheme }"
|
|
|
|
) !{translate("track_changes_is_on")}
|
2017-05-03 06:41:17 -04:00
|
|
|
a.rp-bulk-actions-btn(
|
|
|
|
href
|
2017-06-01 10:18:43 -04:00
|
|
|
ng-if="reviewPanel.nVisibleSelectedChanges > 1"
|
2017-05-09 11:06:19 -04:00
|
|
|
ng-click="showBulkAcceptDialog();"
|
2017-05-03 06:41:17 -04:00
|
|
|
)
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("accept_all")}
|
2017-06-01 10:18:43 -04:00
|
|
|
| ({{ reviewPanel.nVisibleSelectedChanges }})
|
2017-05-03 06:41:17 -04:00
|
|
|
a.rp-bulk-actions-btn(
|
|
|
|
href
|
2017-06-01 10:18:43 -04:00
|
|
|
ng-if="reviewPanel.nVisibleSelectedChanges > 1"
|
2017-05-09 11:06:19 -04:00
|
|
|
ng-click="showBulkRejectDialog();"
|
2017-05-03 06:41:17 -04:00
|
|
|
)
|
|
|
|
i.fa.fa-times
|
|
|
|
| #{translate("reject_all")}
|
2017-06-01 10:18:43 -04:00
|
|
|
| ({{ reviewPanel.nVisibleSelectedChanges }})
|
2017-03-24 10:04:37 -04:00
|
|
|
a.rp-add-comment-btn(
|
|
|
|
href
|
2017-04-03 12:11:33 -04:00
|
|
|
ng-if="reviewPanel.entries[editor.open_doc_id]['add-comment'] != null"
|
2017-03-24 10:04:37 -04:00
|
|
|
ng-click="addNewComment();"
|
|
|
|
)
|
|
|
|
i.fa.fa-comment
|
|
|
|
| #{translate("add_comment")}
|
2017-05-17 11:41:53 -04:00
|
|
|
a.review-panel-toggler(
|
|
|
|
href
|
2017-05-22 06:11:26 -04:00
|
|
|
ng-click="handleTogglerClick($event);"
|
2017-05-17 11:41:53 -04:00
|
|
|
)
|
2016-11-16 09:42:07 -05:00
|
|
|
.review-panel-toolbar
|
2017-01-05 12:15:27 -05:00
|
|
|
resolved-comments-dropdown(
|
2017-01-18 10:38:34 -05:00
|
|
|
class="rp-flex-block"
|
2017-01-13 09:27:45 -05:00
|
|
|
entries="reviewPanel.resolvedComments"
|
2017-01-05 12:15:27 -05:00
|
|
|
threads="reviewPanel.commentThreads"
|
2017-01-10 11:29:27 -05:00
|
|
|
resolved-ids="reviewPanel.resolvedThreadIds"
|
2017-01-06 07:00:17 -05:00
|
|
|
docs="docs"
|
2017-01-09 09:59:01 -05:00
|
|
|
on-open="refreshResolvedCommentsDropdown();"
|
2017-01-09 12:22:01 -05:00
|
|
|
on-unresolve="unresolveComment(threadId);"
|
2017-01-24 10:18:49 -05:00
|
|
|
on-delete="deleteThread(entryId, docId, threadId);"
|
2017-01-09 09:59:01 -05:00
|
|
|
is-loading="reviewPanel.dropdown.loading"
|
2017-01-12 05:52:39 -05:00
|
|
|
permissions="permissions"
|
2017-01-05 12:15:27 -05:00
|
|
|
)
|
2017-06-28 09:27:36 -04:00
|
|
|
span.review-panel-toolbar-label(ng-if="permissions.write")
|
|
|
|
span(ng-click="toggleFullTCStateCollapse();", ng-if="editor.wantTrackChanges === false") !{translate("track_changes_is_off")}
|
|
|
|
span(ng-click="toggleFullTCStateCollapse();", ng-if="editor.wantTrackChanges === true") !{translate("track_changes_is_on")}
|
|
|
|
ul.rp-tc-state(
|
|
|
|
review-panel-collapse-height="reviewPanel.fullTCStateCollapsed"
|
|
|
|
)
|
|
|
|
li.rp-tc-state-item
|
|
|
|
span.rp-tc-state-item-name.rp-tc-state-item-name-everyone Everyone
|
|
|
|
review-panel-toggle(
|
|
|
|
ng-model="reviewPanel.trackChangesOnForEveryone"
|
2017-06-28 10:00:32 -04:00
|
|
|
on-toggle="toggleTrackChangesForEveryone(isOn);"
|
2017-06-28 09:27:36 -04:00
|
|
|
disabled="!project.features.trackChanges"
|
|
|
|
on-disabled-click="openTrackChangesUpgradeModal"
|
|
|
|
)
|
|
|
|
li.rp-tc-state-item
|
|
|
|
span.rp-tc-state-item-name.rp-tc-state-item-self(
|
|
|
|
style="color: hsl({{ users[user.id].hue }}, 70%, 40%);"
|
|
|
|
) {{ users[user.id].name }}
|
|
|
|
//- {{user.id}}
|
|
|
|
//- Missing on-toggle attribute because we also need to pass user_id to the toggleTrackChangesForUser
|
|
|
|
//- method, and it's not clear how.
|
|
|
|
review-panel-toggle(
|
|
|
|
ng-model="reviewPanel.trackChangesState[user.id]"
|
2017-06-28 10:00:32 -04:00
|
|
|
on-toggle="toggleTrackChangesForUser(isOn, user.id);"
|
2017-06-28 09:27:36 -04:00
|
|
|
)
|
|
|
|
li.rp-tc-state-item(ng-repeat="member in project.members")
|
|
|
|
span.rp-tc-state-item-name(
|
|
|
|
style="color: hsl({{ users[member._id].hue }}, 70%, 40%);"
|
|
|
|
) {{ users[member._id].name }}
|
|
|
|
//- {{member._id}}
|
|
|
|
review-panel-toggle(
|
|
|
|
ng-model="reviewPanel.trackChangesState[member._id]"
|
2017-06-28 10:00:32 -04:00
|
|
|
on-toggle="toggleTrackChangesForUser(isOn, member._id);"
|
2017-06-28 09:27:36 -04:00
|
|
|
)
|
|
|
|
|
2017-06-21 08:40:28 -04:00
|
|
|
//- span.review-panel-toolbar-label(ng-if="permissions.write")
|
|
|
|
//- span(ng-click="toggleTrackChanges(true)", ng-if="editor.wantTrackChanges === false") !{translate("track_changes_is_off")}
|
|
|
|
//- span(ng-click="toggleTrackChanges(false)", ng-if="editor.wantTrackChanges === true") !{translate("track_changes_is_on")}
|
|
|
|
//- review-panel-toggle(
|
|
|
|
//- ng-if="editor.wantTrackChanges == editor.trackChanges"
|
|
|
|
//- ng-model="editor.wantTrackChanges"
|
|
|
|
//- on-toggle="toggleTrackChanges"
|
|
|
|
//- disabled="!project.features.trackChanges"
|
|
|
|
//- on-disabled-click="openTrackChangesUpgradeModal"
|
|
|
|
//- )
|
|
|
|
//- span.review-panel-toolbar-label.review-panel-toolbar-label-disabled(ng-if="!permissions.write")
|
|
|
|
//- span(ng-if="editor.wantTrackChanges === false") !{translate("track_changes_is_off")}
|
|
|
|
//- span(ng-if="editor.wantTrackChanges === true") !{translate("track_changes_is_on")}
|
|
|
|
//- span.review-panel-toolbar-spinner(ng-if="editor.wantTrackChanges != editor.trackChanges")
|
|
|
|
//- i.fa.fa-spin.fa-spinner
|
2016-11-23 09:34:55 -05:00
|
|
|
|
2016-11-17 07:09:07 -05:00
|
|
|
.rp-entry-list(
|
2016-11-16 10:23:29 -05:00
|
|
|
review-panel-sorted
|
|
|
|
ng-if="reviewPanel.subView === SubViews.CUR_FILE"
|
|
|
|
)
|
|
|
|
.rp-entry-list-inner
|
2016-11-16 09:42:07 -05:00
|
|
|
.rp-entry-wrapper(
|
|
|
|
ng-repeat="(entry_id, entry) in reviewPanel.entries[editor.open_doc_id]"
|
2017-02-20 10:03:02 -05:00
|
|
|
ng-if="entry.visible"
|
2016-11-16 09:42:07 -05:00
|
|
|
)
|
2016-11-16 10:47:05 -05:00
|
|
|
div(ng-if="entry.type === 'insert' || entry.type === 'delete'")
|
|
|
|
change-entry(
|
|
|
|
entry="entry"
|
|
|
|
user="users[entry.metadata.user_id]"
|
2017-06-05 11:29:55 -04:00
|
|
|
on-reject="rejectChanges(entry.entry_ids);"
|
|
|
|
on-accept="acceptChanges(entry.entry_ids);"
|
2016-11-16 11:13:39 -05:00
|
|
|
on-indicator-click="toggleReviewPanel();"
|
2017-01-26 11:11:02 -05:00
|
|
|
on-body-click="gotoEntry(editor.open_doc_id, entry)"
|
2017-01-12 05:52:39 -05:00
|
|
|
permissions="permissions"
|
2016-11-16 10:47:05 -05:00
|
|
|
)
|
2016-11-16 09:42:07 -05:00
|
|
|
|
2017-06-02 06:43:43 -04:00
|
|
|
div(ng-if="entry.type === 'aggregate-change'")
|
2017-05-31 10:53:14 -04:00
|
|
|
aggregate-change-entry(
|
|
|
|
entry="entry"
|
|
|
|
user="users[entry.metadata.user_id]"
|
2017-06-05 11:29:55 -04:00
|
|
|
on-reject="rejectChanges(entry.entry_ids);"
|
|
|
|
on-accept="acceptChanges(entry.entry_ids);"
|
2017-05-31 10:53:14 -04:00
|
|
|
on-indicator-click="toggleReviewPanel();"
|
|
|
|
on-body-click="gotoEntry(editor.open_doc_id, entry)"
|
|
|
|
permissions="permissions"
|
|
|
|
)
|
|
|
|
|
2017-01-10 11:17:07 -05:00
|
|
|
div(ng-if="entry.type === 'comment'")
|
2016-11-16 10:47:05 -05:00
|
|
|
comment-entry(
|
|
|
|
entry="entry"
|
2016-12-16 11:42:41 -05:00
|
|
|
threads="reviewPanel.commentThreads"
|
2016-11-17 13:06:08 -05:00
|
|
|
on-resolve="resolveComment(entry, entry_id)"
|
|
|
|
on-reply="submitReply(entry, entry_id);"
|
2016-11-16 11:13:39 -05:00
|
|
|
on-indicator-click="toggleReviewPanel();"
|
2017-01-24 10:18:49 -05:00
|
|
|
on-save-edit="saveEdit(entry.thread_id, comment)"
|
|
|
|
on-delete="deleteComment(entry.thread_id, comment)"
|
2017-01-26 11:11:02 -05:00
|
|
|
on-body-click="gotoEntry(editor.open_doc_id, entry)"
|
2017-01-12 05:52:39 -05:00
|
|
|
permissions="permissions"
|
2017-01-17 10:55:18 -05:00
|
|
|
ng-if="!reviewPanel.loadingThreads"
|
2016-11-16 10:47:05 -05:00
|
|
|
)
|
|
|
|
|
2017-01-12 05:52:39 -05:00
|
|
|
div(ng-if="entry.type === 'add-comment' && permissions.comment")
|
2016-11-16 10:47:05 -05:00
|
|
|
add-comment-entry(
|
|
|
|
on-start-new="startNewComment();"
|
|
|
|
on-submit="submitNewComment(content);"
|
|
|
|
on-cancel="cancelNewComment();"
|
|
|
|
)
|
2017-05-02 10:43:45 -04:00
|
|
|
div(ng-if="entry.type === 'bulk-actions'")
|
2017-05-02 11:15:40 -04:00
|
|
|
bulk-actions-entry(
|
2017-05-09 11:06:19 -04:00
|
|
|
on-bulk-accept="showBulkAcceptDialog();"
|
|
|
|
on-bulk-reject="showBulkRejectDialog();"
|
2017-06-01 10:18:43 -04:00
|
|
|
n-entries="reviewPanel.nVisibleSelectedChanges"
|
2017-05-02 11:15:40 -04:00
|
|
|
)
|
2016-11-16 09:42:07 -05:00
|
|
|
|
2016-11-17 07:09:07 -05:00
|
|
|
.rp-entry-list(
|
2016-11-17 06:47:20 -05:00
|
|
|
ng-if="reviewPanel.subView === SubViews.OVERVIEW"
|
|
|
|
)
|
2017-01-09 09:59:01 -05:00
|
|
|
.rp-loading(ng-if="reviewPanel.overview.loading")
|
2016-12-09 10:43:08 -05:00
|
|
|
i.fa.fa-spinner.fa-spin
|
2016-11-17 06:47:20 -05:00
|
|
|
.rp-overview-file(
|
2016-12-09 11:17:28 -05:00
|
|
|
ng-repeat="doc in docs"
|
2016-12-09 10:43:08 -05:00
|
|
|
ng-if="!reviewPanel.overview.loading"
|
2016-11-16 09:42:07 -05:00
|
|
|
)
|
2016-12-09 11:17:28 -05:00
|
|
|
.rp-overview-file-header(
|
2017-02-21 10:20:00 -05:00
|
|
|
ng-if="(reviewPanel.entries[doc.doc.id] != null) && (reviewPanel.entries[doc.doc.id] | notEmpty)"
|
2017-02-16 10:48:58 -05:00
|
|
|
ng-click="reviewPanel.overview.docsCollapsedState[doc.doc.id] = ! reviewPanel.overview.docsCollapsedState[doc.doc.id]"
|
2016-12-09 11:17:28 -05:00
|
|
|
)
|
2017-02-21 06:05:55 -05:00
|
|
|
span.rp-overview-file-header-collapse(
|
|
|
|
ng-class="{ 'rp-overview-file-header-collapse-on': reviewPanel.overview.docsCollapsedState[doc.doc.id] }"
|
|
|
|
)
|
2017-02-21 08:25:26 -05:00
|
|
|
i.fa.fa-angle-down
|
2016-12-09 11:17:28 -05:00
|
|
|
| {{ doc.path }}
|
2017-02-17 09:32:06 -05:00
|
|
|
span.rp-overview-file-num-entries(
|
|
|
|
ng-show="reviewPanel.overview.docsCollapsedState[doc.doc.id]"
|
|
|
|
) ({{ reviewPanel.entries[doc.doc.id] | numKeys }})
|
2016-11-16 09:42:07 -05:00
|
|
|
|
2017-02-17 06:24:21 -05:00
|
|
|
.rp-overview-file-entries(
|
|
|
|
review-panel-collapse-height="reviewPanel.overview.docsCollapsedState[doc.doc.id]"
|
2016-11-16 09:42:07 -05:00
|
|
|
)
|
2017-02-16 10:48:58 -05:00
|
|
|
.rp-entry-wrapper(
|
|
|
|
ng-repeat="(entry_id, entry) in reviewPanel.entries[doc.doc.id] | orderOverviewEntries"
|
|
|
|
ng-if="!(entry.type === 'comment' && reviewPanel.commentThreads[entry.thread_id].resolved === true)"
|
|
|
|
)
|
|
|
|
div(ng-if="entry.type === 'insert' || entry.type === 'delete'")
|
|
|
|
change-entry(
|
|
|
|
entry="entry"
|
|
|
|
user="users[entry.metadata.user_id]"
|
|
|
|
ng-click="gotoEntry(doc.doc.id, entry)"
|
|
|
|
permissions="permissions"
|
|
|
|
)
|
2016-11-16 09:42:07 -05:00
|
|
|
|
2017-06-02 06:43:43 -04:00
|
|
|
div(ng-if="entry.type === 'aggregate-change'")
|
2017-05-31 10:53:14 -04:00
|
|
|
aggregate-change-entry(
|
|
|
|
entry="entry"
|
|
|
|
user="users[entry.metadata.user_id]"
|
2017-06-05 05:52:11 -04:00
|
|
|
ng-click="gotoEntry(editor.open_doc_id, entry)"
|
2017-05-31 10:53:14 -04:00
|
|
|
permissions="permissions"
|
|
|
|
)
|
|
|
|
|
2017-02-16 10:48:58 -05:00
|
|
|
div(ng-if="entry.type === 'comment'")
|
|
|
|
comment-entry(
|
|
|
|
entry="entry"
|
|
|
|
threads="reviewPanel.commentThreads"
|
|
|
|
on-reply="submitReply(entry, entry_id);"
|
|
|
|
on-save-edit="saveEdit(entry.thread_id, comment)"
|
|
|
|
on-delete="deleteComment(entry.thread_id, comment)"
|
|
|
|
ng-click="gotoEntry(doc.doc.id, entry)"
|
|
|
|
permissions="permissions"
|
|
|
|
)
|
2016-11-16 09:42:07 -05:00
|
|
|
|
|
|
|
.rp-nav
|
|
|
|
a.rp-nav-item(
|
|
|
|
href
|
|
|
|
ng-click="setSubView(SubViews.CUR_FILE);"
|
|
|
|
ng-class="{ 'rp-nav-item-active' : reviewPanel.subView === SubViews.CUR_FILE }"
|
|
|
|
)
|
|
|
|
i.fa.fa-file-text-o
|
2017-02-17 10:28:53 -05:00
|
|
|
span.rp-nav-label #{translate("current_file")}
|
2016-11-16 09:42:07 -05:00
|
|
|
a.rp-nav-item(
|
|
|
|
href
|
|
|
|
ng-click="setSubView(SubViews.OVERVIEW);"
|
|
|
|
ng-class="{ 'rp-nav-item-active' : reviewPanel.subView === SubViews.OVERVIEW }"
|
|
|
|
)
|
|
|
|
i.fa.fa-list
|
2017-02-17 10:28:53 -05:00
|
|
|
span.rp-nav-label #{translate("overview")}
|
2016-11-16 09:42:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
script(type='text/ng-template', id='changeEntryTemplate')
|
2016-11-16 11:13:39 -05:00
|
|
|
div
|
2016-11-16 11:21:24 -05:00
|
|
|
.rp-entry-callout(
|
|
|
|
ng-class="'rp-entry-callout-' + entry.type"
|
|
|
|
)
|
2016-11-16 11:13:39 -05:00
|
|
|
.rp-entry-indicator(
|
|
|
|
ng-switch="entry.type"
|
|
|
|
ng-class="{ 'rp-entry-indicator-focused': entry.focused }"
|
|
|
|
ng-click="onIndicatorClick();"
|
|
|
|
)
|
|
|
|
i.fa.fa-pencil(ng-switch-when="insert")
|
|
|
|
i.rp-icon-delete(ng-switch-when="delete")
|
|
|
|
.rp-entry(
|
|
|
|
ng-class="[ 'rp-entry-' + entry.type, (entry.focused ? 'rp-entry-focused' : '')]"
|
|
|
|
)
|
2017-01-04 10:24:49 -05:00
|
|
|
.rp-entry-body
|
2016-11-16 11:13:39 -05:00
|
|
|
.rp-entry-action-icon(ng-switch="entry.type")
|
|
|
|
i.fa.fa-pencil(ng-switch-when="insert")
|
|
|
|
i.rp-icon-delete(ng-switch-when="delete")
|
2017-01-04 10:24:49 -05:00
|
|
|
.rp-entry-details
|
|
|
|
.rp-entry-description(ng-switch="entry.type")
|
2017-02-17 10:28:53 -05:00
|
|
|
span(ng-switch-when="insert") #{translate("tracked_change_added")}
|
2017-01-13 10:30:31 -05:00
|
|
|
ins.rp-content-highlight {{ entry.content | limitTo:(isCollapsed ? contentLimit : entry.content.length) }}
|
|
|
|
a.rp-collapse-toggle(
|
|
|
|
href
|
|
|
|
ng-if="needsCollapsing"
|
|
|
|
ng-click="toggleCollapse();"
|
2017-02-17 10:28:53 -05:00
|
|
|
) {{ isCollapsed ? '... (#{translate("show_all")})' : ' (#{translate("show_less")})' }}
|
|
|
|
span(ng-switch-when="delete") #{translate("tracked_change_deleted")}
|
2017-01-13 10:30:31 -05:00
|
|
|
del.rp-content-highlight {{ entry.content | limitTo:(isCollapsed ? contentLimit : entry.content.length) }}
|
|
|
|
a.rp-collapse-toggle(
|
|
|
|
href
|
|
|
|
ng-if="needsCollapsing"
|
|
|
|
ng-click="toggleCollapse();"
|
2017-02-17 10:28:53 -05:00
|
|
|
) {{ isCollapsed ? '... (#{translate("show_all")})' : ' (#{translate("show_less")})' }}
|
2017-01-04 10:24:49 -05:00
|
|
|
.rp-entry-metadata
|
2017-01-05 12:15:27 -05:00
|
|
|
| {{ entry.metadata.ts | date : 'MMM d, y h:mm a' }} •
|
2017-01-04 10:24:49 -05:00
|
|
|
span.rp-entry-user(style="color: hsl({{ user.hue }}, 70%, 40%);") {{ user.name }}
|
2017-01-12 05:52:39 -05:00
|
|
|
.rp-entry-actions(ng-if="permissions.write")
|
2016-11-16 11:13:39 -05:00
|
|
|
a.rp-entry-button(href, ng-click="onReject();")
|
|
|
|
i.fa.fa-times
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("reject")}
|
2016-11-16 11:13:39 -05:00
|
|
|
a.rp-entry-button(href, ng-click="onAccept();")
|
|
|
|
i.fa.fa-check
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("accept")}
|
2016-11-16 09:42:07 -05:00
|
|
|
|
2017-05-31 10:53:14 -04:00
|
|
|
script(type='text/ng-template', id='aggregateChangeEntryTemplate')
|
|
|
|
div
|
|
|
|
.rp-entry-callout.rp-entry-callout-aggregate
|
|
|
|
.rp-entry-indicator(
|
|
|
|
ng-class="{ 'rp-entry-indicator-focused': entry.focused }"
|
|
|
|
ng-click="onIndicatorClick();"
|
|
|
|
)
|
|
|
|
i.fa.fa-pencil
|
|
|
|
.rp-entry.rp-entry-aggregate(
|
|
|
|
ng-class="{ 'rp-entry-focused': entry.focused }"
|
|
|
|
)
|
|
|
|
.rp-entry-body
|
|
|
|
.rp-entry-action-icon
|
|
|
|
i.fa.fa-pencil
|
|
|
|
.rp-entry-details
|
|
|
|
.rp-entry-description
|
2017-06-06 11:46:36 -04:00
|
|
|
| #{translate("aggregate_changed")}
|
2017-06-05 11:29:55 -04:00
|
|
|
del.rp-content-highlight {{ entry.metadata.replaced_content }}
|
2017-06-06 11:46:36 -04:00
|
|
|
| #{translate("aggregate_to")}
|
2017-06-01 10:03:37 -04:00
|
|
|
ins.rp-content-highlight {{ entry.content }}
|
2017-06-01 06:47:55 -04:00
|
|
|
a.rp-collapse-toggle(
|
|
|
|
href
|
|
|
|
ng-if="needsCollapsing"
|
|
|
|
ng-click="toggleCollapse();"
|
|
|
|
) {{ isCollapsed ? '... (#{translate("show_all")})' : ' (#{translate("show_less")})' }}
|
2017-05-31 10:53:14 -04:00
|
|
|
.rp-entry-metadata
|
|
|
|
| {{ entry.metadata.ts | date : 'MMM d, y h:mm a' }} •
|
|
|
|
span.rp-entry-user(style="color: hsl({{ user.hue }}, 70%, 40%);") {{ user.name }}
|
|
|
|
.rp-entry-actions(ng-if="permissions.write")
|
|
|
|
a.rp-entry-button(href, ng-click="onReject();")
|
|
|
|
i.fa.fa-times
|
|
|
|
| #{translate("reject")}
|
|
|
|
a.rp-entry-button(href, ng-click="onAccept();")
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("accept")}
|
|
|
|
|
2016-11-16 10:12:58 -05:00
|
|
|
script(type='text/ng-template', id='commentEntryTemplate')
|
2017-01-12 06:25:36 -05:00
|
|
|
.rp-comment-wrapper(
|
|
|
|
ng-class="{ 'rp-comment-wrapper-resolving': state.animating }"
|
|
|
|
)
|
2017-01-05 06:50:43 -05:00
|
|
|
.rp-entry-callout.rp-entry-callout-comment
|
2016-11-16 11:13:39 -05:00
|
|
|
.rp-entry-indicator(
|
|
|
|
ng-class="{ 'rp-entry-indicator-focused': entry.focused }"
|
|
|
|
ng-click="onIndicatorClick();"
|
2016-11-16 10:12:58 -05:00
|
|
|
)
|
2016-11-16 10:47:05 -05:00
|
|
|
i.fa.fa-comment
|
2016-11-16 11:13:39 -05:00
|
|
|
.rp-entry.rp-entry-comment(
|
2017-01-12 06:25:36 -05:00
|
|
|
ng-class="{ 'rp-entry-focused': entry.focused, 'rp-entry-comment-resolving': state.animating }"
|
2016-11-16 11:13:39 -05:00
|
|
|
)
|
2017-01-24 10:18:49 -05:00
|
|
|
|
2017-01-24 10:56:08 -05:00
|
|
|
.rp-loading(ng-if="!threads[entry.thread_id].submitting && (!threads[entry.thread_id] || threads[entry.thread_id].messages.length == 0)")
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("no_comments")}
|
2017-01-26 11:11:02 -05:00
|
|
|
.rp-comment-loaded
|
2017-01-05 06:50:43 -05:00
|
|
|
.rp-comment(
|
2017-01-05 12:15:27 -05:00
|
|
|
ng-repeat="comment in threads[entry.thread_id].messages track by comment.id"
|
2017-01-05 06:50:43 -05:00
|
|
|
)
|
2017-01-24 10:18:49 -05:00
|
|
|
p.rp-comment-content
|
|
|
|
span(ng-if="!comment.editing")
|
|
|
|
span.rp-entry-user(
|
|
|
|
style="color: hsl({{ comment.user.hue }}, 70%, 40%);",
|
|
|
|
) {{ comment.user.name }}:
|
2017-02-13 04:05:48 -05:00
|
|
|
span(ng-bind-html="comment.content | linky:'_blank'")
|
2017-01-24 10:18:49 -05:00
|
|
|
textarea.rp-comment-input(
|
2017-01-25 08:51:33 -05:00
|
|
|
expandable-text-area
|
2017-01-24 10:18:49 -05:00
|
|
|
ng-if="comment.editing"
|
|
|
|
ng-model="comment.content"
|
|
|
|
ng-keypress="saveEditOnEnter($event, comment);"
|
|
|
|
ng-blur="saveEdit(comment)"
|
|
|
|
autofocus
|
|
|
|
stop-propagation="click"
|
|
|
|
)
|
|
|
|
.rp-entry-metadata(ng-if="!comment.editing")
|
|
|
|
span(ng-if="!comment.deleting") {{ comment.timestamp | date : 'MMM d, y h:mm a' }}
|
|
|
|
span.rp-comment-actions(ng-if="comment.user.isSelf && !comment.deleting")
|
|
|
|
| •
|
2017-02-17 10:28:53 -05:00
|
|
|
a(href, ng-click="startEditing(comment)") #{translate("edit")}
|
2017-01-24 11:03:32 -05:00
|
|
|
span(ng-if="threads[entry.thread_id].messages.length > 1")
|
|
|
|
| •
|
2017-02-17 10:28:53 -05:00
|
|
|
a(href, ng-click="confirmDelete(comment)") #{translate("delete")}
|
2017-01-24 10:18:49 -05:00
|
|
|
span.rp-confim-delete(ng-if="comment.user.isSelf && comment.deleting")
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("are_you_sure")}
|
2017-01-24 10:18:49 -05:00
|
|
|
| •
|
2017-02-17 10:28:53 -05:00
|
|
|
a(href, ng-click="doDelete(comment)") #{translate("delete")}
|
2017-01-24 10:18:49 -05:00
|
|
|
| •
|
2017-02-17 10:28:53 -05:00
|
|
|
a(href, ng-click="cancelDelete(comment)") #{translate("cancel")}
|
2017-01-24 10:18:49 -05:00
|
|
|
|
|
|
|
.rp-loading(ng-if="threads[entry.thread_id].submitting")
|
2017-01-16 09:25:10 -05:00
|
|
|
i.fa.fa-spinner.fa-spin
|
2017-01-12 05:52:39 -05:00
|
|
|
.rp-comment-reply(ng-if="permissions.comment")
|
2016-11-16 10:47:05 -05:00
|
|
|
textarea.rp-comment-input(
|
2017-01-25 08:51:33 -05:00
|
|
|
expandable-text-area
|
2016-11-16 11:13:39 -05:00
|
|
|
ng-model="entry.replyContent"
|
|
|
|
ng-keypress="handleCommentReplyKeyPress($event);"
|
2016-11-18 10:08:16 -05:00
|
|
|
stop-propagation="click"
|
2017-02-21 08:19:46 -05:00
|
|
|
placeholder=translate("hit_enter_to_reply")
|
2016-11-16 10:47:05 -05:00
|
|
|
)
|
|
|
|
.rp-entry-actions
|
2017-01-16 12:06:57 -05:00
|
|
|
button.rp-entry-button(
|
|
|
|
ng-click="animateAndCallOnResolve();"
|
|
|
|
ng-if="permissions.comment && permissions.write"
|
|
|
|
)
|
2017-01-05 12:15:27 -05:00
|
|
|
i.fa.fa-inbox
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("resolve")}
|
2017-01-16 12:06:57 -05:00
|
|
|
button.rp-entry-button(
|
|
|
|
ng-click="onReply();"
|
|
|
|
ng-if="permissions.comment"
|
2017-01-16 12:14:06 -05:00
|
|
|
ng-disabled="!entry.replyContent.length"
|
|
|
|
)
|
2017-01-05 06:50:43 -05:00
|
|
|
i.fa.fa-reply
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("reply")}
|
2017-01-06 07:00:17 -05:00
|
|
|
|
|
|
|
script(type='text/ng-template', id='resolvedCommentEntryTemplate')
|
2017-01-06 10:24:33 -05:00
|
|
|
.rp-resolved-comment
|
2017-01-06 07:00:17 -05:00
|
|
|
div
|
2017-01-06 10:24:33 -05:00
|
|
|
.rp-resolved-comment-context
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("quoted_text_in")}
|
2017-01-10 07:16:58 -05:00
|
|
|
span.rp-resolved-comment-context-file {{ thread.docName }}
|
2017-01-13 10:37:24 -05:00
|
|
|
p.rp-resolved-comment-context-quote
|
|
|
|
span {{ thread.content | limitTo:(isCollapsed ? contentLimit : thread.content.length)}}
|
|
|
|
a.rp-collapse-toggle(
|
|
|
|
href
|
|
|
|
ng-if="needsCollapsing"
|
|
|
|
ng-click="toggleCollapse();"
|
2017-02-17 10:28:53 -05:00
|
|
|
) {{ isCollapsed ? '... (#{translate("show_all")})' : ' (#{translate("show_less")})' }}
|
2017-01-06 07:00:17 -05:00
|
|
|
.rp-comment(
|
|
|
|
ng-repeat="comment in thread.messages track by comment.id"
|
|
|
|
)
|
|
|
|
p.rp-comment-content
|
|
|
|
span.rp-entry-user(
|
|
|
|
style="color: hsl({{ comment.user.hue }}, 70%, 40%);"
|
|
|
|
ng-if="$first || comment.user.id !== thread.messages[$index - 1].user.id"
|
|
|
|
) {{ comment.user.name }}:
|
2017-02-13 04:05:48 -05:00
|
|
|
span(ng-bind-html="comment.content | linky:'_blank'")
|
2017-01-06 07:00:17 -05:00
|
|
|
.rp-entry-metadata
|
|
|
|
| {{ comment.timestamp | date : 'MMM d, y h:mm a' }}
|
2017-01-06 10:24:33 -05:00
|
|
|
.rp-comment.rp-comment-resolver
|
|
|
|
p.rp-comment-resolver-content
|
|
|
|
span.rp-entry-user(
|
|
|
|
style="color: hsl({{ thread.resolved_by_user.hue }}, 70%, 40%);"
|
|
|
|
) {{ thread.resolved_by_user.name }}:
|
2017-02-17 10:37:49 -05:00
|
|
|
| #{translate("mark_as_resolved")}.
|
2017-01-06 10:24:33 -05:00
|
|
|
.rp-entry-metadata
|
|
|
|
| {{ thread.resolved_at | date : 'MMM d, y h:mm a' }}
|
|
|
|
|
2017-01-12 05:52:39 -05:00
|
|
|
.rp-entry-actions(ng-if="permissions.comment && permissions.write")
|
2017-01-09 12:22:01 -05:00
|
|
|
a.rp-entry-button(
|
|
|
|
href
|
2017-01-10 07:16:58 -05:00
|
|
|
ng-click="onUnresolve({ 'threadId': thread.threadId });"
|
2017-01-09 12:22:01 -05:00
|
|
|
)
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("reopen")}
|
2017-01-24 10:18:49 -05:00
|
|
|
a.rp-entry-button(
|
|
|
|
href
|
|
|
|
ng-click="onDelete({ 'entryId': thread.entryId, 'docId': thread.docId, 'threadId': thread.threadId });"
|
|
|
|
)
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("delete")}
|
2017-01-06 07:00:17 -05:00
|
|
|
|
2016-11-16 11:13:39 -05:00
|
|
|
|
|
|
|
script(type='text/ng-template', id='addCommentEntryTemplate')
|
|
|
|
div
|
2016-11-16 11:21:24 -05:00
|
|
|
.rp-entry-callout.rp-entry-callout-add-comment
|
2016-11-16 11:13:39 -05:00
|
|
|
.rp-entry.rp-entry-add-comment(
|
|
|
|
ng-class="[ (state.isAdding ? 'rp-entry-adding-comment' : ''), (entry.focused ? 'rp-entry-focused' : '')]"
|
|
|
|
)
|
|
|
|
a.rp-add-comment-btn(
|
|
|
|
href
|
|
|
|
ng-if="!state.isAdding"
|
|
|
|
ng-click="startNewComment();"
|
|
|
|
)
|
|
|
|
i.fa.fa-comment
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("add_comment")}
|
2016-11-16 11:13:39 -05:00
|
|
|
div(ng-if="state.isAdding")
|
|
|
|
.rp-new-comment
|
|
|
|
textarea.rp-comment-input(
|
2017-01-25 08:51:33 -05:00
|
|
|
expandable-text-area
|
2016-11-16 11:13:39 -05:00
|
|
|
ng-model="state.content"
|
|
|
|
ng-keypress="handleCommentKeyPress($event);"
|
2017-02-21 08:19:46 -05:00
|
|
|
placeholder=translate("add_your_comment_here")
|
2017-01-16 09:17:56 -05:00
|
|
|
focus-on="comment:new:open"
|
2017-03-08 06:38:28 -05:00
|
|
|
ng-blur="submitNewComment($event)"
|
2016-11-16 11:13:39 -05:00
|
|
|
)
|
|
|
|
.rp-entry-actions
|
2017-03-08 06:38:28 -05:00
|
|
|
button.rp-entry-button.rp-entry-button-cancel(
|
2017-01-16 12:14:06 -05:00
|
|
|
ng-click="cancelNewComment();"
|
|
|
|
)
|
2016-11-16 11:13:39 -05:00
|
|
|
i.fa.fa-times
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("cancel")}
|
2017-01-16 12:14:06 -05:00
|
|
|
button.rp-entry-button(
|
|
|
|
ng-click="submitNewComment()"
|
|
|
|
ng-disabled="!state.content.length"
|
|
|
|
)
|
2016-11-16 11:13:39 -05:00
|
|
|
i.fa.fa-comment
|
2017-02-17 10:30:06 -05:00
|
|
|
| #{translate("comment")}
|
2017-01-05 12:15:27 -05:00
|
|
|
|
2017-05-02 11:15:40 -04:00
|
|
|
script(type='text/ng-template', id='bulkActionsEntryTemplate')
|
2017-05-04 06:30:05 -04:00
|
|
|
div(ng-if="nEntries > 1")
|
2017-05-02 11:15:40 -04:00
|
|
|
.rp-entry-callout.rp-entry-callout-bulk-actions
|
|
|
|
.rp-entry.rp-entry-bulk-actions
|
|
|
|
a.rp-bulk-actions-btn(
|
|
|
|
href
|
|
|
|
ng-click="bulkReject();"
|
|
|
|
)
|
|
|
|
i.fa.fa-times
|
|
|
|
| #{translate("reject_all")}
|
2017-05-02 12:02:30 -04:00
|
|
|
| ({{ nEntries }})
|
2017-05-02 11:15:40 -04:00
|
|
|
a.rp-bulk-actions-btn(
|
|
|
|
href
|
|
|
|
ng-click="bulkAccept();"
|
|
|
|
)
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("accept_all")}
|
2017-05-02 12:02:30 -04:00
|
|
|
| ({{ nEntries }})
|
2017-05-02 11:15:40 -04:00
|
|
|
|
2017-01-05 12:15:27 -05:00
|
|
|
script(type='text/ng-template', id='resolvedCommentsDropdownTemplate')
|
|
|
|
.resolved-comments
|
2017-01-11 05:53:46 -05:00
|
|
|
.resolved-comments-backdrop(
|
|
|
|
ng-class="{ 'resolved-comments-backdrop-visible' : state.isOpen }"
|
|
|
|
ng-click="state.isOpen = false"
|
|
|
|
)
|
2017-01-05 12:15:27 -05:00
|
|
|
a.resolved-comments-toggle(
|
|
|
|
href
|
2017-01-09 09:59:01 -05:00
|
|
|
ng-click="toggleOpenState();"
|
2017-02-20 05:51:06 -05:00
|
|
|
tooltip=translate("resolved_comments")
|
2017-01-12 07:37:44 -05:00
|
|
|
tooltip-placement="bottom"
|
|
|
|
tooltip-append-to-body="true"
|
|
|
|
)
|
2017-01-05 12:15:27 -05:00
|
|
|
i.fa.fa-inbox
|
|
|
|
.resolved-comments-dropdown(
|
|
|
|
ng-class="{ 'resolved-comments-dropdown-open' : state.isOpen }"
|
|
|
|
)
|
2017-01-09 09:59:01 -05:00
|
|
|
.rp-loading(ng-if="isLoading")
|
|
|
|
i.fa.fa-spinner.fa-spin
|
2017-01-11 06:25:18 -05:00
|
|
|
.resolved-comments-scroller(
|
2017-01-09 09:59:01 -05:00
|
|
|
ng-if="!isLoading"
|
2017-01-06 07:00:17 -05:00
|
|
|
)
|
|
|
|
resolved-comment-entry(
|
2017-01-12 07:44:54 -05:00
|
|
|
ng-repeat="thread in resolvedComments | orderBy:'resolved_at':true"
|
2017-01-06 07:00:17 -05:00
|
|
|
thread="thread"
|
2017-01-09 12:22:01 -05:00
|
|
|
on-unresolve="handleUnresolve(threadId);"
|
2017-01-24 10:18:49 -05:00
|
|
|
on-delete="handleDelete(entryId, docId, threadId);"
|
2017-01-12 05:52:39 -05:00
|
|
|
permissions="permissions"
|
2017-01-06 07:00:17 -05:00
|
|
|
)
|
2017-01-10 07:16:58 -05:00
|
|
|
.rp-loading(ng-if="!resolvedComments.length")
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("no_resolved_threads")}.
|
2017-01-06 07:00:17 -05:00
|
|
|
|
2017-02-01 11:52:18 -05:00
|
|
|
script(type="text/ng-template", id="trackChangesUpgradeModalTemplate")
|
|
|
|
.modal-header
|
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
|
|
|
) ×
|
2017-02-17 10:28:53 -05:00
|
|
|
h3 #{translate("upgrade_to_track_changes")}
|
2017-02-01 11:52:18 -05:00
|
|
|
.modal-body
|
|
|
|
.teaser-video-container
|
|
|
|
video.teaser-video(autoplay, loop)
|
|
|
|
source(src="/img/teasers/track-changes/teaser-track-changes.mp4", type="video/mp4")
|
|
|
|
img(src="/img/teasers/track-changes/teaser-track-changes.gif")
|
|
|
|
|
2017-02-17 10:28:53 -05:00
|
|
|
h4.teaser-title #{translate("see_changes_in_your_documents_live")}
|
2017-02-01 11:52:18 -05:00
|
|
|
|
|
|
|
p.small(ng-show="startedFreeTrial")
|
|
|
|
| #{translate("refresh_page_after_starting_free_trial")}
|
|
|
|
|
|
|
|
.row
|
|
|
|
.col-md-10.col-md-offset-1
|
|
|
|
ul.list-unstyled
|
|
|
|
li
|
|
|
|
i.fa.fa-check
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("track_any_change_in_real_time")}
|
2017-02-01 11:52:18 -05:00
|
|
|
|
|
|
|
li
|
|
|
|
i.fa.fa-check
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("review_your_peers_work")}
|
2017-02-01 11:52:18 -05:00
|
|
|
|
|
|
|
li
|
|
|
|
i.fa.fa-check
|
2017-02-17 10:28:53 -05:00
|
|
|
| #{translate("accept_or_reject_each_changes_individually")}
|
2017-02-01 11:52:18 -05:00
|
|
|
|
|
|
|
|
|
|
|
.row.text-center(ng-controller="FreeTrialModalController")
|
|
|
|
a.btn.btn-success(
|
|
|
|
href
|
2017-02-15 07:39:29 -05:00
|
|
|
ng-click="startFreeTrial('real-time-track-changes')"
|
2017-02-14 05:18:22 -05:00
|
|
|
ng-show="project.owner._id == user.id"
|
2017-02-17 10:28:53 -05:00
|
|
|
) #{translate("try_it_for_free")}
|
|
|
|
p(ng-show="project.owner._id != user.id"): strong #{translate("please_ask_the_project_owner_to_upgrade_to_track_changes")}
|
2017-02-01 11:52:18 -05:00
|
|
|
|
|
|
|
.modal-footer()
|
|
|
|
button.btn.btn-default(
|
|
|
|
ng-click="cancel()"
|
|
|
|
)
|
2017-02-13 10:19:56 -05:00
|
|
|
span #{translate("close")}
|
2017-05-09 11:06:19 -04:00
|
|
|
|
|
|
|
script(type="text/ng-template", id="bulkActionsModalTemplate")
|
|
|
|
.modal-header
|
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
|
|
|
) ×
|
|
|
|
h3 {{ isAccept ? '#{translate("accept_all")}' : '#{translate("reject_all")}' }}
|
|
|
|
.modal-body
|
|
|
|
p(ng-if="isAccept") #{translate("bulk_accept_confirm", { nChanges: "{{ nChanges }}"})}
|
|
|
|
p(ng-if="!isAccept") #{translate("bulk_reject_confirm", { nChanges: "{{ nChanges }}"})}
|
|
|
|
.modal-footer()
|
|
|
|
button.btn.btn-default(
|
|
|
|
ng-click="cancel()"
|
|
|
|
)
|
|
|
|
span #{translate("cancel")}
|
|
|
|
button.btn.btn-primary(
|
|
|
|
ng-click="confirm()"
|
|
|
|
)
|
|
|
|
span #{translate("ok")}
|