mirror of
https://github.com/openSUSE/osem.git
synced 2026-02-06 20:23:15 -05:00
user ability for registration is used for chcking whether a user can register or not
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
- progress_status = event.progress_status
|
||||
%ul.list-unstyled
|
||||
- if @conference.registration_open? || (@conference.user_registered? current_user)
|
||||
- if can? :create, @conference.registrations.new
|
||||
%li{'class'=>class_for_todo(progress_status['registered'])}
|
||||
%span{'class'=>icon_for_todo(progress_status['registered'])}
|
||||
- if progress_status['registered']
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
The more information you add to your proposal, the more likely it is that the conference organizers accept your proposal.
|
||||
%br
|
||||
It will also be more likely that visitors find your proposal interesting enough to attend.
|
||||
- if (@conference.registration_open?) && !(@conference.user_registered? current_user)
|
||||
- if can? :create, @conference.registrations.new
|
||||
%p
|
||||
%strong
|
||||
Why do I need to register to the conference?
|
||||
@@ -74,7 +74,7 @@
|
||||
|
||||
%td.col-md-2{style: "padding:20px 8px 20px 8px;"}
|
||||
= link_to 'Complete your proposal', 'javascript: void(0)', "type"=>"button", "data-trigger"=>"focus", "data-toggle"=>"popover", "title"=>"Your todo list", "data-content"=>"#{render partial: 'tooltip', locals: { event: event} }"
|
||||
- if (@conference.registration_open?) || (@conference.user_registered? current_user)
|
||||
- if can? :create, @conference.registrations.new
|
||||
- progress_percentage = event.calculate_progress
|
||||
.progress
|
||||
%div{class: "progress-bar #{event_progress_color(progress_percentage)}", style: "width:#{progress_percentage}%;"}
|
||||
|
||||
Reference in New Issue
Block a user