Skip to content

Commit

Permalink
tidy some markdown truncation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Jul 31, 2024
1 parent 5755135 commit c75f686
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/views/schedules/_event_mini.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
%span= " at #{new_start_time.strftime('%l:%M %P')}"
= join_event_link(event, event_schedule, current_user, small: true)
%p
= truncate(markdown(event.abstract), length: 250, escape: false)
- if event.subevents.present?
= markdown(truncate(event.abstract, length: 256))
- if event.program_subevents.present?
%ul
- event.program_subevents.each do |subevent|
%li= link_to(subevent.title, conference_program_proposal_path(@conference.short_title, subevent.id))
6 changes: 3 additions & 3 deletions app/views/schedules/events.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
- prev_time = start_time
%h3= start_time.strftime('%H:%M %p %Z')
.col-12
- cache [@program, event_schedule, event, current_user, event_schedule.happening_now?, '#scheduled#full#panel'] do
.event-item{ data: { time: event_schedule.start_time.iso8601 }, id: dom_id(event) }
= render 'event', event: event, event_schedule: event_schedule
-# - cache [@program, event_schedule, event, current_user, event_schedule.happening_now?, '#scheduled#full#panel'] do
.event-item{ data: { time: event_schedule.start_time.iso8601 }, id: dom_id(event) }
= render 'event', event: event, event_schedule: event_schedule

/ confirmed events that are not scheduled
- if @unscheduled_events.any?
Expand Down

0 comments on commit c75f686

Please sign in to comment.