From f93afdbe5f5c4a55d4f0b0a6f50fcca86a698144 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 20 May 2020 17:45:12 -0400 Subject: [PATCH] Add h-entry microformat classes --- .../templates/frontend/_status.html.eex | 10 +++++----- .../templates/frontend/profile.html.eex | 16 +++++++--------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/lib/clacks_web/templates/frontend/_status.html.eex b/lib/clacks_web/templates/frontend/_status.html.eex index 20886b3..f4e3cc7 100644 --- a/lib/clacks_web/templates/frontend/_status.html.eex +++ b/lib/clacks_web/templates/frontend/_status.html.eex @@ -1,7 +1,7 @@ -
+

- + <%= @author.data["preferredUsername"] %>

@@ -11,11 +11,11 @@

- <%= display_timestamp(@note["published"]) %> - " class="status-permalink">Permalink + + " class="status-permalink u-url">Permalink

-
+
<%= @note["content"] %>
diff --git a/lib/clacks_web/templates/frontend/profile.html.eex b/lib/clacks_web/templates/frontend/profile.html.eex index 48d83d8..f013726 100644 --- a/lib/clacks_web/templates/frontend/profile.html.eex +++ b/lib/clacks_web/templates/frontend/profile.html.eex @@ -1,14 +1,12 @@ -

<%= @actor.data["preferredUsername"] %>

-

- <%= if @actor.local do %> - <%= display_username(@actor) %> - <% else %> - +

+

<%= @actor.data["summary"] %>

+
<%= unless @current_user.actor.ap_id == @actor.ap_id do %>