mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
* Consistent route/model/controller/view layout * Get rid of unused photos, speakers, dietchoices, social_events controllers * Drop unused :public from Rooms and :description from CallForPapers
39 lines
1.5 KiB
Text
39 lines
1.5 KiB
Text
.row
|
|
.col-md-12.page-header
|
|
%h2
|
|
Submissions (#{@user.events.length}) for #{@user.name}
|
|
.col-md-12
|
|
.well
|
|
%table.table.table-bordered.table-striped.table-hover#submissions
|
|
%thead
|
|
%th ID
|
|
%th Conference
|
|
%th Title
|
|
%th State
|
|
%th Type
|
|
%th Rating
|
|
%th Created At
|
|
%tbody
|
|
- @user.events.each do |event|
|
|
%tr
|
|
%td= event.id
|
|
%td= link_to event.conference.short_title, admin_conference_path(event.conference.short_title)
|
|
%td= link_to event.title, admin_conference_event_path(event.conference.short_title, event)
|
|
%td= event.state
|
|
%td= "#{event.event_type.title} (#{show_time(event.event_type.length)})"
|
|
%td
|
|
- if event.conference.call_for_paper && event.conference.call_for_paper.rating && event.conference.call_for_paper.rating > 0
|
|
- event.conference.call_for_paper.rating.times do |counter|
|
|
- if event.average_rating.to_f.round == counter+1
|
|
= label_tag 'label_rating', '', class: 'avgrating', avgrate: true
|
|
= javascript_tag "$('label[avgrate=true]').prevAll().andSelf().addClass('bright');"
|
|
- else
|
|
= label_tag 'label_rating', '', class: 'avgrating'
|
|
%td= event.created_at
|
|
|
|
:javascript
|
|
$(document).ready(function() {
|
|
$('#submissions').dataTable( {
|
|
"bPaginate": false
|
|
} );
|
|
} );
|