Add h-entry microformat classes

This commit is contained in:
Shadowfacts 2020-05-20 17:45:12 -04:00
parent 411dcaa32e
commit f93afdbe5f
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
2 changed files with 12 additions and 14 deletions

View File

@ -1,7 +1,7 @@
<div class="status"> <div class="status h-entry">
<div class="status-meta"> <div class="status-meta">
<h2 class="status-author-nickname"> <h2 class="status-author-nickname">
<a href="<%= local_actor_link(@author) %>"> <a href="<%= local_actor_link(@author) %>" class="p-author">
<%= @author.data["preferredUsername"] %> <%= @author.data["preferredUsername"] %>
</a> </a>
</h2> </h2>
@ -11,11 +11,11 @@
</a> </a>
</h3> </h3>
<p class="status-meta-right"> <p class="status-meta-right">
<span><%= display_timestamp(@note["published"]) %></span> <time datetime="<%= @note["published"] %>" class="dt-published"><%= display_timestamp(@note["published"]) %></time>
<a href="<%= @note["url"] || @note["id"] %>" class="status-permalink">Permalink</a> <a href="<%= @note["url"] || @note["id"] %>" class="status-permalink u-url">Permalink</a>
</p> </p>
</div> </div>
<div class="status-content"> <div class="status-content e-content">
<%= @note["content"] %> <%= @note["content"] %>
</div> </div>
<div class="status-actions"> <div class="status-actions">

View File

@ -1,14 +1,12 @@
<h1><%= @actor.data["preferredUsername"] %></h1> <div class="h-card">
<h2> <h1 class="p-name"><%= @actor.data["preferredUsername"] %></h1>
<%= if @actor.local do %> <h2>
<%= display_username(@actor) %> <a href="<%= @actor.ap_id %>" class="p-nickname u-url">
<% else %>
<a href="<%= @actor.ap_id %>">
<%= display_username(@actor) %> <%= display_username(@actor) %>
</a> </a>
<% end %> </h2>
</h2> <p><%= @actor.data["summary"] %></p>
<p><%= @actor.data["summary"] %></p> </div>
<div class="actor-actions"> <div class="actor-actions">
<%= unless @current_user.actor.ap_id == @actor.ap_id do %> <%= unless @current_user.actor.ap_id == @actor.ap_id do %>