Files
fizzy/app/views/events/index.html.erb
T
Andy Smith fdbb9c185e Merge branch 'main' into collection-nav
* main: (203 commits)
  Re-write help content, try a modal-like display
  Move to internal registry
  Show date instead of time for notifications older than 1 day
  Ensure checks are visible for tags and assignments
  Adjust padding so card number isn't cut off
  Don't color the collection header in considering
  Golden cards bubble to the top of Considering, too
  Adjust card collection header when colored golden
  Allow cards in Considering to gilded
  Hide focus ring on new card titles and step inputs
  Add hover effect for comment edit button
  Add hover effect to overflow button
  Improve multi-account behavior of the PWA
  Remove unneeded *
  Rename test
  Review the code to move cards
  Update editor
  Generalize and delete mentions too
  Remove unused code
  Make sure we don't remove accesses if collection is accessible
  ...
2025-07-08 15:34:01 -05:00

46 lines
1.5 KiB
Plaintext

<% @page_title = "Home" %>
<% content_for :header do %>
<nav class="header">
<header class="center">
<%= render "events/filter", filter: @filter %>
</header>
</nav>
<% end %>
<header class="header margin-block-end" style="--header-button-count: 3;">
<div class="header__actions header__actions--start">
<% if collection = @filter.single_collection || Current.user.collections.first %>
<%= button_to collection_cards_path(collection), method: :post, class: "btn btn--link" do %>
<%= icon_tag "add" %>
<span>Add a card</span>
<% end %>
<% end %>
</div>
<h1 class="header__title overflow-ellipsis">
<div class="overflow-ellipsis">
<% if @filter.collections.any? %>
<%= filter_selected_collections_label(@filter) %>
<% else %>
<%= Account.sole.name %> / Latest activity
<% if @filter.creators.any? %>
by <%= @filter.creators.each_with_object([]) { |creator, names| names << creator.familiar_name }.to_sentence %>
<% end %>
<% end %>
</div>
<% if @filter.creators.any? %>
<%= 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 %>
</h1>
<div class="header__actions header__actions--end"></div>
</header>
<div class="events" id="activity">
<%= render "events/day", day_timeline: @day_timeline %>
</div>
<%= event_next_page_link(@day_timeline.next_day) %>