* Starting to dig * Stil figuring out * Complete implementation; remains tests * Modify comment_tag specs
30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
<div class="liquid-comment">
|
|
<% if comment %>
|
|
<div class="details">
|
|
<a href="/<%= comment.user.username %>">
|
|
<img class="profile-pic" src="<%= Images::Profile.call(comment.user.profile_image_url, length: 50) %>" alt="<%= comment.user.username %> profile image" />
|
|
</a>
|
|
<a href="/<%= comment.user.username %>">
|
|
<span class="comment-username"><%= comment.user.name %></span>
|
|
</a>
|
|
<% if comment.user.twitter_username.present? %>
|
|
<a href="https://twitter.com/<%= comment.user.twitter_username %>">
|
|
<img src="/assets/twitter-logo.svg" class="icon-img" alt="twitter" />
|
|
</a>
|
|
<% end %>
|
|
<% if comment.user.github_username.present? %>
|
|
<a href="https://github.com/<%= comment.user.github_username %>">
|
|
<img src="/assets/github-logo.svg" class="icon-img" alt="github" />
|
|
</a>
|
|
<% end %>
|
|
<%= render "comments/comment_date", decorated_comment: comment.decorate %>
|
|
</div>
|
|
<div class="body">
|
|
<%= comment.safe_processed_html %>
|
|
</div>
|
|
<% else %>
|
|
<div class="body">
|
|
<p>Comment Not Found</p>
|
|
</div>
|
|
<% end %>
|
|
</div>
|