mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Let's get serious about linting, folks.
This commit is contained in:
parent
8f43da79b5
commit
27f6d8ad73
26 changed files with 341 additions and 235 deletions
18
app/helpers/conference_helper.rb
Normal file
18
app/helpers/conference_helper.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue