static fe: add user profile rendering
This commit is contained in:
parent
8f08da750a
commit
2b5bd5236d
8 changed files with 77 additions and 4 deletions
|
|
@ -22,6 +22,10 @@
|
|||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.activity {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<div class="activity">
|
||||
<%= render("user_card.html", %{user: @user}) %>
|
||||
<%= render("user_card.html", %{user: @data.user}) %>
|
||||
<div class="activity-content">
|
||||
<div class="e-content"><%= @object.data["content"] %></div>
|
||||
<div class="e-content"><%= raw @data.content %></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
<h1><%= raw (@data.user.name |> Formatter.emojify(emoji_for_user(@data.user))) %></h1>
|
||||
<p><%= raw @data.user.bio %></p>
|
||||
<div class="activity-stream">
|
||||
<%= for activity <- @data.timeline do %>
|
||||
<%= render("notice.html", %{data: activity}) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
<img src="<%= User.avatar_url(@user) |> MediaProxy.url %>" width="48" height="48" alt="">
|
||||
</div>
|
||||
<span class="display-name">
|
||||
<bdi><%= @user.name |> Formatter.emojify(emoji_for_user(@user)) %></bdi>
|
||||
<bdi><%= raw (@user.name |> Formatter.emojify(emoji_for_user(@user))) %></bdi>
|
||||
<span class="nickname"><%= @user.nickname %></span>
|
||||
</span>
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue