Sha256: 8ff099d60e8366eab3abb7840299f77640f27cea2b023b732debeefb0fa9331e

Contents?: true

Size: 1.01 KB

Versions: 10

Compression:

Stored size: 1.01 KB

Contents

.row.mb-5.effective-events{class: "effective-events-#{event.category.to_s.parameterize}"}
  - # Do not show banners for past events
  - if event.file.attached? && event.upcoming?
    .col-lg-4
      = link_to effective_events.event_path(event) do
        = image_tag url_for(event.file), class: "effective-events-image d-none d-lg-flex align-self-start", alt: event.title, width: "350", height: "220"

  .col
    - if event.past?
      .badge.badge-primary.badge-event.mb-2 Past Event

    - if event.category.present? && EffectiveEvents.categories.length > 1
      = link_to(event.category, effective_events.events_path + '/' + event.category.parameterize, class: "badge badge-primary badge-event mb-2 effective-events-#{event.category.parameterize}")

    = event_status_badge(event)
    = admin_event_status_badge(event)

    %h2.effective-events-title= link_to event.title, effective_events.event_path(event)
    .effective-events-meta= effective_events_event_schedule(event)
    .effective-events-excerpt= event.excerpt.to_s

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
effective_events-2.29.1 app/views/effective/events/_event.html.haml
effective_events-2.29.0 app/views/effective/events/_event.html.haml
effective_events-2.28.3 app/views/effective/events/_event.html.haml
effective_events-2.28.2 app/views/effective/events/_event.html.haml
effective_events-2.28.1 app/views/effective/events/_event.html.haml
effective_events-2.28.0 app/views/effective/events/_event.html.haml
effective_events-2.27.0 app/views/effective/events/_event.html.haml
effective_events-2.26.0 app/views/effective/events/_event.html.haml
effective_events-2.25.1 app/views/effective/events/_event.html.haml
effective_events-2.25.0 app/views/effective/events/_event.html.haml