mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Pull callouts into entries directives.
This commit is contained in:
parent
296fd9fe26
commit
706b0793ab
1 changed files with 5 additions and 4 deletions
|
@ -10,10 +10,6 @@
|
||||||
.rp-entry-wrapper(
|
.rp-entry-wrapper(
|
||||||
ng-repeat="(entry_id, entry) in reviewPanel.entries[editor.open_doc_id]"
|
ng-repeat="(entry_id, entry) in reviewPanel.entries[editor.open_doc_id]"
|
||||||
)
|
)
|
||||||
.rp-entry-callout(
|
|
||||||
ng-class="'rp-entry-callout-' + entry.type"
|
|
||||||
)
|
|
||||||
|
|
||||||
div(ng-if="entry.type === 'insert' || entry.type === 'delete'")
|
div(ng-if="entry.type === 'insert' || entry.type === 'delete'")
|
||||||
change-entry(
|
change-entry(
|
||||||
entry="entry"
|
entry="entry"
|
||||||
|
@ -161,6 +157,9 @@
|
||||||
|
|
||||||
script(type='text/ng-template', id='changeEntryTemplate')
|
script(type='text/ng-template', id='changeEntryTemplate')
|
||||||
div
|
div
|
||||||
|
.rp-entry-callout(
|
||||||
|
ng-class="'rp-entry-callout-' + entry.type"
|
||||||
|
)
|
||||||
.rp-entry-indicator(
|
.rp-entry-indicator(
|
||||||
ng-switch="entry.type"
|
ng-switch="entry.type"
|
||||||
ng-class="{ 'rp-entry-indicator-focused': entry.focused }"
|
ng-class="{ 'rp-entry-indicator-focused': entry.focused }"
|
||||||
|
@ -194,6 +193,7 @@ 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
|
||||||
.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();"
|
||||||
|
@ -229,6 +229,7 @@ script(type='text/ng-template', id='commentEntryTemplate')
|
||||||
|
|
||||||
script(type='text/ng-template', id='addCommentEntryTemplate')
|
script(type='text/ng-template', id='addCommentEntryTemplate')
|
||||||
div
|
div
|
||||||
|
.rp-entry-callout.rp-entry-callout-add-comment
|
||||||
.rp-entry-indicator(
|
.rp-entry-indicator(
|
||||||
ng-if="!commentState.adding"
|
ng-if="!commentState.adding"
|
||||||
ng-click="startNewComment(); onIndicatorClick();"
|
ng-click="startNewComment(); onIndicatorClick();"
|
||||||
|
|
Loading…
Reference in a new issue