mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 14:11:10 +00:00
18 lines
456 B
Ruby
18 lines
456 B
Ruby
module ConferenceHelper
|
|
# Return true if only call_for_papers or call_for_tracks is open
|
|
def one_call_open(conference)
|
|
conference.call_for_events.try(:open?) ^
|
|
conference.call_for_tracks.try(:open?)
|
|
end
|
|
|
|
# URL for sponsorship emails
|
|
def sponsorship_mailto(conference)
|
|
[
|
|
'mailto:',
|
|
conference.contact.sponsor_email,
|
|
'?subject=',
|
|
url_encode(conference.short_title),
|
|
'%20Sponsorship'
|
|
].join
|
|
end
|
|
end
|