Notices should show entire thread from context.

This commit is contained in:
Phil Hagelberg 2019-10-28 19:47:20 -07:00
commit cc1b07132f
5 changed files with 26 additions and 6 deletions

View file

@ -23,6 +23,7 @@
}
.activity {
padding: 1em;
margin-bottom: 1em;
}
@ -41,6 +42,10 @@
max-height: 800px;
}
#selected {
background-color: #1b2735;
}
a {
color: white;
}

View file

@ -1,7 +1,7 @@
<div class="activity">
<%= render("user_card.html", %{user: @data.user}) %>
<div class="activity" <%= if @data[:selected] do %> id="selected" <% end %>>
<p class="pull-right">
<a href="<%= @data.link %>" class="activity-link"><%= @data.published %></a></p>
<%= render("user_card.html", %{user: @data.user}) %>
<div class="activity-content">
<%= if @data.title != "" do %>
<details>

View file

@ -0,0 +1,5 @@
<div class="conversation">
<%= for notice <- @data do %>
<%= render("_notice.html", %{data: notice}) %>
<% end %>
</div>

View file

@ -8,7 +8,7 @@
</h1>
<p><%= raw @data.user.bio %></p>
<div class="activity-stream">
<%= for activity <- @data.timeline do %>
<%= render("notice.html", %{data: activity}) %>
<% end %>
<%= for activity <- @data.timeline do %>
<%= render("_notice.html", %{data: activity}) %>
<% end %>
</div>