Rebuild rubocop TODOs after auto-correcting
This commit is contained in:
parent
31c50255e9
commit
84dbb52d11
580 changed files with 3689 additions and 3133 deletions
|
|
@ -1,6 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
wb.add_worksheet(name: 'all booths') do |sheet|
|
||||
bold_style = wb.styles.add_style(b: true)
|
||||
wrap_text = wb.styles.add_style alignment: {wrap_text: true}
|
||||
wrap_text = wb.styles.add_style alignment: { wrap_text: true }
|
||||
row = ['Booth ID',
|
||||
'Title',
|
||||
'Description',
|
||||
|
|
@ -21,7 +23,7 @@ wb.add_worksheet(name: 'all booths') do |sheet|
|
|||
row << booth.submitter_relationship
|
||||
row << booth.website_url
|
||||
row << booth.state
|
||||
sheet.add_row row , style: wrap_text
|
||||
sheet.column_widths 10,20,35,35,20,30,35,10
|
||||
sheet.add_row row, style: wrap_text
|
||||
sheet.column_widths 10, 20, 35, 35, 20, 30, 35, 10
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
wb.add_worksheet(name: 'all booths') do |sheet|
|
||||
bold_style = wb.styles.add_style(b: true)
|
||||
wrap_text = wb.styles.add_style alignment: {wrap_text: true}
|
||||
wrap_text = wb.styles.add_style alignment: { wrap_text: true }
|
||||
row = ['Booth ID',
|
||||
'Title',
|
||||
'Description',
|
||||
|
|
@ -21,7 +23,7 @@ wb.add_worksheet(name: 'all booths') do |sheet|
|
|||
row << booth.submitter_relationship
|
||||
row << booth.website_url
|
||||
row << booth.state
|
||||
sheet.add_row row , style: wrap_text
|
||||
sheet.column_widths 10,20,35,35,20,30,35,10
|
||||
sheet.add_row row, style: wrap_text
|
||||
sheet.column_widths 10, 20, 35, 35, 20, 30, 35, 10
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
wb = xlsx_package.workbook
|
||||
xlsx_package.use_autowidth = true
|
||||
if @booth_export_option == 'confirmed'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
wb.add_worksheet(name: 'all events') do |sheet|
|
||||
bold_style = wb.styles.add_style(b: true)
|
||||
wrap_text = wb.styles.add_style alignment: {wrap_text: true}
|
||||
wrap_text = wb.styles.add_style alignment: { wrap_text: true }
|
||||
row = ['Event ID',
|
||||
'Title',
|
||||
'Abstract',
|
||||
|
|
@ -20,7 +22,7 @@ wb.add_worksheet(name: 'all events') do |sheet|
|
|||
row << event.id
|
||||
row << event.title
|
||||
row << event.abstract
|
||||
row << (event.time.present? ? "#{event.time.strftime("%Y-%m-%d")} #{event.time.strftime("%I:%M%p")} " : '')
|
||||
row << (event.time.present? ? "#{event.time.strftime('%Y-%m-%d')} #{event.time.strftime('%I:%M%p')} " : '')
|
||||
row << event.submitter.name
|
||||
row << event.speaker_names
|
||||
row << event.speaker_emails
|
||||
|
|
@ -29,7 +31,7 @@ wb.add_worksheet(name: 'all events') do |sheet|
|
|||
row << (event.difficulty_level.present? ? event.difficulty_level.title : '')
|
||||
row << (event.room.present? ? event.room.name : '')
|
||||
row << event.state
|
||||
sheet.add_row row , style: wrap_text
|
||||
sheet.column_widths 10,15,35,13,18,18,28,12,15,15,15,10
|
||||
sheet.add_row row, style: wrap_text
|
||||
sheet.column_widths 10, 15, 35, 13, 18, 18, 28, 12, 15, 15, 15, 10
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
wb.use_shared_strings = true
|
||||
wb.add_worksheet(name: 'events with comments') do |sheet|
|
||||
bold_style = wb.styles.add_style(b: true)
|
||||
|
|
@ -20,13 +22,13 @@ wb.add_worksheet(name: 'events with comments') do |sheet|
|
|||
@events.each do |event|
|
||||
all_comments = ''
|
||||
event.root_comments.each do |comment|
|
||||
all_comments << "#{comment.created_at.strftime("%Y-%m-%d")} #{comment.created_at.strftime("%I:%M%p")} #{comment.user.name}: #{comment.body}\n"
|
||||
all_comments << "#{comment.created_at.strftime('%Y-%m-%d')} #{comment.created_at.strftime('%I:%M%p')} #{comment.user.name}: #{comment.body}\n"
|
||||
end
|
||||
row = []
|
||||
row << event.id
|
||||
row << event.title
|
||||
row << event.abstract
|
||||
row << (event.time.present? ? "#{event.time.strftime("%Y-%m-%d")} #{event.time.strftime("%I:%M%p")} " : '')
|
||||
row << (event.time.present? ? "#{event.time.strftime('%Y-%m-%d')} #{event.time.strftime('%I:%M%p')} " : '')
|
||||
row << event.submitter.name
|
||||
row << event.speaker_names
|
||||
row << event.speaker_emails
|
||||
|
|
@ -37,6 +39,6 @@ wb.add_worksheet(name: 'events with comments') do |sheet|
|
|||
row << event.state
|
||||
row << all_comments.strip
|
||||
sheet.add_row row, style: cell_style
|
||||
sheet.column_widths 10,15,35,13,18,18,28,12,15,15,15,10
|
||||
sheet.column_widths 10, 15, 35, 13, 18, 18, 28, 12, 15, 15, 15, 10
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
wb.add_worksheet(name: 'confirmed events') do |sheet|
|
||||
bold_style = wb.styles.add_style(b: true)
|
||||
wrap_text = wb.styles.add_style alignment: {wrap_text: true}
|
||||
wrap_text = wb.styles.add_style alignment: { wrap_text: true }
|
||||
row = ['Event ID',
|
||||
'Title',
|
||||
'Abstract',
|
||||
|
|
@ -20,7 +22,7 @@ wb.add_worksheet(name: 'confirmed events') do |sheet|
|
|||
row << event.id
|
||||
row << event.title
|
||||
row << event.abstract
|
||||
row << (event.time.present? ? "#{event.time.strftime("%Y-%m-%d")} #{event.time.strftime("%I:%M%p")} " : '')
|
||||
row << (event.time.present? ? "#{event.time.strftime('%Y-%m-%d')} #{event.time.strftime('%I:%M%p')} " : '')
|
||||
row << event.submitter.name
|
||||
row << event.speaker_names
|
||||
row << event.speaker_emails
|
||||
|
|
@ -29,7 +31,7 @@ wb.add_worksheet(name: 'confirmed events') do |sheet|
|
|||
row << (event.difficulty_level.present? ? event.difficulty_level.title : '')
|
||||
row << (event.room.present? ? event.room.name : '')
|
||||
row << event.state
|
||||
sheet.add_row row , style: wrap_text
|
||||
sheet.column_widths 10,15,35,13,18,18,28,12,15,15,15,10
|
||||
sheet.add_row row, style: wrap_text
|
||||
sheet.column_widths 10, 15, 35, 13, 18, 18, 28, 12, 15, 15, 15, 10
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
wb = xlsx_package.workbook
|
||||
if @event_export_option == 'confirmed'
|
||||
render partial: 'confirmed_events', locals: {:wb => wb}
|
||||
render partial: 'confirmed_events', locals: { wb: wb }
|
||||
elsif @event_export_option == 'all'
|
||||
render partial: 'all_events', locals: {:wb => wb}
|
||||
render partial: 'all_events', locals: { wb: wb }
|
||||
elsif @event_export_option == 'all_with_comments'
|
||||
render partial: 'all_with_comments', locals: {:wb => wb}
|
||||
render partial: 'all_with_comments', locals: { wb: wb }
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,17 +1,19 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
wb = xlsx_package.workbook
|
||||
wb.add_worksheet(name: 'registrations') do |sheet|
|
||||
bold_style = wb.styles.add_style(b: true)
|
||||
row = ['Attended', 'Name', 'Nickname', 'Affilιation', 'Email', 'Arrival', 'Departure']
|
||||
row = %w[Attended Name Nickname Affilιation Email Arrival Departure]
|
||||
|
||||
@conference.questions.each do |question|
|
||||
row << question.title
|
||||
end
|
||||
|
||||
sheet.add_row row, :style => bold_style
|
||||
sheet.add_row row, style: bold_style
|
||||
|
||||
@registrations.each do |registration|
|
||||
row = []
|
||||
row << ( registration.attended ? 'X' : '' )
|
||||
row << (registration.attended ? 'X' : '')
|
||||
row << registration.name
|
||||
row << registration.nickname
|
||||
row << registration.affiliation
|
||||
|
|
@ -20,7 +22,7 @@ wb.add_worksheet(name: 'registrations') do |sheet|
|
|||
row << registration.departure.to_s
|
||||
@conference.questions.each do |question|
|
||||
qa = registration.qanswers.find_by(question: question)
|
||||
answer = ( qa ? qa.answer.title : '' )
|
||||
answer = (qa ? qa.answer.title : '')
|
||||
|
||||
row << answer
|
||||
end
|
||||
|
|
@ -28,4 +30,3 @@ wb.add_worksheet(name: 'registrations') do |sheet|
|
|||
sheet.add_row row
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
wb.add_worksheet(name: 'all tracks') do |sheet|
|
||||
bold_style = wb.styles.add_style(b: true)
|
||||
wrap_text = wb.styles.add_style alignment: {wrap_text: true}
|
||||
wrap_text = wb.styles.add_style alignment: { wrap_text: true }
|
||||
row = ['Track ID',
|
||||
'Name',
|
||||
'Description',
|
||||
|
|
@ -23,7 +25,7 @@ wb.add_worksheet(name: 'all tracks') do |sheet|
|
|||
row << track.try(:submitter).try(:name)
|
||||
row << (track.cfp_active? ? 'Yes' : 'No')
|
||||
row << track.state
|
||||
sheet.add_row row , style: wrap_text
|
||||
sheet.column_widths 10,20,50,20,12,12,20,15,10
|
||||
sheet.add_row row, style: wrap_text
|
||||
sheet.column_widths 10, 20, 50, 20, 12, 12, 20, 15, 10
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
wb.add_worksheet(name: 'all tracks') do |sheet|
|
||||
bold_style = wb.styles.add_style(b: true)
|
||||
wrap_text = wb.styles.add_style alignment: {wrap_text: true}
|
||||
wrap_text = wb.styles.add_style alignment: { wrap_text: true }
|
||||
row = ['Track ID',
|
||||
'Name',
|
||||
'Description',
|
||||
|
|
@ -23,7 +25,7 @@ wb.add_worksheet(name: 'all tracks') do |sheet|
|
|||
row << track.try(:submitter).try(:name)
|
||||
row << (track.cfp_active? ? 'Yes' : 'No')
|
||||
row << track.state
|
||||
sheet.add_row row , style: wrap_text
|
||||
sheet.column_widths 10,20,50,20,12,12,20,15,10
|
||||
sheet.add_row row, style: wrap_text
|
||||
sheet.column_widths 10, 20, 50, 20, 12, 12, 20, 15, 10
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
wb = xlsx_package.workbook
|
||||
if @track_export_option == 'confirmed'
|
||||
render partial: 'confirmed_tracks', locals: { wb: wb }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue