Skip to content

Commit

Permalink
Minor tweak to event show start time readout
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankocienski committed Oct 4, 2024
1 parent 89be8ee commit b094a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/events/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
-# FIXME: multi-day events
%h2
- if @event_instance.ends_at.present?
From <em>#{@event_instance.starts_at.strftime(EventsHelper::DATE_TIME_FORMAT)}</em>
From <em>#{fancy_time_format(@event_instance.starts_at)}</em>
for <em title="#{@event_instance.ends_at.strftime(EventsHelper::DATE_TIME_FORMAT)}">#{fancy_time_period_format(@event_instance.starts_at, @event_instance.ends_at)}</em>
- else
At <em>#{@event_instance.starts_at.strftime(EventsHelper::DATE_TIME_FORMAT)}</em>
At <em>#{fancy_time_format(@event_instance.starts_at)}</em>
on #{fancy_date_format(@event_instance.starts_at)}

%p
Expand Down

0 comments on commit b094a9c

Please sign in to comment.