clacks/lib/clacks_web/templates/frontend/_status.html.eex

33 lines
1.1 KiB
Elixir
Raw Normal View History

2020-05-24 20:26:10 +00:00
<div class="<%= assigns[:class] || "status h-entry" %>">
2020-04-25 16:30:47 +00:00
<div class="status-meta">
<div class="p-author h-card">
<h2 class="status-author-nickname">
<a href="<%= local_actor_link(@author) %>">
<%= display_name(@author) %>
</a>
</h2>
<h3 class="status-author-username">
<a href="<%= @author.ap_id %>" class="p-name u-url">
<%= display_username(@author) %>
</a>
</h3>
</div>
2020-04-25 16:30:47 +00:00
<p class="status-meta-right">
<time datetime="<%= iso_datetime(@note["published"]) %>" class="dt-published"><%= display_timestamp(@note["published"]) %></time>
2020-05-20 21:45:12 +00:00
<a href="<%= @note["url"] || @note["id"] %>" class="status-permalink u-url">Permalink</a>
2020-04-25 16:30:47 +00:00
</p>
</div>
2020-05-20 21:45:12 +00:00
<div class="status-content e-content">
<%= unless is_nil(@conn.assigns[:user]) do %>
<%= render_status_content(@status) %>
<% else %>
<%= raw(@note["content"]) %>
<% end %>
</div>
<%= unless is_nil(@conn.assigns[:user]) do %>
<div class="status-actions">
<a href="<%= Routes.frontend_path(@conn, :reply, @status.id) %>">Reply</a>
</div>
<% end %>
</div>