change unless esle to if else
This commit is contained in:
parent
33d32b9294
commit
7fa38e2697
1 changed files with 5 additions and 5 deletions
|
|
@ -25,12 +25,12 @@
|
||||||
= link_to 'Delete', admin_conference_registration_period_path,
|
= link_to 'Delete', admin_conference_registration_period_path,
|
||||||
method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger'
|
method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger'
|
||||||
- else
|
- else
|
||||||
- unless @conference.tickets.for_registration.empty?
|
- if @conference.tickets.for_registration.empty?
|
||||||
- if can? :create, @conference.build_registration_period
|
h3.text-left
|
||||||
= link_to 'New Registration Period', new_admin_conference_registration_period_path, class: 'btn btn-primary'
|
|
||||||
- else
|
|
||||||
.h3.text-left
|
|
||||||
No Registration Tickets!
|
No Registration Tickets!
|
||||||
%small
|
%small
|
||||||
= link_to 'Create registration tickets', new_admin_conference_ticket_path
|
= link_to 'Create registration tickets', new_admin_conference_ticket_path
|
||||||
before creating the registration period.
|
before creating the registration period.
|
||||||
|
- else
|
||||||
|
if can? :create, @conference.build_registration_period
|
||||||
|
= link_to 'New Registration Period', new_admin_conference_registration_period_path, class: 'btn btn-primary'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue