Add call for booths in cfp section in conference splashpage(conferences#show),modified after the design changes

This commit is contained in:
kostino 2018-03-17 18:05:06 +02:00 committed by James Mason
parent 7d2afc623d
commit 69de418ccd
7 changed files with 38 additions and 6 deletions

View file

@ -1,8 +1,13 @@
module ConferenceHelper
# Return true if only call_for_papers or call_for_tracks is open
# Return true if only call_for_papers or call_for_tracks or call_for_booths is open
def one_call_open(*calls)
calls.one? { |call| call.try(:open?) }
end
# Return true if exactly two of those calls are open: call_for_papers , call_for_tracks , call_for_booths
def two_calls_open(*calls)
calls.count{ |call| call.try(:open?) } == 2
end
# URL for sponsorship emails
def sponsorship_mailto(conference)