Updates Recent Reactions UI to match Admin UI changes (#10109)

-Adds crayons styling to _negative_reactions.html.erb
  -Removes dead divs from template
This commit is contained in:
Julianna Tetreault 2020-08-31 12:44:30 -06:00 committed by GitHub
parent 1fbab70dc4
commit e7608d83bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,9 @@
<div class="row my-3">
<div class="col-12">
<div class="crayons-card p-6">
<div>
<h2 class="d-inline">Recent Reactions</h2>
<button type="button" data-toggle="collapse" data-target="#reactions-row" class="btn btn-secondary float-right">Toggle</button>
</div>
<div class="col-12 collapse" id="reactions-row">
<div class="list-group-flush">
<div class="pt-6 collapse" id="reactions-row">
<% unless @related_vomit_reactions.empty? %>
<% @related_vomit_reactions.each do |reaction| %>
<a href="<%= reaction.reactable.path %>" class="list-group-item list-group-item-action px-5 d-flex justify-content-between">
@ -16,6 +15,5 @@
<% else %>
<p><em>Nothing negative to see here! 👀</em></p>
<% end %>
</div>
</div>
</div>