<%= label_tag :search_form_top, t('page.search_term') -%>: <%= search_field_tag 'query', h(@query), {id: 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%> <%= submit_tag t('page.search') -%>
<%- end -%><%- case params[:mode] when 'upcoming' -%> <%= link_to t('event.all'), url_for(params.merge(mode: nil, only_path: true)) -%> <%= t('event.upcoming') -%> <%= link_to t('event.past'), url_for(params.merge(mode: 'past', only_path: true)) -%> <%- when 'past' -%> <%= link_to t('event.all'), url_for(params.merge(mode: nil, only_path: true)) -%> <%= link_to t('event.upcoming'), url_for(params.merge(mode: 'upcoming', only_path: true)) -%> <%= t('event.past') -%> <%- else -%> <%= t('event.all') -%> <%= link_to t('event.upcoming'), url_for(params.merge(mode: 'upcoming', only_path: true)) -%> <%= link_to t('event.past'), url_for(params.merge(mode: 'past', only_path: true)) -%> <%- end -%>
<%= t('activerecord.models.library') -%> | <%= t('activerecord.attributes.event.name') -%> | |
---|---|---|
<%= link_to event.library.display_name.localize, event.library -%>
<%= event.event_category.display_name.localize -%> |
<%= link_to event.display_name.localize, event -%>
<%= l(event.start_at, format: :short) -%> - <%= l(event.end_at, format: :short) -%> |
<%- if can? :delete, event -%> <%= link_to t('page.edit'), edit_event_path(event) -%> <%= link_to t('page.destroy'), event, data: {confirm: t('page.are_you_sure')}, method: :delete -%> <%- end -%> |
<%- if @library -%> <%= link_to (image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'icon'), library_events_path(@library, format: :rss) -%> (<%= link_to 'RSS', library_events_path(@library, format: :rss) -%>) <%= link_to (image_tag 'icons/page_white_excel.png', size: '16x16', alt: 'TSV', class: 'icon'), library_events_path(@library, format: :txt, locale: @locale.to_s) -%> (<%= link_to 'TSV', library_events_path(@library, format: :txt, locale: @locale.to_s) -%>) <%- else -%> <%= link_to (image_tag 'icons/feed.png', size: '16x16', alt: t('page.feed'), class: 'icon'), events_path(format: :rss) -%> (<%= link_to 'RSS', events_path(format: :rss) -%>) <%= link_to (image_tag 'icons/page_white_excel.png', size: '16x16', alt: 'TSV', class: 'icon'), events_path(format: :txt, locale: @locale.to_s) -%> (<%= link_to 'TSV', events_path(format: :txt, locale: @locale.to_s) -%>) <%- end -%>
<%= render 'page/login' unless current_user -%>