5b57ee760b
# Conflicts: # apps/common/main/resources/less/loadmask.less # apps/documenteditor/main/app/controller/Main.js # apps/documenteditor/main/app/view/FileMenuPanels.js # apps/documenteditor/main/resources/less/toolbar.less # apps/presentationeditor/main/app/controller/Main.js # apps/presentationeditor/main/app/controller/RightMenu.js # apps/presentationeditor/main/app/view/FileMenuPanels.js # apps/presentationeditor/main/app/view/SlideSettings.js # apps/spreadsheeteditor/main/app/controller/Main.js # apps/spreadsheeteditor/main/app/view/FileMenuPanels.js # apps/spreadsheeteditor/main/resources/less/toolbar.less
98 lines
4.6 KiB
Plaintext
98 lines
4.6 KiB
Plaintext
<div id="<%=id%>" class="user-comment-item">
|
|
|
|
<!-- comment block -->
|
|
|
|
<div class="user-name">
|
|
<div class="color" style="display: inline-block; background-color: <% if (usercolor!==null) { %><%=usercolor%><% } else { %> #cfcfcf <% } %>; " ></div><%= scope.getUserName(username) %>
|
|
</div>
|
|
<div class="user-date"><%=date%></div>
|
|
<% if (!editTextInPopover || hint) { %>
|
|
<div oo_editor_input="true" tabindex="-1" class="user-message user-select"><%=scope.pickLink(comment)%></div>
|
|
<% } else { %>
|
|
<div class="inner-edit-ct">
|
|
<textarea class="msg-reply user-select" maxlength="maxCommLength" spellcheck="false" <% if (!!dummy) { %> placeholder="textMention"<% } %>><%=comment%></textarea>
|
|
<% if (hideAddReply) { %>
|
|
<button class="btn normal dlg-btn primary btn-inner-edit" id="id-comments-change-popover">textAdd</button>
|
|
<% } else { %>
|
|
<button class="btn normal dlg-btn primary btn-inner-edit" id="id-comments-change-popover">textEdit</button>
|
|
<% } %>
|
|
<button class="btn normal dlg-btn btn-inner-close">textCancel</button>
|
|
</div>
|
|
<% } %>
|
|
|
|
<!-- replys elements -->
|
|
|
|
<% if (replys.length) { %>
|
|
<div class="reply-arrow img-commonctrl"></div>
|
|
<% _.each(replys, function (item) { %>
|
|
<div class="reply-item-ct">
|
|
<div class="user-name">
|
|
<div class="color" style="display: inline-block; background-color: <% if (item.get("usercolor")!==null) { %><%=item.get("usercolor")%><% } else { %> #cfcfcf <% } %>; " ></div><%= scope.getUserName(item.get("username")) %>
|
|
</div>
|
|
<div class="user-date"><%=item.get("date")%></div>
|
|
<% if (!item.get("editTextInPopover")) { %>
|
|
<div oo_editor_input="true" tabindex="-1" class="user-message user-select"><%=scope.pickLink(item.get("reply"))%></div>
|
|
<% if (!hint) { %>
|
|
<div class="btns-reply-ct">
|
|
<% if (item.get("editable")) { %>
|
|
<div class="btn-edit img-commonctrl" data-value="<%=item.get("id")%>"></div>
|
|
<%}%>
|
|
<% if (item.get("removable")) { %>
|
|
<div class="btn-delete img-commonctrl" data-value="<%=item.get("id")%>"></div>
|
|
<%}%>
|
|
</div>
|
|
<%}%>
|
|
<% } else { %>
|
|
<div class="inner-edit-ct">
|
|
<textarea class="msg-reply textarea-fix user-select" maxlength="maxCommLength" spellcheck="false"><%=item.get("reply")%></textarea>
|
|
<button class="btn normal dlg-btn primary btn-inner-edit btn-fix" id="id-comments-change-popover">textEdit</button>
|
|
<button class="btn normal dlg-btn btn-inner-close">textClose</button>
|
|
</div>
|
|
<% } %>
|
|
</div>
|
|
<% }); %>
|
|
|
|
<% } %>
|
|
|
|
<!-- add reply button -->
|
|
|
|
<% if (!showReplyInPopover && !hideAddReply && !hint) { %>
|
|
<% if (replys.length) { %>
|
|
<label class="user-reply" style="margin-left: 20px; margin-top: 5px;" role="presentation" tabindex="-1">textAddReply</label>
|
|
<% } else { %>
|
|
<label class="user-reply" role="presentation" tabindex="-1">textAddReply</label>
|
|
<% } %>
|
|
<% } %>
|
|
|
|
<!-- edit buttons -->
|
|
|
|
<% if (!editTextInPopover && !lock && !hint) { %>
|
|
<div class="edit-ct">
|
|
<% if (editable) { %>
|
|
<div class="btn-edit img-commonctrl"></div>
|
|
<% } %>
|
|
<% if (removable) { %>
|
|
<div class="btn-delete img-commonctrl"></div>
|
|
<% } %>
|
|
<div class="btn-resolve <% if (resolved) print('comment-resolved') %>" data-toggle="tooltip"></div>
|
|
</div>
|
|
<% } %>
|
|
|
|
<!-- reply -->
|
|
|
|
<% if (showReplyInPopover) { %>
|
|
<div class="reply-ct">
|
|
<textarea class="msg-reply user-select" placeholder="textAddReply" maxlength="maxCommLength" spellcheck="false"></textarea>
|
|
<button class="btn normal dlg-btn primary btn-reply" id="id-comments-change-popover">textReply</button>
|
|
<button class="btn normal dlg-btn btn-close">textClose</button>
|
|
</div>
|
|
<% } %>
|
|
|
|
<!-- locked user -->
|
|
|
|
<% if (lock) { %>
|
|
<div class="lock-area" style="cursor: default;"></div>
|
|
<div class="lock-author" style="cursor: default;"><%=lockuserid%></div>
|
|
<% } %>
|
|
|
|
</div> |