forked from forem/forem
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change DevComment#render to utilize html.erb (forem#2554) [ci skip]
- Loading branch information
1 parent
e90bb2b
commit 96a0235
Showing
3 changed files
with
43 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div class="liquid-comment"> | ||
<div class="details"> | ||
<a href="/<%= comment.user.username %>"> | ||
<img class="profile-pic" src="<%= ProfileImage.new(comment.user).get(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 %> | ||
<div class="comment-date" data-published-timestamp="<%= comment.decorate.published_timestamp %>"> | ||
<a href="<%= comment.path %>"><%= comment.readable_publish_date %></a> | ||
</div> | ||
</div> | ||
<div class="body"> | ||
<%= comment.processed_html.html_safe %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters