mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
remove submit proposal from homepage
submit proposal should not be present if cfp is nil Fixes https://github.com/openSUSE/osem/issues/2418
This commit is contained in:
parent
02ca6da80a
commit
ed254f7694
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,8 @@
|
|||
- if !current_user.nil? && current_user.proposal_count(conference) > 0
|
||||
= link_to "My Proposals", conference_program_proposals_path(conference.short_title), class: 'btn btn-default'
|
||||
- elsif can? :new, conference.program.events.new
|
||||
= link_to "Submit Proposal", new_conference_program_proposal_path(conference.short_title), class: 'btn btn-default'
|
||||
- if conference.program.cfp_open?
|
||||
= link_to "Submit Proposal", new_conference_program_proposal_path(conference.short_title), class: 'btn btn-default'
|
||||
- if current_user && current_user.booths.where(conference_id: conference.id).count > 0
|
||||
= link_to 'My Booth Requests', conference_booths_path(conference.short_title), class: 'btn btn-default'
|
||||
- elsif can? :new, conference.booths.new
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue