Linter fixes (many unrelated)
This commit is contained in:
parent
d40229a054
commit
d040d9c6ab
20 changed files with 100 additions and 79 deletions
|
|
@ -1,5 +1,6 @@
|
|||
- cache ['admin/events/index', conference_id, event, event.submitter, event.speakers, event_types, tracks, difficulty_levels] do
|
||||
%tr{id: "event-#{event.id}"}
|
||||
- cache ['admin/events/index', conference_id, event, event.submitter,
|
||||
event.speakers, event_types, tracks, difficulty_levels] do
|
||||
%tr{ id: "event-#{event.id}" }
|
||||
%td
|
||||
= event.id
|
||||
|
||||
|
|
@ -38,7 +39,8 @@
|
|||
= event_switch_checkbox(event, :require_registration, conference_id)
|
||||
- if event.require_registration
|
||||
= link_to registered_text(event),
|
||||
registrations_admin_conference_program_event_path(conference_id, event),
|
||||
registrations_admin_conference_program_event_path(conference_id,
|
||||
event),
|
||||
class: 'btn btn-xs btn-default'
|
||||
|
||||
%td.text-center{ data: { order: event.is_highlight.to_s } }
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
%div{ data: { toggle: 'tooltip' }, title: rating_tooltip(event, max_rating) }<
|
||||
= rating_stars(event.average_rating, max_rating, avgrate: true)
|
||||
|
||||
%div.clearfix
|
||||
.clearfix
|
||||
- if event.voted?(current_user)
|
||||
%span.label.label-success
|
||||
You voted:
|
||||
= "#{event.user_rating(current_user)}/#{max_rating}"
|
||||
= rating_fraction(event.user_rating(current_user), max_rating)
|
||||
- else
|
||||
%span.label.label-danger
|
||||
Not rated
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%div.btn-group
|
||||
.btn-group
|
||||
%button.btn.btn-success.dropdown-toggle{ data: { toggle: 'dropdown' } }
|
||||
Export
|
||||
= export_format.upcase
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue