% content_for :title, t("replay.index.meta_title") %> <% content_for :meta_description, t("replay.index.meta_description") %>
<%= t("replay.index.hint") %>
<%= form_with url: public_replay_index_path, method: :get, local: true, class: "search-form" do %> <% if params[:club_id].present? %> <%= hidden_field_tag :club_id, params[:club_id] %> <% end %> " aria-label="<%= t("replay.index.search_aria_label") %>" autocomplete="off" /> <% if @query.present? || params[:club_id].present? %> <%= link_to t("replay.index.reset_link"), public_replay_index_path, class: "btn btn-secondary" %> <% end %> <% end %> <% if @clubs.many? %> <%= form_with url: public_replay_index_path, method: :get, local: true, class: "replay-filter-form" do %> <% if @query.present? %> <%= hidden_field_tag :q, @query %> <% end %> <% end %> <% end %> <% if @query.present? %> <% club_suffix = @filter_club ? t("replay.index.results_hint_club_suffix", name: @filter_club.name) : "" %><%= t("replay.index.results_hint", query: @query, club_suffix: club_suffix, count: @recordings.size) %>
<% end %> <% if @recordings.any? %><%= t("replay.index.empty_filtered_title") %><%= t("replay.index.empty_filtered_suffix") %>
<%= link_to t("replay.index.empty_filtered_show_all"), public_replay_index_path, class: "btn btn-secondary" %>
<% else %><%= t("replay.index.empty_default_title") %>
<%= t("replay.index.empty_default_body") %>
<%= link_to t("replay.index.empty_default_live_link"), public_live_index_path, class: "btn btn-secondary", style: "margin-top:12px;display:inline-block" %> <% end %>