Skip to content

Commit

Permalink
Open the comments in new tab.Judgement link from comments user link
Browse files Browse the repository at this point in the history
  • Loading branch information
Autmaple committed Oct 11, 2018
1 parent 928ea59 commit 1246144
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ li {
padding-bottom: 0.5rem;
}

.vhead a {
.vhead a , .vhead #nick {
font-weight: bolder;
color: #333;
}
Expand Down
9 changes: 6 additions & 3 deletions views/comments.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@
<% for(var i = 0; i < comment_list.length; i++) { %>
<li class="vcard">
<div class="vhead">
<a href="<%= comment_list[i].get('link') %>" target="_blank"
rel="nofollow"> <%= comment_list[i].get('nick') %></a>
<% if(comment_list[i].get('link')) { %>
<a href="<%= comment_list[i].get('link') %>" target="_blank" rel="nofollow"> <%= comment_list[i].get('nick') %></a>
<% } else { %>
<span id="nick"><%= comment_list[i].get('nick') %></span>
<% } %>
<% var date = comment_list[i].get('createdAt') %>
<span class="spacer"></span><span class="vtime"><%= dateFormat(date) %></span>
Expand All @@ -34,7 +37,7 @@
<span class="spacer"></span>
<a class="red" href="/comments/delete?id=<%= comment_list[i].get('objectId') %>" rel="nofollow">删除</a>
<span class="spacer"></span>
<a class="blue" href="<%= process.env.SITE_URL+comment_list[i].get('url')+'#' + comment_list[i].get('objectId') %>" rel="nofollow">查看文章</a>
<a class="blue" href="<%= process.env.SITE_URL+comment_list[i].get('url')+'#' + comment_list[i].get('objectId') %>" target="_blank" rel="nofollow">查看评论</a>
<% if (comment_list[i].get('rid')) { %>
<% if(comment_list[i].get('isNotified')) { %>
<span class="spacer"></span><span class="vtime">通知已送达</span>
Expand Down

0 comments on commit 1246144

Please sign in to comment.