Add index view for the cfp and modify existing ones
Add cfp_type to the form partial Refactor Cfps#show to use partials for the different cfp types Modify the rest of the view, where the cfp was used
This commit is contained in:
parent
c3eb178546
commit
2bff918556
10 changed files with 107 additions and 67 deletions
|
|
@ -85,8 +85,10 @@
|
|||
admin_conference_program_path(conference_id: Conference.find(version.conference_id).short_title)
|
||||
|
||||
- when 'Cfp'
|
||||
= link_if_alive version, 'cfp',
|
||||
admin_conference_program_cfp_path(conference_id: Conference.find(version.conference_id).short_title)
|
||||
= 'cfp'
|
||||
- cfp = current_or_last_object_state(version.item_type, version.item_id)
|
||||
= link_if_alive version, cfp.cfp_type,
|
||||
admin_conference_program_cfp_path(conference_id: Conference.find(version.conference_id).short_title, id: version.item_id)
|
||||
|
||||
- when 'Track'
|
||||
= 'track'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue