mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
More efficient listing of roles
Reduces number of loops from 2 to 1.
This commit is contained in:
parent
7c38622e8f
commit
18b1ad2b70
1 changed files with 3 additions and 4 deletions
|
|
@ -28,10 +28,9 @@
|
|||
= registration.id
|
||||
%td
|
||||
= registration.name
|
||||
- @conference.roles.each do |role|
|
||||
- role.users.each do |user|
|
||||
- if user == registration.user
|
||||
%span.label.label-info= role.name.titleize
|
||||
- registration.user.roles.each do |role|
|
||||
- if role.resource == @conference
|
||||
%span.label.label-info= role.name.titleize
|
||||
%td
|
||||
= registration.email
|
||||
%td
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue