|
1 |
| -<div class="DV-annotation <%= orderClass %> <%= accessClass %> <% if (owns_note) { %>DV-ownsAnnotation<% } %>" style="top:<%= top %>px;" id="DV-annotation-<%= id %>" data-id="<%= id %>"> |
2 |
| - |
3 |
| - <div class="DV-annotationTab" style="top:<%= tabTop %>px;"> |
4 |
| - <div class="DV-annotationClose DV-trigger"> |
5 |
| - <% if (access == 'exclusive') { %> |
6 |
| - <div class="DV-annotationDraftDot DV-editHidden"></div> |
7 |
| - <% } %> |
8 |
| - </div> |
| 1 | +<div class="DV-annotationTab" style="top:<%= tabTop %>px;"> |
| 2 | + <div class="DV-annotationClose DV-trigger"> |
| 3 | + <% if (access == 'exclusive') { %> |
| 4 | + <div class="DV-annotationDraftDot DV-editHidden"></div> |
| 5 | + <% } %> |
9 | 6 | </div>
|
| 7 | +</div> |
10 | 8 |
|
11 |
| - <div class="DV-annotationRegion" style="margin-left:<%= excerptMarginLeft - 4 %>px; height:<%= excerptHeight %>px; width:<%= excerptWidth - 1 %>px;"> |
12 |
| - <div class="<%= accessClass %>"> |
13 |
| - <div class="DV-annotationEdge DV-annotationEdgeTop"></div> |
14 |
| - <div class="DV-annotationEdge DV-annotationEdgeRight"></div> |
15 |
| - <div class="DV-annotationEdge DV-annotationEdgeBottom"></div> |
16 |
| - <div class="DV-annotationEdge DV-annotationEdgeLeft"></div> |
17 |
| - <div class="DV-annotationCorner DV-annotationCornerTopLeft"></div> |
18 |
| - <div class="DV-annotationCorner DV-annotationCornerTopRight"></div> |
19 |
| - <div class="DV-annotationCorner DV-annotationCornerBottomLeft"></div> |
20 |
| - <div class="DV-annotationCorner DV-annotationCornerBottomRight"></div> |
21 |
| - </div> |
22 |
| - <div class="DV-annotationRegionExclusive"></div> |
| 9 | +<div class="DV-annotationRegion" style="margin-left:<%= excerptMarginLeft - 4 %>px; height:<%= excerptHeight %>px; width:<%= excerptWidth - 1 %>px;"> |
| 10 | + <div class="<%= accessClass %>"> |
| 11 | + <div class="DV-annotationEdge DV-annotationEdgeTop"></div> |
| 12 | + <div class="DV-annotationEdge DV-annotationEdgeRight"></div> |
| 13 | + <div class="DV-annotationEdge DV-annotationEdgeBottom"></div> |
| 14 | + <div class="DV-annotationEdge DV-annotationEdgeLeft"></div> |
| 15 | + <div class="DV-annotationCorner DV-annotationCornerTopLeft"></div> |
| 16 | + <div class="DV-annotationCorner DV-annotationCornerTopRight"></div> |
| 17 | + <div class="DV-annotationCorner DV-annotationCornerBottomLeft"></div> |
| 18 | + <div class="DV-annotationCorner DV-annotationCornerBottomRight"></div> |
23 | 19 | </div>
|
| 20 | + <div class="DV-annotationRegionExclusive"></div> |
| 21 | +</div> |
24 | 22 |
|
25 | 23 |
|
26 |
| - <div class="DV-annotationContent"> |
| 24 | +<div class="DV-annotationContent"> |
27 | 25 |
|
28 |
| - <div class="DV-annotationHeader DV-clearfix"> |
29 |
| - <div class="DV-pagination DV-editHidden"> |
30 |
| - <span class="DV-trigger DV-annotationPrevious" title="Previous Annotation">Previous</span> |
31 |
| - <span class="DV-trigger DV-annotationNext" title="Next Annotation">Next</span> |
32 |
| - </div> |
33 |
| - <div class="DV-annotationGoto DV-editHidden"><div class="DV-trigger">p. <%= pageNumber %></div></div> |
34 |
| - <div class="DV-annotationTitle DV-editHidden"><%= title %></div> |
35 |
| - <input class="DV-annotationTitleInput DV-editVisible" type="text" placeholder="Annotation Title" value="<%= title.replace(/"/g, '"') %>" /> |
36 |
| - <% if (access == 'exclusive') { %> |
37 |
| - <div class="DV-annotationDraftLabel DV-editHidden DV-interface">Draft</div> |
38 |
| - <% } else if (access == 'private') { %> |
39 |
| - <div class="DV-privateLock DV-editHidden" title="Private note"></div> |
40 |
| - <% } %> |
41 |
| - <span class="DV-permalink DV-editHidden" title="Link to this note"></span> |
42 |
| - <div class="DV-showEdit DV-editHidden <%= accessClass %>"></div> |
| 26 | + <div class="DV-annotationHeader DV-clearfix"> |
| 27 | + <div class="DV-pagination DV-editHidden"> |
| 28 | + <span class="DV-trigger DV-annotationPrevious" title="Previous Annotation">Previous</span> |
| 29 | + <span class="DV-trigger DV-annotationNext" title="Next Annotation">Next</span> |
43 | 30 | </div>
|
| 31 | + <div class="DV-annotationGoto DV-editHidden"><div class="DV-trigger">p. <%= pageNumber %></div></div> |
| 32 | + <div class="DV-annotationTitle DV-editHidden"><%= title %></div> |
| 33 | + <input class="DV-annotationTitleInput DV-editVisible" type="text" placeholder="Annotation Title" value="<%= title.replace(/"/g, '"') %>" /> |
| 34 | + <% if (access == 'exclusive') { %> |
| 35 | + <div class="DV-annotationDraftLabel DV-editHidden DV-interface">Draft</div> |
| 36 | + <% } else if (access == 'private') { %> |
| 37 | + <div class="DV-privateLock DV-editHidden" title="Private note"></div> |
| 38 | + <% } %> |
| 39 | + <span class="DV-permalink DV-editHidden" title="Link to this note"></span> |
| 40 | + <div class="DV-showEdit DV-editHidden <%= accessClass %>"></div> |
| 41 | + </div> |
44 | 42 |
|
45 | 43 |
|
46 |
| - <div class="DV-annotationExcerpt" style="height:<%= excerptHeight %>px;"> |
47 |
| - <div class="DV-annotationExcerptImageTop" style="height:<%= excerptHeight %>px; width:<%= excerptWidth %>px;left:<%= excerptMarginLeft - 1 %>px;"> |
| 44 | + <div class="DV-annotationExcerpt" style="height:<%= excerptHeight %>px;"> |
| 45 | + <div class="DV-annotationExcerptImageTop" style="height:<%= excerptHeight %>px; width:<%= excerptWidth %>px;left:<%= excerptMarginLeft - 1 %>px;"> |
48 | 46 |
|
49 |
| - <img class="DV-img" src="<%= image %>" style="left:<%= -(excerptMarginLeft + 1) %>px; top:-<%= imageTop %>px;" width="<%= imageWidth %>" /> |
| 47 | + <img class="DV-img" src="<%= image %>" style="left:<%= -(excerptMarginLeft + 1) %>px; top:-<%= imageTop %>px;" width="<%= imageWidth %>" /> |
50 | 48 |
|
51 |
| - </div> |
52 |
| - <div class="DV-annotationExcerptImage" style="height:<%= excerptHeight %>px;"> |
53 |
| - <img class="DV-img" src="<%= image %>" style="top:-<%= imageTop %>px;" width="<%= imageWidth %>" /> |
54 |
| - </div> |
55 | 49 | </div>
|
56 |
| - |
57 |
| - <div class="DV-annotationBody DV-editHidden"> |
58 |
| - <%= text %> |
| 50 | + <div class="DV-annotationExcerptImage" style="height:<%= excerptHeight %>px;"> |
| 51 | + <img class="DV-img" src="<%= image %>" style="top:-<%= imageTop %>px;" width="<%= imageWidth %>" /> |
59 | 52 | </div>
|
60 |
| - <textarea class="DV-annotationTextArea DV-editVisible" style="width: <%= bWidth %>px;"><%= text %></textarea> |
| 53 | + </div> |
61 | 54 |
|
62 |
| - <div class="DV-annotationMeta <%= accessClass %>"> |
63 |
| - <% if (author) { %> |
64 |
| - <div class="DV-annotationAuthor DV-interface DV-editHidden"> |
65 |
| - Annotated by: <%= author %><% if (author_organization) { %>, <i><%= author_organization %></i><% } %> |
66 |
| - </div> |
67 |
| - <% } %> |
68 |
| - <% if (access == 'exclusive') { %> |
69 |
| - <div class="DV-annotationWarning DV-interface DV-editHidden"> |
70 |
| - This draft is only visible to you and collaborators. |
71 |
| - </div> |
72 |
| - <% } else if (access == 'private') { %> |
73 |
| - <div class="DV-annotationWarning DV-interface DV-editHidden"> |
74 |
| - This private note is only visible to you. |
75 |
| - </div> |
76 |
| - <% } %> |
77 |
| - <div class="DV-annotationEditControls DV-editVisible"> |
78 |
| - <div class="DV-clearfix"> |
79 |
| - <div class="DV-minibutton warn DV-deleteAnnotation float_left">Delete</div> |
80 |
| - <div class="DV-minibutton default DV-saveAnnotation float_right"> |
81 |
| - <% if (access == 'exclusive') { %> |
82 |
| - Publish |
83 |
| - <% } else { %> |
84 |
| - Save |
85 |
| - <% } %> |
86 |
| - </div> |
87 |
| - <% if (access == 'public' || access == 'exclusive') { %> |
88 |
| - <div class="DV-minibutton DV-saveAnnotationDraft float_right">Save as Draft</div> |
| 55 | + <div class="DV-annotationBody DV-editHidden"> |
| 56 | + <%= text %> |
| 57 | + </div> |
| 58 | + <textarea class="DV-annotationTextArea DV-editVisible" style="width: <%= bWidth %>px;"><%= text %></textarea> |
| 59 | + |
| 60 | + <div class="DV-annotationMeta <%= accessClass %>"> |
| 61 | + <% if (author) { %> |
| 62 | + <div class="DV-annotationAuthor DV-interface DV-editHidden"> |
| 63 | + Annotated by: <%= author %><% if (author_organization) { %>, <i><%= author_organization %></i><% } %> |
| 64 | + </div> |
| 65 | + <% } %> |
| 66 | + <% if (access == 'exclusive') { %> |
| 67 | + <div class="DV-annotationWarning DV-interface DV-editHidden"> |
| 68 | + This draft is only visible to you and collaborators. |
| 69 | + </div> |
| 70 | + <% } else if (access == 'private') { %> |
| 71 | + <div class="DV-annotationWarning DV-interface DV-editHidden"> |
| 72 | + This private note is only visible to you. |
| 73 | + </div> |
| 74 | + <% } %> |
| 75 | + <div class="DV-annotationEditControls DV-editVisible"> |
| 76 | + <div class="DV-clearfix"> |
| 77 | + <div class="DV-minibutton warn DV-deleteAnnotation float_left">Delete</div> |
| 78 | + <div class="DV-minibutton default DV-saveAnnotation float_right"> |
| 79 | + <% if (access == 'exclusive') { %> |
| 80 | + Publish |
| 81 | + <% } else { %> |
| 82 | + Save |
89 | 83 | <% } %>
|
90 |
| - <div class="DV-minibutton DV-cancelEdit float_right">Cancel</div> |
91 | 84 | </div>
|
| 85 | + <% if (access == 'public' || access == 'exclusive') { %> |
| 86 | + <div class="DV-minibutton DV-saveAnnotationDraft float_right">Save as Draft</div> |
| 87 | + <% } %> |
| 88 | + <div class="DV-minibutton DV-cancelEdit float_right">Cancel</div> |
92 | 89 | </div>
|
93 | 90 | </div>
|
94 | 91 | </div>
|
|
0 commit comments