Notices should show entire thread from context.
This commit is contained in:
parent
748d800acb
commit
cc1b07132f
5 changed files with 26 additions and 6 deletions
|
|
@ -23,6 +23,7 @@
|
|||
}
|
||||
|
||||
.activity {
|
||||
padding: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
|
|
@ -41,6 +42,10 @@
|
|||
max-height: 800px;
|
||||
}
|
||||
|
||||
#selected {
|
||||
background-color: #1b2735;
|
||||
}
|
||||
|
||||
a {
|
||||
color: white;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<div class="conversation">
|
||||
<%= for notice <- @data do %>
|
||||
<%= render("_notice.html", %{data: notice}) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue