Show counts for replies, likes, and announces for selected notice.

Using text instead of an icon, for now.
This commit is contained in:
Phil Hagelberg 2019-10-29 22:05:18 -07:00
commit e4b9784c39
3 changed files with 26 additions and 2 deletions

View file

@ -24,6 +24,7 @@
.activity {
padding: 1em;
padding-bottom: 2em;
margin-bottom: 1em;
}
@ -46,6 +47,11 @@
background-color: #1b2735;
}
.counts dt, .counts dd {
float: left;
margin-left: 1em;
}
a {
color: white;
}

View file

@ -27,4 +27,11 @@
<% end %>
<% end %>
</div>
<%= if @selected do %>
<dl class="counts">
<dt><%= Gettext.gettext("replies") %></dt><dd><%= @counts.replies %></dd>
<dt><%= Gettext.gettext("announces") %></dt><dd><%= @counts.announces %></dd>
<dt><%= Gettext.gettext("likes") %></dt><dd><%= @counts.likes %></dd>
</dl>
<% end %>
</div>