Skip to content

Commit

Permalink
🎨 匿名机制 someone 改进 #31
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jun 23, 2020
1 parent 1d59a7f commit b846a40
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
12 changes: 5 additions & 7 deletions src/main/resources/skins/classic/article.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,14 @@
<ul>
<li>
<div class="fn-flex">
<#if article.articleOfferedComment.commentAnonymous == 0>
<a rel="nofollow" href="${servePath}/member/${article.articleOfferedComment.commentAuthorName}"></#if>
<a rel="nofollow" href="${servePath}/member/${article.articleOfferedComment.commentAuthorName}">
<div class="avatar tooltipped tooltipped-se"
aria-label="${article.articleOfferedComment.commentAuthorName}" style="background-image:url('${article.articleOfferedComment.commentAuthorThumbnailURL}')"></div>
<#if article.articleOfferedComment.commentAnonymous == 0></a></#if>
</a>
<div class="fn-flex-1">
<div class="fn-clear comment-info ft-smaller">
<span class="fn-left">
<#if article.articleOfferedComment.commentAnonymous == 0><a rel="nofollow" href="${servePath}/member/${article.articleOfferedComment.commentAuthorName}" class="ft-gray"></#if><span class="ft-gray">${article.articleOfferedComment.commentAuthorName}</span><#if article.articleOfferedComment.commentAnonymous == 0></a></#if>
<a rel="nofollow" href="${servePath}/member/${article.articleOfferedComment.commentAuthorName}" class="ft-gray"><span class="ft-gray">${article.articleOfferedComment.commentAuthorName}</span></a>
<span class="ft-fade">• ${article.articleOfferedComment.timeAgo}</span>

<#if article.articleOfferedComment.rewardedCnt gt 0>
Expand Down Expand Up @@ -235,11 +234,10 @@
<#list article.articleNiceComments as comment>
<li>
<div class="fn-flex">
<#if comment.commentAnonymous == 0>
<a rel="nofollow" href="${servePath}/member/${comment.commentAuthorName}"></#if>
<a rel="nofollow" href="${servePath}/member/${comment.commentAuthorName}">
<div class="avatar tooltipped tooltipped-se"
aria-label="${comment.commentAuthorName}" style="background-image:url('${comment.commentAuthorThumbnailURL}')"></div>
<#if comment.commentAnonymous == 0></a></#if>
</a>
<div class="fn-flex-1">
<div class="fn-clear comment-info ft-smaller">
<span class="fn-left">
Expand Down
7 changes: 3 additions & 4 deletions src/main/resources/skins/classic/common/comment.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@
class="<#if comment.commentStatus == 1>cmt-shield</#if><#if comment.commentNice || comment.commentQnAOffered == 1> cmt-perfect</#if><#if comment.commentReplyCnt != 0> cmt-selected</#if>">
<div class="fn-flex">
<div>
<#if comment.commentAnonymous == 0>
<a rel="nofollow" href="${servePath}/member/${comment.commentAuthorName}"></#if>
<a rel="nofollow" href="${servePath}/member/${comment.commentAuthorName}">
<div class="avatar tooltipped tooltipped-se"
aria-label="${comment.commentAuthorName}" style="background-image:url('${comment.commentAuthorThumbnailURL}')"></div>
<#if comment.commentAnonymous == 0></a></#if>
</a>
</div>
<div class="fn-flex-1">
<div class="comment-get-comment list"></div>
<div class="fn-clear comment-info">
<span class="fn-left ft-smaller">
<#if comment.commentAnonymous == 0><a rel="nofollow" href="${servePath}/member/${comment.commentAuthorName}" class="ft-gray"></#if><span class="ft-gray">${comment.commentAuthorName}</span><#if comment.commentAnonymous == 0></a></#if>
<a rel="nofollow" href="${servePath}/member/${comment.commentAuthorName}" class="ft-gray"><span class="ft-gray">${comment.commentAuthorName}</span></a>
<span class="ft-fade">• ${comment.timeAgo}</span>
<#if 0 == comment.commenter.userUAStatus><span class="cmt-via ft-fade hover-show fn-hidden" data-ua="${comment.commentUA}"></span></#if>
</span>
Expand Down
7 changes: 3 additions & 4 deletions src/main/resources/skins/mobile/common/comment.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@
class="<#if comment.commentStatus == 1>cmt-shield</#if><#if comment.commentNice || comment.commentQnAOffered == 1> cmt-perfect</#if><#if comment.commentReplyCnt != 0> cmt-selected</#if>">
<div class="fn-flex">
<div>
<#if comment.commentAnonymous == 0>
<a rel="nofollow" href="${servePath}/member/${comment.commentAuthorName}"></#if>
<a rel="nofollow" href="${servePath}/member/${comment.commentAuthorName}">
<div class="avatar tooltipped tooltipped-se"
aria-label="${comment.commentAuthorName}" style="background-image:url('${comment.commentAuthorThumbnailURL}')"></div>
<#if comment.commentAnonymous == 0></a></#if>
</a>
</div>
<div class="fn-flex-1">
<div class="comment-get-comment list"></div>
<div class="fn-clear comment-info">
<span class="fn-left ft-smaller">
<#if comment.commentAnonymous == 0><a rel="nofollow" href="${servePath}/member/${comment.commentAuthorName}" class="ft-gray"></#if><span class="ft-gray">${comment.commentAuthorName}</span><#if comment.commentAnonymous == 0></a></#if>
<a rel="nofollow" href="${servePath}/member/${comment.commentAuthorName}" class="ft-gray"><span class="ft-gray">${comment.commentAuthorName}</span></a>
<span class="ft-fade">• ${comment.timeAgo}</span>
<#if 0 == comment.commenter.userUAStatus><span class="cmt-via ft-fade hover-show fn-hidden" data-ua="${comment.commentUA}"></span></#if>
</span>
Expand Down

0 comments on commit b846a40

Please sign in to comment.