Add call for booths in cfp section in conference splashpage(conferences#show),modified after the design changes
This commit is contained in:
parent
7d2afc623d
commit
69de418ccd
7 changed files with 38 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue