Add h-entry microformat classes
This commit is contained in:
parent
411dcaa32e
commit
f93afdbe5f
|
@ -1,7 +1,7 @@
|
|||
<div class="status">
|
||||
<div class="status h-entry">
|
||||
<div class="status-meta">
|
||||
<h2 class="status-author-nickname">
|
||||
<a href="<%= local_actor_link(@author) %>">
|
||||
<a href="<%= local_actor_link(@author) %>" class="p-author">
|
||||
<%= @author.data["preferredUsername"] %>
|
||||
</a>
|
||||
</h2>
|
||||
|
@ -11,11 +11,11 @@
|
|||
</a>
|
||||
</h3>
|
||||
<p class="status-meta-right">
|
||||
<span><%= display_timestamp(@note["published"]) %></span>
|
||||
<a href="<%= @note["url"] || @note["id"] %>" class="status-permalink">Permalink</a>
|
||||
<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">
|
||||
<div class="status-content e-content">
|
||||
<%= @note["content"] %>
|
||||
</div>
|
||||
<div class="status-actions">
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
<h1><%= @actor.data["preferredUsername"] %></h1>
|
||||
<div class="h-card">
|
||||
<h1 class="p-name"><%= @actor.data["preferredUsername"] %></h1>
|
||||
<h2>
|
||||
<%= if @actor.local do %>
|
||||
<%= display_username(@actor) %>
|
||||
<% else %>
|
||||
<a href="<%= @actor.ap_id %>">
|
||||
<a href="<%= @actor.ap_id %>" class="p-nickname u-url">
|
||||
<%= display_username(@actor) %>
|
||||
</a>
|
||||
<% end %>
|
||||
</h2>
|
||||
<p><%= @actor.data["summary"] %></p>
|
||||
</div>
|
||||
|
||||
<div class="actor-actions">
|
||||
<%= unless @current_user.actor.ap_id == @actor.ap_id do %>
|
||||
|
|
Loading…
Reference in New Issue