Compare commits
2 commits
depfu/upda
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68c5f5e32b | ||
|
|
ef82ef8941 |
25 changed files with 22 additions and 29 deletions
|
|
@ -1 +0,0 @@
|
|||
Gemfile
|
||||
1
Gemfile.next
Normal file
1
Gemfile.next
Normal file
|
|
@ -0,0 +1 @@
|
|||
Gemfile
|
||||
|
|
@ -45,7 +45,7 @@ module ConferenceHelper
|
|||
location += "#{v.country_name}, " if v.country_name
|
||||
e.location = location
|
||||
end
|
||||
e.categories = conference.title, "Difficulty: #{proposal.difficulty_level.title}", "Track: #{proposal.track.name}"
|
||||
e.categories = conference.title, "Audience: #{proposal.difficulty_level.title}", "Track: #{proposal.track.name}"
|
||||
end
|
||||
end
|
||||
calendar
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
.col-md-12
|
||||
.page-header
|
||||
%h1
|
||||
Edit Difficulty Level
|
||||
Edit Audience
|
||||
= @difficulty_level.title
|
||||
.row
|
||||
.col-md-8
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
.row
|
||||
.col-md-12
|
||||
.page-header
|
||||
%h1 Difficulty Levels
|
||||
%h1 Audiences
|
||||
%p.text-muted
|
||||
Classify your conference.program.events by difficulty
|
||||
.row
|
||||
|
|
@ -32,4 +32,4 @@
|
|||
data: { confirm: "Do you really want to delete #{difficulty_level.title}? Attention: This difficulty level will be removed from all Events that have it set" }
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
= link_to 'Add Difficulty Level', new_admin_conference_program_difficulty_level_path(@conference.short_title), class: 'btn btn-primary'
|
||||
= link_to 'Add Audience', new_admin_conference_program_difficulty_level_path(@conference.short_title), class: 'btn btn-primary'
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
.col-md-12
|
||||
.page-header
|
||||
%h1
|
||||
Create Difficulty Level
|
||||
Create Audience
|
||||
.row
|
||||
.col-md-8
|
||||
= render partial: 'form'
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
%th
|
||||
%b Track
|
||||
%th
|
||||
%b Difficulty
|
||||
%b Audience
|
||||
%th
|
||||
%b State
|
||||
%th
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@
|
|||
%td{ 'class' => class_for_todo(progress_status['track']) }
|
||||
%span{ 'class' => [icon_for_todo(progress_status['track']), 'fa-lg'] }
|
||||
%tr
|
||||
%td= link_to 'Add a difficulty level', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event)
|
||||
%td= link_to 'Add an Audience level', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event)
|
||||
%td{ 'class' => class_for_todo(progress_status['difficulty_level']) }
|
||||
%span{ 'class' => [icon_for_todo(progress_status['difficulty_level']), 'fa-lg'] }
|
||||
#proposal-commercials.tab-pane
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
%dd
|
||||
= tracks(@conference)
|
||||
%dt
|
||||
Difficulty Levels:
|
||||
Audiences:
|
||||
%dd
|
||||
= difficulty_levels(@conference)
|
||||
%dt
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
= link_to 'Event Types', admin_conference_program_event_types_path(@conference.short_title)
|
||||
- if can? :update, @conference.program.difficulty_levels.build, conference_id: @conference.id
|
||||
%li{class: active_nav_li(admin_conference_program_difficulty_levels_path(@conference.short_title))}
|
||||
= link_to 'Difficulty Levels', admin_conference_program_difficulty_levels_path(@conference.short_title)
|
||||
= link_to 'Audience', admin_conference_program_difficulty_levels_path(@conference.short_title)
|
||||
- if can? :update, @conference.program.schedules.build
|
||||
%li{class: active_nav_li(admin_conference_schedules_path(@conference.short_title))}
|
||||
= link_to 'Schedules', admin_conference_schedules_path(@conference.short_title)
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
= f.select :language, @program.languages_list, { include_blank: false}, { class: 'select-help-toggle form-control' }
|
||||
- if display_details
|
||||
- if @conference.program.difficulty_levels.any?
|
||||
= f.label :difficulty_level
|
||||
= f.label :difficulty_level, 'Audience'
|
||||
= f.select :difficulty_level_id, @conference.program.difficulty_levels.map{|level| [level.title, level.id ] }, {include_blank: false}, { class: 'select-help-toggle form-control' }
|
||||
= render 'shared/select_help_text', f: f, for: :difficulty_level_id, options: @conference.program.difficulty_levels do |difficulty_level|
|
||||
= difficulty_level.description
|
||||
|
|
|
|||
|
|
@ -27,4 +27,4 @@
|
|||
= link_to 'Add a track', edit_conference_program_proposal_path(event.program.conference.short_title, event)
|
||||
%li{'class'=>class_for_todo(progress_status['difficulty_level'])}
|
||||
%span{'class'=>icon_for_todo(progress_status['difficulty_level'])}
|
||||
= link_to 'Add a difficulty level', edit_conference_program_proposal_path(event.program.conference.short_title, event)
|
||||
= link_to 'Add an Audience', edit_conference_program_proposal_path(event.program.conference.short_title, event)
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
%dl#proposal-info
|
||||
.col-md-12
|
||||
%dt Date:
|
||||
%dd= @event_schedule.start_time.strftime("%Y %B %e - %H:%M") if @event_schedule
|
||||
%dd= @event_schedule.start_time.strftime("%Y %B %e - %-I:%M %p") if @event_schedule
|
||||
.col-md-12
|
||||
%dt Duration:
|
||||
%dd= show_time(@event.event_type.length)
|
||||
|
|
@ -95,7 +95,7 @@
|
|||
%span.label{style: "background-color: #{@event.track.color}; color: #{ contrast_color(@event.track.color) }"}
|
||||
= @event.track.name
|
||||
.col-md-12
|
||||
%dt Difficulty:
|
||||
%dt Audience:
|
||||
%dd
|
||||
- if @event.difficulty_level
|
||||
%span.label{style: "background-color: #{@event.difficulty_level.color}; color: #{ contrast_color(@event.difficulty_level.color) };"}
|
||||
|
|
@ -118,7 +118,7 @@
|
|||
%dl
|
||||
%dt Start Time:
|
||||
%dd
|
||||
= event.program.selected_event_schedules.find { |es| es.event == event }.start_time.strftime("%Y %B %e %H:%M")
|
||||
= event.program.selected_event_schedules.find { |es| es.event == event }.start_time.strftime("%Y %B %e %-I:%M %p")
|
||||
%br
|
||||
%dt Room:
|
||||
%dd
|
||||
|
|
|
|||
|
|
@ -17,9 +17,7 @@
|
|||
- interval_count.times do
|
||||
%th.date
|
||||
%span
|
||||
= (td_start_time).strftime("%H:")
|
||||
%span
|
||||
= (td_start_time).strftime("%M")
|
||||
= (td_start_time).strftime("%-I:%M %p")
|
||||
- td_start_time += @step_minutes
|
||||
- start_room_time = start_time
|
||||
- @rooms.each do |room|
|
||||
|
|
|
|||
|
|
@ -24,9 +24,9 @@
|
|||
%span.track
|
||||
%span.fa-solid.fa-clock
|
||||
%span.label{ style: "background-color: grey" }
|
||||
= event_schedule.start_time.strftime('%H:%M')
|
||||
= event_schedule.start_time.strftime('%-I:%M %p')
|
||||
\-
|
||||
= event_schedule.end_time.strftime('%H:%M')
|
||||
= event_schedule.end_time.strftime('%-I:%M %p')
|
||||
%span.track
|
||||
%span.fa-solid.fa-location-dot
|
||||
%span.label{ style: "background-color: grey" }
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
/ scheduled events
|
||||
- date = nil
|
||||
- time = nil
|
||||
- @events_schedules.each do |event_schedule|
|
||||
- unless event_schedule.start_time.strftime('%Y-%m-%d').eql?(date)
|
||||
.col-xs-12.col-md-12
|
||||
|
|
@ -30,15 +29,11 @@
|
|||
= date = event_schedule.start_time.strftime('%Y-%m-%d')
|
||||
%a{ title: "Go up", class: "pull-right", href: "#program" }
|
||||
%i{ class: "fa-solid fa-angles-up fa-lg", 'aria-hidden' => true }
|
||||
- unless event_schedule.start_time.strftime('%H:%M').eql?(time)
|
||||
.col-xs-12.col-md-1
|
||||
.start-time
|
||||
= time = event_schedule.start_time.strftime('%H:%M')
|
||||
.col-xs-12.col-md-11
|
||||
.new-time-event
|
||||
= render partial: 'event', locals: { event: event_schedule.event, event_schedule: event_schedule }
|
||||
- else
|
||||
.col-xs-12.col-md-11.col-md-offset-1
|
||||
.col-xs-12.col-md-1
|
||||
.start-time
|
||||
= event_schedule.start_time.strftime('%-I:%M %p')
|
||||
.col-xs-12.col-md-11
|
||||
.new-time-event
|
||||
= render partial: 'event', locals: { event: event_schedule.event, event_schedule: event_schedule }
|
||||
|
||||
/ confirmed events that are not scheduled
|
||||
|
|
|
|||
0
bin/bundle
Executable file → Normal file
0
bin/bundle
Executable file → Normal file
0
bin/bundle_report
Executable file → Normal file
0
bin/bundle_report
Executable file → Normal file
0
bin/delayed_job
Executable file → Normal file
0
bin/delayed_job
Executable file → Normal file
0
bin/deprecations
Executable file → Normal file
0
bin/deprecations
Executable file → Normal file
0
bin/gem-next-diff
Executable file → Normal file
0
bin/gem-next-diff
Executable file → Normal file
0
bin/next
Executable file → Normal file
0
bin/next
Executable file → Normal file
0
bin/rails
Executable file → Normal file
0
bin/rails
Executable file → Normal file
0
bin/rake
Executable file → Normal file
0
bin/rake
Executable file → Normal file
0
bin/rspec
Executable file → Normal file
0
bin/rspec
Executable file → Normal file
0
spec/models/conference_spec.rb
Executable file → Normal file
0
spec/models/conference_spec.rb
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue