This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
bdfr-browser/priv/templates/http/_comment.eex

23 lines
876 B
Elixir
Raw Normal View History

2023-08-14 11:07:38 +00:00
<div style="padding-left: <%= level * 5 %>px; margin-bottom: 2px;">
2023-05-17 22:13:55 +00:00
<div class="card">
2023-08-14 11:07:38 +00:00
<div class="card-body" style="padding: 8px;">
<blockquote class="blockquote mb-0" style="font-size: 1rem;">
2023-05-17 22:13:55 +00:00
<%= if comment.author == "AutoModerator" do %>
<p><small>Hidden AutoModerator comment</small></p>
<% else %>
<%= BdfrBrowser.RenderUtils.comment(comment.body) %>
2023-05-17 22:13:55 +00:00
<% end %>
<footer class="blockquote-footer">
<a href="/user/<%= comment.author %>"><%= comment.author %></a>,
2023-08-13 23:18:55 +00:00
<small><%= DateTime.to_iso8601(comment.posted_at) %></small>
2023-05-17 22:13:55 +00:00
</footer>
</blockquote>
</div>
</div>
</div>
<%= for reply <- BdfrBrowser.Comment.fetch_children!(comment) do %>
2023-05-17 22:13:55 +00:00
<%= EEx.eval_file(comment_template, comment: reply, level: level + 1, comment_template: comment_template) %>
<% end %>