#1902: Add forum/comment creator data
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<article class="comment" data-post-id="<%= comment.post_id %>" data-comment-id="<%= comment.id %>" data-score="<%= comment.score %>">
|
||||
<article class="comment" data-post-id="<%= comment.post_id %>" data-comment-id="<%= comment.id %>" data-score="<%= comment.score %>" data-creator="<%= comment.creator.name %>">
|
||||
<div class="author">
|
||||
<h1><%= link_to_user comment.creator %></h1>
|
||||
<p>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<% if CurrentUser.is_janitor? || !forum_post.is_deleted? %>
|
||||
<article id="forum_post_<%= forum_post.id %>" data-forum-post-id="<%= forum_post.id %>">
|
||||
<article id="forum_post_<%= forum_post.id %>" data-forum-post-id="<%= forum_post.id %>" data-creator="<%= forum_post.creator.name %>">
|
||||
<div class="author">
|
||||
<h4>
|
||||
<%= link_to_user forum_post.creator %>
|
||||
|
||||
Reference in New Issue
Block a user