Changed Ruby syntax in views. Fixed #1326

This commit is contained in:
divyanshumehta 2017-03-11 13:25:39 +05:30
parent b0a84ad1c6
commit 1ca448df6f
74 changed files with 371 additions and 376 deletions

View file

@ -1,9 +1,9 @@
.panel.panel-default.event-panel{ onClick: 'eventClicked(event, this);', "data-url" => "#{url_for(conference_program_proposal_path(@conference.short_title, event.id))}" }
.panel-body
- if speaker = event.speakers.first
= image_tag speaker.gravatar_url, :class => "img-circle pull-right all-speaker-pic", |
:alt => speaker.name, |
:title => speaker.name |
= image_tag speaker.gravatar_url, class: "img-circle pull-right all-speaker-pic", |
alt: speaker.name, |
title: speaker.name |
%p
= canceled_replacement_event_label(event, event_schedule)
@ -17,8 +17,8 @@
%h4
presented by #{event.speaker_names}
%p
= markdown(truncate(event.abstract, :length => 400))
= link_to 'more', conference_program_proposal_path(@conference.short_title, event.id) if event.abstract.length > 400
= markdown(truncate(event.abstract, length: 400))
= link_to 'more', conference_program_proposal_path(@conference.short_title, event.id) if event.abstract.length > 400=>
- if event_schedule.present?
%span.track
%span.fa.fa-clock-o