Another round of splash design
* Add map to splash * Reverse venue<->conference relation * Split venue address into fields * Don't go through venue for lodgings anymore
This commit is contained in:
parent
30e8ab856c
commit
cb227a0afc
55 changed files with 717 additions and 548 deletions
|
|
@ -171,6 +171,34 @@ module ApplicationHelper
|
|||
result
|
||||
end
|
||||
|
||||
def event_types(conference)
|
||||
all = conference.event_types.map { |et | et.title.pluralize }
|
||||
first = all[0...-1]
|
||||
last = all[-1]
|
||||
ets = ''
|
||||
if all.length > 1
|
||||
ets << first.join(', ')
|
||||
ets << " and #{last}"
|
||||
else
|
||||
ets = all.join
|
||||
end
|
||||
return ets
|
||||
end
|
||||
|
||||
def tracks(conference)
|
||||
all = conference.tracks.map {|t| t.name}
|
||||
first = all[0...-1]
|
||||
last = all[-1]
|
||||
ts = ''
|
||||
if all.length > 1
|
||||
ts << first.join(', ')
|
||||
ts << " and #{last}"
|
||||
else
|
||||
ts = all.join
|
||||
end
|
||||
return ts
|
||||
end
|
||||
|
||||
def markdown(text)
|
||||
options = {
|
||||
autolink: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue