#1902: Add forum/comment creator data

This commit is contained in:
Toks
2013-08-07 20:15:35 -04:00
parent 6034420e3b
commit 11984fe8ed
2 changed files with 2 additions and 2 deletions

View File

@@ -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>

View File

@@ -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 %>