Clear the filter
This commit is contained in:
@@ -5,10 +5,18 @@
|
||||
<div class="btn btn--circle btn--placeholder flex-item-justify-start"></div>
|
||||
|
||||
<div class="flex-inline flex-column center gap-half margin-block-end-double txt-align-center min-width">
|
||||
<h2 class="font-black txt-large center overflow-ellipsis max-width">
|
||||
<h2 class="font-black txt-large center max-width flex align-center">
|
||||
<div class="overflow-ellipsis">
|
||||
<%= Account.sole.name %> / Latest activity
|
||||
<% if @filter.creators.any? %>
|
||||
by <%= @filter.creators.each_with_object([]) { |creator, names| names << creator.familiar_name }.to_sentence %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% if @filter.creators.any? %>
|
||||
by <%= @filter.creators.each_with_object([]) { |creator, names| names << creator.familiar_name }.to_sentence %>
|
||||
<%= link_to events_path(@filter.as_params.except(:creator_ids)), class: "btn btn--remove txt-xx-small margin-inline-start" do %>
|
||||
<%= icon_tag "close" %>
|
||||
<span class="for-screen-reader">Clear all</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</h2>
|
||||
<%= render "events/filter", filter: @filter %>
|
||||
|
||||
Reference in New Issue
Block a user