mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-17 05:34:04 +00:00
Fixed Venue link in todo list for organiser
"Add venue" link in todo list is not active for the organiser of that conference. Fixes #1383
This commit is contained in:
parent
b3be600855
commit
e8aa7c8a98
2 changed files with 12 additions and 5 deletions
|
|
@ -21,14 +21,16 @@
|
|||
= link_to 'Set up call for papers', admin_conference_program_cfp_path(conference_progress['short_title'])
|
||||
- else
|
||||
Set up call for papers
|
||||
%li{ 'class' => "list-group-item #{class_for_todo(conference_progress['venue'])}" }
|
||||
%span{ 'class' => icon_for_todo(conference_progress['venue']) }
|
||||
- if can? :update, @conference.venue
|
||||
%li{'class'=>"list-group-item #{class_for_todo(conference_progress['venue'])}"}
|
||||
%span{'class'=>icon_for_todo(conference_progress['venue'])}
|
||||
- if can? :update, Venue.new(conference: @conference)
|
||||
- @conference.reload
|
||||
- if conference.venue
|
||||
= link_to 'Add venue', edit_admin_conference_venue_path(conference_progress['short_title'])
|
||||
- else
|
||||
= link_to 'Add venue', new_admin_conference_venue_path(conference_progress['short_title'])
|
||||
- else
|
||||
- @conference.reload
|
||||
Add venue
|
||||
%li{ 'class' => "list-group-item #{class_for_todo(conference_progress['rooms'])}" }
|
||||
%span{ 'class' => icon_for_todo(conference_progress['rooms']) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue