projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
69ecc39
)
static_fe: Add microformats2 classes
author
Karol Kosek
<krkk@krkk.ct8.pl>
Wed, 22 Apr 2020 14:02:40 +0000
(16:02 +0200)
committer
Karol Kosek
<krkk@krkk.ct8.pl>
Wed, 22 Apr 2020 14:02:40 +0000
(16:02 +0200)
lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex
patch
|
blob
|
history
lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex
patch
|
blob
|
history
lib/pleroma/web/templates/static_fe/static_fe/_user_card.html.eex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex
b/lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex
index 7e04e9550f20593fe3bfac5c24d25b85c15271c3..4853e7f4b0d69f9b02b4ca244ef0f6ea2d1f6724 100644
(file)
--- a/
lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex
+++ b/
lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex
@@
-1,8
+1,8
@@
<%= case @mediaType do %>
<% "audio" -> %>
<%= case @mediaType do %>
<% "audio" -> %>
-<audio src="<%= @url %>" controls="controls"></audio>
+<audio
class="u-audio"
src="<%= @url %>" controls="controls"></audio>
<% "video" -> %>
<% "video" -> %>
-<video src="<%= @url %>" controls="controls"></video>
+<video
class="u-video"
src="<%= @url %>" controls="controls"></video>
<% _ -> %>
<% _ -> %>
-<img src="<%= @url %>" alt="<%= @name %>" title="<%= @name %>">
+<img
class="u-photo"
src="<%= @url %>" alt="<%= @name %>" title="<%= @name %>">
<% end %>
<% end %>
diff --git
a/lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex
b/lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex
index df5e5eeddb3172d747d05299b0a5e065ce332e65..df0244795618f35ccf936a368b2878db42f868a8 100644
(file)
--- a/
lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex
+++ b/
lib/pleroma/web/templates/static_fe/static_fe/_notice.html.eex
@@
-1,12
+1,16
@@
-<div class="activity" <%= if @selected do %> id="selected" <% end %>>
+<div class="activity
h-entry
" <%= if @selected do %> id="selected" <% end %>>
<p class="pull-right">
<p class="pull-right">
- <%= link format_date(@published), to: @link, class: "activity-link" %>
+ <a class="activity-link u-url u-uid" href="<%= @link %>">
+ <time class="dt-published" datetime="<%= @published %>">
+ <%= format_date(@published) %>
+ </time>
+ </a>
</p>
<%= render("_user_card.html", %{user: @user}) %>
<div class="activity-content">
<%= if @title != "" do %>
<details <%= if open_content?() do %>open<% end %>>
</p>
<%= render("_user_card.html", %{user: @user}) %>
<div class="activity-content">
<%= if @title != "" do %>
<details <%= if open_content?() do %>open<% end %>>
- <summary><%= raw @title %></summary>
+ <summary
class="p-name"
><%= raw @title %></summary>
<div class="e-content"><%= raw @content %></div>
</details>
<% else %>
<div class="e-content"><%= raw @content %></div>
</details>
<% else %>
diff --git
a/lib/pleroma/web/templates/static_fe/static_fe/_user_card.html.eex
b/lib/pleroma/web/templates/static_fe/static_fe/_user_card.html.eex
index 56f3a152429c6a6e5d9509e67c49fff8ccaa19d3..977b894d3477c54b01e48ccf21ffc862c160d37a 100644
(file)
--- a/
lib/pleroma/web/templates/static_fe/static_fe/_user_card.html.eex
+++ b/
lib/pleroma/web/templates/static_fe/static_fe/_user_card.html.eex
@@
-1,10
+1,10
@@
<div class="p-author h-card">
<a class="u-url" rel="author noopener" href="<%= (@user.uri || @user.ap_id) %>">
<div class="avatar">
<div class="p-author h-card">
<a class="u-url" rel="author noopener" href="<%= (@user.uri || @user.ap_id) %>">
<div class="avatar">
- <img src="<%= User.avatar_url(@user) |> MediaProxy.url %>" width="48" height="48" alt="">
+ <img
class="u-photo"
src="<%= User.avatar_url(@user) |> MediaProxy.url %>" width="48" height="48" alt="">
</div>
<span class="display-name">
</div>
<span class="display-name">
- <bdi><%= raw Formatter.emojify(@user.name, @user.emoji) %></bdi>
+ <bdi
class="p-name"
><%= raw Formatter.emojify(@user.name, @user.emoji) %></bdi>
<span class="nickname"><%= @user.nickname %></span>
</span>
</a>
<span class="nickname"><%= @user.nickname %></span>
</span>
</a>