30 lines
1.0 KiB
Elixir
30 lines
1.0 KiB
Elixir
<div class="status h-entry">
|
|
<%= if assigns[:announcer] do %>
|
|
<p class="status-announcer">
|
|
Announced by <a href="<%= local_actor_link(@announcer) %>"><%= @announcer.data["preferredUsername"] %></a>
|
|
</p>
|
|
<% end %>
|
|
<div class="status-meta">
|
|
<h2 class="status-author-nickname">
|
|
<a href="<%= local_actor_link(@author) %>" class="p-author">
|
|
<%= @author.data["preferredUsername"] %>
|
|
</a>
|
|
</h2>
|
|
<h3 class="status-author-username">
|
|
<a href="<%= @author.ap_id %>">
|
|
<%= display_username(@author) %>
|
|
</a>
|
|
</h3>
|
|
<p class="status-meta-right">
|
|
<time datetime="<%= @note["published"] %>" class="dt-published"><%= display_timestamp(@note["published"]) %></time>
|
|
<a href="<%= @note["url"] || @note["id"] %>" class="status-permalink u-url">Permalink</a>
|
|
</p>
|
|
</div>
|
|
<div class="status-content e-content">
|
|
<%= raw(@note["content"]) %>
|
|
</div>
|
|
<div class="status-actions">
|
|
<a href="<%= Routes.frontend_path(@conn, :reply, @status.id) %>">Reply</a>
|
|
</div>
|
|
</div>
|