From f7eb7dd48100c9f084bea7318d8cb29f1b5f0271 Mon Sep 17 00:00:00 2001 From: Alexei Koshelev Date: Thu, 12 Oct 2023 18:02:57 +0300 Subject: [PATCH] Revert "[SSE DE PE] Change template for user avatar" This reverts commit 673b53e3bf4190886aae588c292bca28569354b3. --- .../main/lib/template/Comments.template | 24 ++++---------- .../lib/template/CommentsPopover.template | 32 ++++++------------- .../template/ReviewChangesPopover.template | 14 +++----- apps/common/main/lib/view/Chat.js | 10 ++---- apps/common/main/lib/view/Header.js | 24 ++++++-------- apps/common/main/resources/less/chat.less | 13 ++------ apps/common/main/resources/less/comments.less | 12 ++----- apps/common/main/resources/less/header.less | 25 +++------------ 8 files changed, 40 insertions(+), 114 deletions(-) diff --git a/apps/common/main/lib/template/Comments.template b/apps/common/main/lib/template/Comments.template index 5b0fae5901..0c747184ec 100644 --- a/apps/common/main/lib/template/Comments.template +++ b/apps/common/main/lib/template/Comments.template @@ -4,19 +4,13 @@
-
- style="<% if (usercolor!==null) { %> border-color:<%=usercolor%>; border-style:solid;<% }%>" + style="background-image: url(<%=avatar%>); <% if (usercolor!==null) { %> border-color:<%=usercolor%>; border-style:solid;<% }%>" <% } else { %> style="background-color: <% if (usercolor!==null) { %> <%=usercolor%> <% } else { %> #cfcfcf <% }%>;" <% } %> - > - <% if (avatar) { %> - - <% } else { %> - <%=initials%> - <% } %> -
+ ><% if (!avatar) { %><%=initials%><% } %>
<%= scope.getEncodedName(parsedName) %>
<%=date%>
@@ -46,19 +40,13 @@ <% } %>
style="padding-bottom: 0;" <% } %>;>