Added hints to description fields to use markdown syntax, rendered all description fields in the splash as markdown

This commit is contained in:
Gopesh Tulsyan 2014-06-29 17:44:27 +05:30
parent f6a9142510
commit 8efcd69f3d
15 changed files with 30 additions and 24 deletions

View file

@ -9,7 +9,7 @@
Call For Papers
- if !@conference.call_for_papers.description.blank?
%p
= @conference.call_for_papers.description
= markdown(@conference.call_for_papers.description)
- if !@conference.call_for_papers.start_date.blank? && !@conference.call_for_papers.end_date.blank?
%p.lead Proposals will be accepted between
#cfp-date

View file

@ -14,7 +14,7 @@
%strong #{ @conference.venue.address }
- unless @conference.venue.description.blank?
%p
= @conference.venue.description
= markdown(@conference.venue.description)
%ul.location-links
- unless @conference.venue.address.blank?
%li

View file

@ -2,7 +2,7 @@
%h2 Lodgings
-unless @conference.lodging_description.blank?
%p.lead
= @conference.lodging_description
= markdown(@conference.lodging_description)
%div.row.text-center
- @conference.venue.lodgings.each do |r|
@ -13,7 +13,7 @@
-unless r.name.blank?
%h4.text-center #{ r.name }
-unless r.description.blank?
%p.text-left #{ r.description }
%p.text-left #{ markdown(r.description) }
- unless r.website_link.blank?
.text-center
= link_to 'Go to Website', r.website_link

View file

@ -6,7 +6,7 @@
%h1 Registration
- if !@conference.registration_description.blank?
%p
= @conference.registration_description
= markdown(@conference.registration_description)
- if @conference.registration_dates_given?
-if @conference.registration_end_date >= Date.today
%h4 Registration period #{ date_string(@conference.registration_start_date, @conference.registration_end_date) }

View file

@ -6,7 +6,8 @@
%div.col-md-12
%h2 Sponsors
-if !@conference.sponsor_description.blank?
%p #{ @conference.sponsor_description }
%p
= markdown(@conference.sponsor_description)
-if !@conference.sponsor_email.blank?
%h3= mail_to "#{ @conference.sponsor_email }", 'Become a Sponsor'
- if !@conference.sponsorship_levels.blank?

View file

@ -1,7 +1,8 @@
%div.row
%h3 Tickets
-if !@conference.ticket_description.blank?
%p #{ @conference.ticket_description }
%p
= markdown(@conference.ticket_description)
- @conference.supporter_levels.each do |s|
%div.col-md-6
- if !s.title.blank?

View file

@ -6,4 +6,4 @@
%h4
= t.name
%p
= t.description
= markdown(t.description)

View file

@ -16,7 +16,8 @@
- unless @conference.description.blank?
.row-fluid
.col-md-12.lead
%p= @conference.description
%p
= markdown(@conference.description)
-unless @conference.photos.blank?
= link_to 'Gallery', gallery_photos_conference_path(@conference.short_title), class: 'btn btn-primary btn-lg', id: 'gallery-btn', remote: true
= render 'gallery'