Merge pull request #1358 from divyanshumehta/issue_1326

Changed Ruby syntax in views
This commit is contained in:
Stella Rouzi 2017-03-20 17:19:28 +02:00 committed by GitHub
commit a325eccc77
74 changed files with 371 additions and 376 deletions

View file

@ -9,7 +9,7 @@
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@campaign, :url => (@campaign.new_record? ? admin_conference_campaigns_path : admin_conference_campaign_path(@conference.short_title, @campaign))) do |f| = semantic_form_for(@campaign, url: (@campaign.new_record? ? admin_conference_campaigns_path : admin_conference_campaign_path(@conference.short_title, @campaign))) do |f|
= f.inputs do = f.inputs do
= f.input :name = f.input :name
= f.inputs name: 'UTM Parameters' do = f.inputs name: 'UTM Parameters' do

View file

@ -5,7 +5,7 @@
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@cfp, url: admin_conference_program_cfp_path(@conference.short_title), html: {multipart: true}) do |f| = semantic_form_for(@cfp, url: admin_conference_program_cfp_path(@conference.short_title), html: {multipart: true}) do |f|
= f.input :start_date, as: :string, input_html: { id: "registration-period-start-datepicker", start_date: @conference.start_date, end_date: @conference.end_date, readonly: "readonly" } = f.input :start_date, as: :string, input_html: { id: 'registration-period-start-datepicker', start_date: @conference.start_date, end_date: @conference.end_date, readonly: 'readonly' }
= f.input :end_date, as: :string, input_html: { id: "registration-period-end-datepicker", readonly: "readonly" } = f.input :end_date, as: :string, input_html: { id: 'registration-period-end-datepicker', readonly: 'readonly' }
%p.text-right %p.text-right
= f.action :submit, as: :button, button_html: { class: "btn btn-primary" } = f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }

View file

@ -7,15 +7,15 @@
.col-md-12 .col-md-12
%ul.nav.nav-tabs#commentsTable %ul.nav.nav-tabs#commentsTable
%li.active %li.active
%a{:href=>"#unread_comments", "data-toggle"=>"tab"} %a{ href: '#unread_comments', 'data-toggle' => 'tab' }
%span.fa.fa-comment %span.fa.fa-comment
Unread Unread
%li %li
%a{:href=>"#posted_comments", "data-toggle"=>"tab"} %a{ href: '#posted_comments', 'data-toggle' => 'tab' }
%span.fa.fa-pencil %span.fa.fa-pencil
Posted Posted
%li %li
%a{:href=>"#all_comments", "data-toggle"=>"tab"} %a{ href: '#all_comments', 'data-toggle' => 'tab' }
%span.fa.fa-comments-o %span.fa.fa-comments-o
All All
.tab-content .tab-content

View file

@ -4,7 +4,7 @@
%h1 Commercials %h1 Commercials
%p.text-muted %p.text-muted
Conference commercials will be displayed on the events in the Conference commercials will be displayed on the events in the
= link_to "schedule,", conference_schedule_path(@conference.short_title) = link_to 'schedule,', conference_schedule_path(@conference.short_title)
if the event speaker didn't add an event commercial. if the event speaker didn't add an event commercial.
- if can? :create, @conference.commercials.new - if can? :create, @conference.commercials.new
.row .row

View file

@ -16,7 +16,7 @@
.row .row
.col-md-12 .col-md-12
%div{ 'style' => 'display: none;', 'id' => "#{name}" } %div{ 'style' => 'display: none;', 'id' => "#{name}" }
- campaigns.drop(1).each do |(key, value)| - campaigns.drop(1).each do |(_key, value)|
%div %div
%p %p
Your target "#{value['target_name']}" from campaign "#{value['campaign_name']}" has generated Your target "#{value['target_name']}" from campaign "#{value['campaign_name']}" has generated

View file

@ -1,6 +1,6 @@
.text-center .text-center
%h4 #{title} %h4 #{title}
%canvas.doughnut_chart{"data-chart"=>data.to_json} %canvas.doughnut_chart{ 'data-chart' => data.to_json }
- if data - if data
- data.each do |key, value| - data.each do |key, value|
%span{"style"=>"border-bottom: 3px solid #{value['color']}"} #{key}: #{value['value']} %span{ 'style' => "border-bottom: 3px solid #{value['color']}" } #{key}: #{value['value']}

View file

@ -5,25 +5,25 @@
= title = title
.row .row
.col-md-12 .col-md-12
.chart_data{ "data-chart"=>"#{y.to_json}", "data-conferences"=>"#{conferences.to_json}", .chart_data{ 'data-chart' => "#{y.to_json}", 'data-conferences' => "#{conferences.to_json}",
"data-deactive"=>"#{deactive_conferences.to_json}", "data-weeks"=>"#{x.to_json}", 'data-deactive' => "#{deactive_conferences.to_json}", 'data-weeks' => "#{x.to_json}",
"data-active"=>"#{active_conferences.to_json}"} 'data-active' => "#{active_conferences.to_json}" }
%canvas.line_chart{ :id => "line_chart_#{name}", "data-name"=>"#{name}" } %canvas.line_chart{ id: "line_chart_#{name}", 'data-name' => "#{name}" }
.row .row
.col-md-12 .col-md-12
.text-center .text-center
= unit = unit
.row .row
.col-md-12 .col-md-12
.conferenceCheckboxes{ :id => "#{name}Checkboxes", "data-name"=>"#{name}" } .conferenceCheckboxes{ id: "#{name}Checkboxes", 'data-name' => "#{name}" }
- if active_conferences && deactive_conferences && conferences && conferences.length > 1 - if active_conferences && deactive_conferences && conferences && conferences.length > 1
- active_conferences.each do |conference| - active_conferences.each do |conference|
%div %div
%span{ "style"=>"border-bottom: 3px solid #{conference[:color]};", "data-chart"=> "#{name}" } %span{ 'style' => "border-bottom: 3px solid #{conference[:color]};", 'data-chart' => "#{name}" }
%input{ "type"=>"checkbox", "name"=>"#{conference[:short_title]}", "checked"=>"checked"} %input{ 'type' => 'checkbox', 'name' => "#{conference[:short_title]}", 'checked' => 'checked' }
#{conference[:short_title]} #{conference[:short_title]}
- deactive_conferences.each do |conference| - deactive_conferences.each do |conference|
%div %div
%span{"style"=>"border-bottom: 3px solid #{conference[:color]};", "data-chart"=> "#{name}" } %span{ 'style' => "border-bottom: 3px solid #{conference[:color]};", 'data-chart' => "#{name}" }
%input{"type"=>"checkbox", "name"=>"#{conference[:short_title]}" } %input{ 'type' => 'checkbox', 'name' => "#{conference[:short_title]}" }
#{conference[:short_title]} #{conference[:short_title]}

View file

@ -6,7 +6,7 @@
- @top_submitter.each do |key, value| - @top_submitter.each do |key, value|
.row.top-submitter .row.top-submitter
.col-md-2 .col-md-2
= image_tag(key.gravatar_url(size: '25'), title: "Yo #{key.name}!", :alt => '', 'class'=>'img-circle img-responsive text-center') = image_tag(key.gravatar_url(size: '25'), title: "Yo #{key.name}!", alt: '', 'class' => 'img-circle img-responsive text-center')
.col-md-10 .col-md-10
%h4 %h4
= link_to key.name, admin_user_path(key) = link_to key.name, admin_user_path(key)

View file

@ -6,23 +6,23 @@
The most basic settings of your conference The most basic settings of your conference
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@conference, :url => admin_conference_path(@conference.short_title),:html => {:multipart => true}) do |f| = semantic_form_for(@conference, url: admin_conference_path(@conference.short_title), html: {multipart: true}) do |f|
= f.input :title, :hint => "The full title of the conference, e.g. 'openSUSE Conference 2014'" = f.input :title, hint: "The full title of the conference, e.g. 'openSUSE Conference 2014'"
= f.input :short_title, :hint => "A short title, e.g. 'oSC14', to be used in URLs" = f.input :short_title, hint: "A short title, e.g. 'oSC14', to be used in URLs"
= f.input :description, hint: markdown_hint('A description of the conference.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } } = f.input :description, hint: markdown_hint('A description of the conference.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
= f.input :color, :hint => "The color will be used eg for the dashboard.", :input_html => {:size => 6, :type => "color"} = f.input :color, hint: 'The color will be used eg for the dashboard.', input_html: {size: 6, type: 'color'}
= f.label 'Conference Logo' = f.label 'Conference Logo'
%br %br
- if @conference.picture? - if @conference.picture?
= image_tag @conference.picture.thumb.url = image_tag @conference.picture.thumb.url
= f.input :picture, :label => false, :hint => "This will be displayed on the front page." = f.input :picture, label: false, hint: 'This will be displayed on the front page.'
= f.hidden_field :picture_cache = f.hidden_field :picture_cache
= f.inputs :name => "Scheduling" do = f.inputs name: 'Scheduling' do
= f.input :timezone, :as => :time_zone, :hint => "The conference time zone" = f.input :timezone, as: :time_zone, hint: 'The conference time zone'
= f.input :start_date, :as => :string, :input_html => { :id => "conference-start-datepicker", :readonly => "readonly" } = f.input :start_date, as: :string, input_html: { id: 'conference-start-datepicker', readonly: 'readonly' }
= f.input :end_date, :as => :string, :input_html => { :id => "conference-end-datepicker", :readonly => "readonly" } = f.input :end_date, as: :string, input_html: { id: 'conference-end-datepicker', readonly: 'readonly' }
= f.input :start_hour, :input_html => {size: 2, type: 'number', min: 0, max: 23} = f.input :start_hour, input_html: {size: 2, type: 'number', min: 0, max: 23}
= f.input :end_hour, :input_html => {size: 2, type: 'number', min: 1, max: 24} = f.input :end_hour, input_html: {size: 2, type: 'number', min: 1, max: 24}
= f.inputs name: "Registrations" do = f.inputs name: 'Registrations' do
= f.input :registration_limit, as: :number, in: 0..9999, hint: "Limit the number of registrations to the conference (0 no limit). You currently have " + pluralize(@conference.registrations.count,'registration') = f.input :registration_limit, as: :number, in: 0..9999, hint: 'Limit the number of registrations to the conference (0 no limit). You currently have ' + pluralize(@conference.registrations.count, 'registration')
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"} = f.action :submit, as: :button, button_html: {class: 'btn btn-primary'}

View file

@ -64,15 +64,15 @@
.col-md-8 .col-md-8
%ul.nav.nav-tabs#recentTable %ul.nav.nav-tabs#recentTable
%li.active %li.active
%a{:href=>"#recent_user", "data-toggle"=>"tab"} %a{ href: '#recent_user', 'data-toggle' => 'tab' }
%span.fa.fa-user %span.fa.fa-user
Recent Users Recent Users
%li %li
%a{:href=>"#recent_reg", "data-toggle"=>"tab"} %a{ href: '#recent_reg', 'data-toggle' => 'tab' }
%span.fa.fa-check-square %span.fa.fa-check-square
Recent Registrations Recent Registrations
%li %li
%a{:href=>"#recent_submissions", "data-toggle"=>"tab"} %a{ href: '#recent_submissions', 'data-toggle' => 'tab' }
%span.fa.fa-file-text %span.fa.fa-file-text
Recent Submissions Recent Submissions
.tab-content .tab-content

View file

@ -1,11 +1,11 @@
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@conference, :url => admin_conferences_path) do |f| = semantic_form_for(@conference, url: admin_conferences_path) do |f|
= f.inputs 'Basic Information' do = f.inputs 'Basic Information' do
= f.input :title, hint: "The name of your conference as it shall appear throughout the site. Example: 'OpenSUSE Conference 2013'", = f.input :title, hint: "The name of your conference as it shall appear throughout the site. Example: 'OpenSUSE Conference 2013'",
input_html: { required: 'required' } input_html: { required: 'required' }
= f.input :short_title, hint: "A short and unique handle for your conference, using only letters, numbers, underscores, and dashes. This will be used to identify your conference in URLs etc. Example: 'froscon2011'", = f.input :short_title, hint: "A short and unique handle for your conference, using only letters, numbers, underscores, and dashes. This will be used to identify your conference in URLs etc. Example: 'froscon2011'",
input_html: { required: 'required', pattern: '[a-zA-Z0-9_-]+', title: 'Only letters, numbers, underscores, and dashes.' }, :prepend => conferences_url + '/' input_html: { required: 'required', pattern: '[a-zA-Z0-9_-]+', title: 'Only letters, numbers, underscores, and dashes.' }, prepend: conferences_url + '/'
= f.inputs 'Scheduling' do = f.inputs 'Scheduling' do
= f.input :timezone, as: :time_zone, default: Time.zone.name, hint: 'Please select in what time zone your conference will take place.' = f.input :timezone, as: :time_zone, default: Time.zone.name, hint: 'Please select in what time zone your conference will take place.'
= f.input :start_date, as: :string, input_html: { id: 'conference-start-datepicker', required: 'required' } = f.input :start_date, as: :string, input_html: { id: 'conference-start-datepicker', required: 'required' }

View file

@ -73,11 +73,11 @@
.col-md-12#doughnut .col-md-12#doughnut
%ul.nav.nav-tabs#doughnut_tabs %ul.nav.nav-tabs#doughnut_tabs
%li.active %li.active
%a{:href=>"#distribution_all", "data-toggle"=>"tab"} %a{ href: '#distribution_all', 'data-toggle' => 'tab' }
%span.fa.fa-star %span.fa.fa-star
All All
%li %li
%a{:href=>"#distribution_confirmed", "data-toggle"=>"tab"} %a{ href: '#distribution_confirmed', 'data-toggle' => 'tab' }
%span.fa.fa-comment %span.fa.fa-comment
Confirmed Confirmed
.tab-content .tab-content
@ -102,11 +102,11 @@
.col-md-8 .col-md-8
%ul.nav.nav-tabs#recentTable %ul.nav.nav-tabs#recentTable
%li.active %li.active
%a{:href=>"#recent_reg", "data-toggle"=>"tab"} %a{ href: '#recent_reg', 'data-toggle' => 'tab' }
%span.fa.fa-user %span.fa.fa-user
Recent Registrations Recent Registrations
%li %li
%a{:href=>"#recent_submissions", "data-toggle"=>"tab"} %a{ href: '#recent_submissions', 'data-toggle' => 'tab' }
%span.fa.fa-file-text %span.fa.fa-file-text
Recent Submissions Recent Submissions
.tab-content .tab-content

View file

@ -6,11 +6,11 @@
How people can contact you How people can contact you
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@contact, :url => admin_conference_contact_path(@conference.short_title),:html => {:multipart => true}) do |f| = semantic_form_for(@contact, url: admin_conference_contact_path(@conference.short_title), html: {multipart: true}) do |f|
= f.inputs :name => 'Mail' do = f.inputs name: 'Mail' do
= f.input :email, hint: 'Contact email address for your conference. Will be used as reply-to address in emails sent out by the system.' = f.input :email, hint: 'Contact email address for your conference. Will be used as reply-to address in emails sent out by the system.'
= f.input :sponsor_email, hint: 'This will appear in the sponsor segment of the splash for the sponsors to contact to the organizers' = f.input :sponsor_email, hint: 'This will appear in the sponsor segment of the splash for the sponsors to contact to the organizers'
= f.inputs :name => 'Social Media' do = f.inputs name: 'Social Media' do
= f.input :social_tag, hint: "The hashtag you'll use on Twitter and Google+. Don't include the '#' sign!'" = f.input :social_tag, hint: "The hashtag you'll use on Twitter and Google+. Don't include the '#' sign!'"
= f.input :facebook, hint: 'This will appear in the social media section as link to the Facebook page of your Conference' = f.input :facebook, hint: 'This will appear in the social media section as link to the Facebook page of your Conference'
= f.input :googleplus, label: 'Google+ Url', hint: 'This will appear in the social media section as the link to the Google+ Page of your Conference' = f.input :googleplus, label: 'Google+ Url', hint: 'This will appear in the social media section as the link to the Google+ Page of your Conference'

View file

@ -8,9 +8,9 @@
= @difficulty_level.title = @difficulty_level.title
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@difficulty_level, :url => (@difficulty_level.new_record? ? admin_conference_program_difficulty_levels_path : admin_conference_program_difficulty_level_path(@conference.short_title, @difficulty_level))) do |f| = semantic_form_for(@difficulty_level, url: (@difficulty_level.new_record? ? admin_conference_program_difficulty_levels_path : admin_conference_program_difficulty_level_path(@conference.short_title, @difficulty_level))) do |f|
= f.input :title, :required => true = f.input :title, required: true
= f.input :description, :input_html => {:rows => 3, :class => "span6"} = f.input :description, input_html: {rows: 3, class: 'span6'}
= f.input :color, :input_html => {:size => 6, :type => "color"} = f.input :color, input_html: {size: 6, type: 'color'}
%p.text-right %p.text-right
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' } = f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }

View file

@ -23,7 +23,7 @@
%span.label{ style: "background-color: #{difficulty_level.color}; color: #{ contrast_color(difficulty_level.color) };" } %span.label{ style: "background-color: #{difficulty_level.color}; color: #{ contrast_color(difficulty_level.color) };" }
= difficulty_level.color = difficulty_level.color
%td %td
.btn-group{role: "group"} .btn-group{ role: 'group' }
= link_to 'Edit', edit_admin_conference_program_difficulty_level_path(@conference.short_title, difficulty_level.id), = link_to 'Edit', edit_admin_conference_program_difficulty_level_path(@conference.short_title, difficulty_level.id),
method: :get, class: 'btn btn-primary' method: :get, class: 'btn btn-primary'
= link_to 'Delete', admin_conference_program_difficulty_level_path(@conference.short_title, difficulty_level.id), = link_to 'Delete', admin_conference_program_difficulty_level_path(@conference.short_title, difficulty_level.id),

View file

@ -1,4 +1,4 @@
.template-help{:id => id} .template-help{ id: id }
Valid attributes: Valid attributes:
%table.table %table.table
%tr %tr

View file

@ -3,103 +3,103 @@
= semantic_form_for(@settings, url: admin_conference_email_path(@conference.short_title, @conference.email_settings), html: {multipart: true}) do |f| = semantic_form_for(@settings, url: admin_conference_email_path(@conference.short_title, @conference.email_settings), html: {multipart: true}) do |f|
.row .row
.col-md-12 .col-md-12
%div{role: "tabpanel"} %div{ role: 'tabpanel' }
/ Nav tabs / Nav tabs
%ul.nav.nav-tabs{role: "tablist"} %ul.nav.nav-tabs{ role: 'tablist' }
%li.active{role: "presentation"} %li.active{ role: 'presentation' }
%a{"aria-controls" => "onboarding", "data-toggle" => "tab", href: "#onboarding", role: "tab"} Onboarding %a{ 'aria-controls' => 'onboarding', 'data-toggle' => 'tab', href: '#onboarding', role: 'tab' } Onboarding
%li{role: "presentation"} %li{ role: 'presentation' }
%a{"aria-controls" => "proposal", "data-toggle" => "tab", href: "#proposal", role: "tab"} Proposal %a{ 'aria-controls' => 'proposal', 'data-toggle' => 'tab', href: '#proposal', role: 'tab' } Proposal
%li{role: "presentation"} %li{ role: 'presentation' }
%a{"aria-controls" => "notifications", "data-toggle" => "tab", href: "#notifications", role: "tab"} Update Notifications %a{ 'aria-controls' => 'notifications', 'data-toggle' => 'tab', href: '#notifications', role: 'tab' } Update Notifications
%li{role: "presentation"} %li{ role: 'presentation' }
%a{"aria-controls" => "cfp", "data-toggle" => "tab", href: "#cfp", role: "tab"} Call for Papers %a{ 'aria-controls' => 'cfp', 'data-toggle' => 'tab', href: '#cfp', role: 'tab' } Call for Papers
/ Tab panes / Tab panes
.tab-content .tab-content
#onboarding.tab-pane.active{role: "tabpanel"} #onboarding.tab-pane.active{ role: 'tabpanel' }
= f.input :send_on_registration, label: "Send an email when the user registers for the conference?", input_html: {"data-name"=>"email_settings_registration_subject", "class"=>"send_on_radio"} = f.input :send_on_registration, label: 'Send an email when the user registers for the conference?', input_html: {'data-name' => 'email_settings_registration_subject', 'class' => 'send_on_radio'}
= f.input :registration_subject = f.input :registration_subject
= f.input :registration_body, input_html: { rows: 10, cols: 20 } = f.input :registration_body, input_html: { rows: 10, cols: 20 }
%a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_registration_subject', 'data-subject-text' => 'Thank you for registering', %a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_registration_subject', 'data-subject-text' => 'Thank you for registering',
'data-body-input-id' => 'email_settings_registration_body', 'data-body-input-id' => 'email_settings_registration_body',
'data-body-text' => "Dear {name},\n\nThank you for Registering for the conference {conference}.\nPlease complete your registration by filling out your travel information.\n\nIf you are unable to attend please unregister online:\n{registrationlink}\n\nFeel free to contact us with any questions or concerns.\nWe look forward to see you there.\n\nBest wishes\n\n{conference} Team" } Load Template 'data-body-text' => "Dear {name},\n\nThank you for Registering for the conference {conference}.\nPlease complete your registration by filling out your travel information.\n\nIf you are unable to attend please unregister online:\n{registrationlink}\n\nFeel free to contact us with any questions or concerns.\nWe look forward to see you there.\n\nBest wishes\n\n{conference} Team" } Load Template
%a.btn.btn-link.control_label.template_help_link{"data-name"=>"registration_help"} Show Help %a.btn.btn-link.control_label.template_help_link{ 'data-name' => 'registration_help' } Show Help
= render partial: 'help', locals: { id: 'registration_help', show_event_variables: false } = render partial: 'help', locals: { id: 'registration_help', show_event_variables: false }
#proposal.tab-pane{role: "tabpanel"} #proposal.tab-pane{ role: 'tabpanel' }
= f.input :send_on_accepted, label: "Send an email when the proposal is accepted?", input_html: {"data-name"=>"email_settings_accepted_subject", "class"=>"send_on_radio"} = f.input :send_on_accepted, label: 'Send an email when the proposal is accepted?', input_html: { 'data-name' => 'email_settings_accepted_subject', 'class' => 'send_on_radio' }
= f.input :accepted_subject = f.input :accepted_subject
= f.input :accepted_body, input_html: { rows: 10, cols: 20 } = f.input :accepted_body, input_html: { rows: 10, cols: 20 }
%a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_accepted_subject', %a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_accepted_subject',
'data-subject-text' => 'Your submission has been accepted', 'data-subject-text' => 'Your submission has been accepted',
'data-body-input-id' => 'email_settings_accepted_body', 'data-body-input-id' => 'email_settings_accepted_body',
'data-body-text' => "Dear {name}\n\nWe are very pleased to inform you that your submission {eventtitle} has been accepted for the conference {conference}.\n\nThe public page of your submission can be found at:\n{proposalslink}\nIf you haven´t already registered for {conference}, please do as soon as possible:\n{registrationlink}\n\nFeel free to contact us with any questions or concerns.\n\nWe look forward to seeing you there.\n\nBest wishes\n\n{conference} Team" } Load Template 'data-body-text' => "Dear {name}\n\nWe are very pleased to inform you that your submission {eventtitle} has been accepted for the conference {conference}.\n\nThe public page of your submission can be found at:\n{proposalslink}\nIf you haven´t already registered for {conference}, please do as soon as possible:\n{registrationlink}\n\nFeel free to contact us with any questions or concerns.\n\nWe look forward to seeing you there.\n\nBest wishes\n\n{conference} Team" } Load Template
%a.btn.btn-link.control_label.template_help_link{"data-name"=>"accepted_help"} Show Help %a.btn.btn-link.control_label.template_help_link{ 'data-name' => 'accepted_help' } Show Help
= render partial: 'help', locals: { id: 'accepted_help', show_event_variables: true } = render partial: 'help', locals: { id: 'accepted_help', show_event_variables: true }
= f.input :send_on_rejected, label: "Send an email when the proposal is rejected?", input_html: {"data-name"=>"email_settings_rejected_subject", "class"=>"send_on_radio"} = f.input :send_on_rejected, label: 'Send an email when the proposal is rejected?', input_html: { 'data-name' => 'email_settings_rejected_subject', 'class' => 'send_on_radio' }
= f.input :rejected_subject = f.input :rejected_subject
= f.input :rejected_body, input_html: { rows: 10, cols: 20 } = f.input :rejected_body, input_html: { rows: 10, cols: 20 }
%a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_rejected_subject', %a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_rejected_subject',
'data-subject-text' => 'Your submission has been rejected', 'data-subject-text' => 'Your submission has been rejected',
'data-body-input-id' => 'email_settings_rejected_body', 'data-body-input-id' => 'email_settings_rejected_body',
'data-body-text' => "Dear {name},\n\nThank you for your submission {eventtitle} for the conference {conference}.\nAfter careful consideration we are sorry to inform you that your submission has been rejected.\n\n\nBest wishes\n\n{conference} Team" } Load Template 'data-body-text' => "Dear {name},\n\nThank you for your submission {eventtitle} for the conference {conference}.\nAfter careful consideration we are sorry to inform you that your submission has been rejected.\n\n\nBest wishes\n\n{conference} Team" } Load Template
%a.btn.btn-link.control_label.template_help_link{"data-name"=>"rejected_help"} Show Help %a.btn.btn-link.control_label.template_help_link{ 'data-name' => 'rejected_help' } Show Help
= render partial: 'help', locals: {id: 'rejected_help', show_event_variables: true} = render partial: 'help', locals: {id: 'rejected_help', show_event_variables: true}
= f.input :send_on_confirmed_without_registration, label: "Send an email when a user has a confirmed proposal, but isn't yet registered?", input_html: {"data-name"=>"email_settings_confirmed_without_registration_subject", "class"=>"send_on_radio"} = f.input :send_on_confirmed_without_registration, label: "Send an email when a user has a confirmed proposal, but isn't yet registered?", input_html: {'data-name' => 'email_settings_confirmed_without_registration_subject', 'class' => 'send_on_radio'}
= f.input :confirmed_without_registration_subject = f.input :confirmed_without_registration_subject
= f.input :confirmed_without_registration_body, input_html: { rows: 10, cols: 20 } = f.input :confirmed_without_registration_body, input_html: { rows: 10, cols: 20 }
%a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_confirmed_without_registration_subject', %a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_confirmed_without_registration_subject',
'data-subject-text' => 'Your proposal has been confirmed without registration', 'data-subject-text' => 'Your proposal has been confirmed without registration',
'data-body-input-id' => 'email_settings_confirmed_without_registration_body', 'data-body-input-id' => 'email_settings_confirmed_without_registration_body',
'data-body-text' => "Dear {name},\n\nThank you for the confirmation of {eventtitle}. Unfortunately you are not registered for the conference {conference}. Please register as soon as possible:\n{registrationlink}\n\nFeel free to contact us with any questions or concerns.\n\nWe look forward to seeing you there.\n\nBest wishes\n\n{conference} Team" } Load Template 'data-body-text' => "Dear {name},\n\nThank you for the confirmation of {eventtitle}. Unfortunately you are not registered for the conference {conference}. Please register as soon as possible:\n{registrationlink}\n\nFeel free to contact us with any questions or concerns.\n\nWe look forward to seeing you there.\n\nBest wishes\n\n{conference} Team" } Load Template
%a.btn.btn-link.control_label.template_help_link{"data-name"=>"confirmed_help"} Show Help %a.btn.btn-link.control_label.template_help_link{ 'data-name' => 'confirmed_help' } Show Help
= render partial: 'help', locals: {id: 'confirmed_help', show_event_variables: true} = render partial: 'help', locals: {id: 'confirmed_help', show_event_variables: true}
#notifications.tab-pane{role: "tabpanel"} #notifications.tab-pane{ role: 'tabpanel' }
= f.input :send_on_conference_dates_updated, label: "This is to notify all participants that the conference dates has been changed.", input_html: {"data-name"=>"email_settings_conference_dates_updated_subject", "class"=>"send_on_radio"} = f.input :send_on_conference_dates_updated, label: 'This is to notify all participants that the conference dates has been changed.', input_html: { 'data-name' => 'email_settings_conference_dates_updated_subject', 'class' => 'send_on_radio' }
= f.input :conference_dates_updated_subject = f.input :conference_dates_updated_subject
= f.input :conference_dates_updated_body, input_html: { rows: 10, cols: 20 } = f.input :conference_dates_updated_body, input_html: { rows: 10, cols: 20 }
%a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_conference_dates_updated_subject', %a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_conference_dates_updated_subject',
'data-subject-text' => 'The dates of the conference have changed', 'data-subject-text' => 'The dates of the conference have changed',
'data-body-input-id' => 'email_settings_conference_dates_updated_body', 'data-body-input-id' => 'email_settings_conference_dates_updated_body',
'data-body-text' => "Dear {name},\n\nThe date of {conference} has changed.\n New Dates : {conference_start_date} - {conference_end_date}.\n\nFeel free to contact us with any questions or concerns.\n\nWe look forward to seeing you there.\n\nBest wishes\n\n{conference} Team" } Load Template 'data-body-text' => "Dear {name},\n\nThe date of {conference} has changed.\n New Dates : {conference_start_date} - {conference_end_date}.\n\nFeel free to contact us with any questions or concerns.\n\nWe look forward to seeing you there.\n\nBest wishes\n\n{conference} Team" } Load Template
%a.btn.btn-link.control_label.template_help_link{"data-name"=>"updated_dates_help"} Show Help %a.btn.btn-link.control_label.template_help_link{ 'data-name' => 'updated_dates_help' } Show Help
= render partial: 'help', locals: {id: 'updated_dates_help', show_event_variables: false} = render partial: 'help', locals: {id: 'updated_dates_help', show_event_variables: false}
= f.input :send_on_conference_registration_dates_updated, label: "This is to notify all participants that the conference registration dates has been changed.", input_html: {"data-name"=>"email_settings_conference_registration_dates_updated_subject", "class"=>"send_on_radio"} = f.input :send_on_conference_registration_dates_updated, label: 'This is to notify all participants that the conference registration dates has been changed.', input_html: {'data-name' => 'email_settings_conference_registration_dates_updated_subject', 'class' => 'send_on_radio'}
= f.input :conference_registration_dates_updated_subject = f.input :conference_registration_dates_updated_subject
= f.input :conference_registration_dates_updated_body, input_html: { rows: 10, cols: 20 } = f.input :conference_registration_dates_updated_body, input_html: { rows: 10, cols: 20 }
%a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_conference_registration_dates_updated_subject', %a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_conference_registration_dates_updated_subject',
'data-subject-text' => 'The registration dates have changed', 'data-subject-text' => 'The registration dates have changed',
'data-body-input-id' => 'email_settings_conference_registration_dates_updated_body', 'data-body-input-id' => 'email_settings_conference_registration_dates_updated_body',
'data-body-text' => "Dear {name},\n\nThe registration date of {conference} has changed.\n New Dates : {registration_start_date} - {registration_end_date}.\n\nFeel free to contact us with any questions or concerns.\n\nWe look forward to seeing you there.\n\nBest wishes\n\n{conference} Team" } Load Template 'data-body-text' => "Dear {name},\n\nThe registration date of {conference} has changed.\n New Dates : {registration_start_date} - {registration_end_date}.\n\nFeel free to contact us with any questions or concerns.\n\nWe look forward to seeing you there.\n\nBest wishes\n\n{conference} Team" } Load Template
%a.btn.btn-link.control_label.template_help_link{"data-name"=>"updated_registrations_dates_help"} Show Help %a.btn.btn-link.control_label.template_help_link{ 'data-name' => 'updated_registrations_dates_help' } Show Help
= render partial: 'help', locals: {id: 'updated_registrations_dates_help', show_event_variables: false} = render partial: 'help', locals: {id: 'updated_registrations_dates_help', show_event_variables: false}
= f.input :send_on_venue_updated, label: 'Send an email on updating the Venue.', input_html: {"data-name"=>"email_settings_venue_updated_subject", "class"=>"send_on_radio"} = f.input :send_on_venue_updated, label: 'Send an email on updating the Venue.', input_html: { 'data-name' => 'email_settings_venue_updated_subject', 'class' => 'send_on_radio' }
= f.input :venue_updated_subject = f.input :venue_updated_subject
= f.input :venue_updated_body, input_html: { rows: 10, cols: 20 } = f.input :venue_updated_body, input_html: { rows: 10, cols: 20 }
%a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_venue_updated_subject', %a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_venue_updated_subject',
'data-subject-text' => 'The venue has changed', 'data-subject-text' => 'The venue has changed',
'data-body-input-id' => 'email_settings_venue_updated_body', 'data-body-input-id' => 'email_settings_venue_updated_body',
'data-body-text' => "Dear {name},\n\nThe Conference venue of {conference} has changed. New location is: {venue}.\n Address: {venue_address}.\n\nFeel free to contact us with any questions or concerns.\n\nWe look forward to seeing you there.\n\nBest wishes\n\n{conference} Team" } Load Template 'data-body-text' => "Dear {name},\n\nThe Conference venue of {conference} has changed. New location is: {venue}.\n Address: {venue_address}.\n\nFeel free to contact us with any questions or concerns.\n\nWe look forward to seeing you there.\n\nBest wishes\n\n{conference} Team" } Load Template
%a.btn.btn-link.control_label.template_help_link{"data-name"=>"updated_venue_help"} Show Help %a.btn.btn-link.control_label.template_help_link{ 'data-name' => 'updated_venue_help' } Show Help
= render partial: 'help', locals: {id: 'updated_venue_help', show_event_variables: false} = render partial: 'help', locals: {id: 'updated_venue_help', show_event_variables: false}
#cfp.tab-pane{role: "tabpanel"} #cfp.tab-pane{ role: 'tabpanel' }
= f.input :send_on_program_schedule_public, hint: "This will notify all participants when the dates are updated or when the schedule is made public" = f.input :send_on_program_schedule_public, hint: 'This will notify all participants when the dates are updated or when the schedule is made public'
= f.input :program_schedule_public_subject, hint: "This subject will used whenever dates are updated or when the schedule is made public" = f.input :program_schedule_public_subject, hint: 'This subject will used whenever dates are updated or when the schedule is made public'
= f.input :program_schedule_public_body, input_html: { rows: 10, cols: 20 } = f.input :program_schedule_public_body, input_html: { rows: 10, cols: 20 }
%a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_program_schedule_public_subject', %a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_program_schedule_public_subject',
'data-subject-text' => 'The schedule has been released', 'data-subject-text' => 'The schedule has been released',
'data-body-input-id' => 'email_settings_program_schedule_public_body', 'data-body-input-id' => 'email_settings_program_schedule_public_body',
'data-body-text' => "Dear {name},\n\nThe schedule for {conference} has been announced.\nLink to Schedule {schedule_link}\n\nBest wishes\n{conference} Team" } Load Template 'data-body-text' => "Dear {name},\n\nThe schedule for {conference} has been announced.\nLink to Schedule {schedule_link}\n\nBest wishes\n{conference} Team" } Load Template
%a.btn.btn-link.control_label.template_help_link{"data-name"=>"updated_cfp_help"} Show Help %a.btn.btn-link.control_label.template_help_link{ 'data-name' => 'updated_cfp_help' } Show Help
= render partial: 'help', locals: {id: 'updated_cfp_help', show_event_variables: false} = render partial: 'help', locals: {id: 'updated_cfp_help', show_event_variables: false}
= f.input :send_on_cfp_dates_updated, hint: "This will notify all participants when the dates are updated or when the schedule is made public" = f.input :send_on_cfp_dates_updated, hint: 'This will notify all participants when the dates are updated or when the schedule is made public'
= f.input :cfp_dates_updated_subject, hint: "This subject will used whenever dates are updated or when the schedule is made public" = f.input :cfp_dates_updated_subject, hint: 'This subject will used whenever dates are updated or when the schedule is made public'
= f.input :cfp_dates_updated_body, input_html: { rows: 10, cols: 20 } = f.input :cfp_dates_updated_body, input_html: { rows: 10, cols: 20 }
%a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_cfp_dates_updated_subject', %a.btn.btn-link.control_label.load_template{ 'data-subject-input-id' => 'email_settings_cfp_dates_updated_subject',
'data-subject-text' => 'The Call for Papers dates have changed', 'data-subject-text' => 'The Call for Papers dates have changed',
'data-body-input-id' => 'email_settings_cfp_dates_updated_body', 'data-body-input-id' => 'email_settings_cfp_dates_updated_body',
'data-body-text' => "Dear {name},\n\nThe Conference Call for Papers Details of {conference} has changed.\nNew Dates : {cfp_start_date} - {cfp_end_date}.\n Link to Schedule {schedule_link} \n\nBest wishes\n\n{conference} Team" } Load Template 'data-body-text' => "Dear {name},\n\nThe Conference Call for Papers Details of {conference} has changed.\nNew Dates : {cfp_start_date} - {cfp_end_date}.\n Link to Schedule {schedule_link} \n\nBest wishes\n\n{conference} Team" } Load Template
%a.btn.btn-link.control_label.template_help_link{"data-name"=>"updated_cfp_help"} Show Help %a.btn.btn-link.control_label.template_help_link{ 'data-name' => 'updated_cfp_help' } Show Help
= render partial: 'help', locals: {id: 'updated_cfp_help', show_event_variables: false} = render partial: 'help', locals: {id: 'updated_cfp_help', show_event_variables: false}
.row .row
.col-md-12 .col-md-12
= f.action :submit, as: :button, button_html: {class: "btn btn-primary"} = f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }

View file

@ -8,12 +8,12 @@
= @event_type.title = @event_type.title
.row .row
.col-md-12 .col-md-12
= semantic_form_for(@event_type, :url => (@event_type.new_record? ? admin_conference_program_event_types_path : admin_conference_program_event_type_path(@conference.short_title, @event_type))) do |f| = semantic_form_for(@event_type, url: (@event_type.new_record? ? admin_conference_program_event_types_path : admin_conference_program_event_type_path(@conference.short_title, @event_type))) do |f|
= f.input :title = f.input :title
= f.input :length, :input_html => {size: 3, type: 'number', step: EventType::LENGTH_STEP, min: EventType::LENGTH_STEP} = f.input :length, input_html: {size: 3, type: 'number', step: EventType::LENGTH_STEP, min: EventType::LENGTH_STEP}
= f.input :description = f.input :description
= f.input :minimum_abstract_length, :input_html => {:size => 3} = f.input :minimum_abstract_length, input_html: {size: 3}
= f.input :maximum_abstract_length, :input_html => {:size => 3} = f.input :maximum_abstract_length, input_html: {size: 3}
= f.input :color, :input_html => { :size => 6, :type => 'color' } = f.input :color, input_html: { size: 6, type: 'color' }
%p.text-right %p.text-right
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' } = f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }

View file

@ -31,7 +31,7 @@
%span.label{ style: "background-color: #{event_type.color}; color: #{ contrast_color(event_type.color) };" } %span.label{ style: "background-color: #{event_type.color}; color: #{ contrast_color(event_type.color) };" }
= event_type.color = event_type.color
%td %td
.btn-group{role: "group"} .btn-group{ role: 'group' }
= link_to 'Edit', edit_admin_conference_program_event_type_path(@conference.short_title, event_type.id), = link_to 'Edit', edit_admin_conference_program_event_type_path(@conference.short_title, event_type.id),
method: :get, class: 'btn btn-primary' method: :get, class: 'btn btn-primary'
= link_to 'Delete', admin_conference_program_event_type_path(@conference.short_title, event_type.id), = link_to 'Delete', admin_conference_program_event_type_path(@conference.short_title, event_type.id),

View file

@ -9,7 +9,7 @@
'Difficulty Level', 'Difficulty Level',
'Room', 'Room',
'State'] 'State']
= CSV.generate_line ["All Events"] = CSV.generate_line ['All Events']
= CSV.generate_line headers = CSV.generate_line headers
- @events.each do |event| - @events.each do |event|
= CSV.generate_line([event.id, event.title, event.abstract, (event.time.present? ? "#{event.time.strftime("%Y-%m-%d")} #{event.time.strftime("%I:%M%p")} " : ''), = CSV.generate_line([event.id, event.title, event.abstract, (event.time.present? ? "#{event.time.strftime("%Y-%m-%d")} #{event.time.strftime("%I:%M%p")} " : ''),

View file

@ -4,12 +4,12 @@
%i= comment.created_at %i= comment.created_at
%p.comment-body= comment.body %p.comment-body= comment.body
%div %div
%a.pull-right.comment-reply-link{href: "#"} Reply %a.pull-right.comment-reply-link{ href: '#' } Reply
.comment-reply .comment-reply
= semantic_form_for :comment, url: "#{comment_admin_conference_program_event_path(@conference.short_title, comment.commentable_id)}", method: :post do |f| = semantic_form_for :comment, url: '#{comment_admin_conference_program_event_path(@conference.short_title, comment.commentable_id)}', method: :post do |f|
= f.input :body = f.input :body
%input{name: "parent", type: "hidden", value: "#{comment.id}"} %input{ name: 'parent', type: 'hidden', value: '#{comment.id}' }
%input{name: "authenticity_token", type: "hidden", value: "#{form_authenticity_token}"} %input{ name: 'authenticity_token', type: 'hidden', value: '#{form_authenticity_token}' }
%button.btn.btn-primary.pull-right{name: "button", type: "submit"} Add Reply %button.btn.btn-primary.pull-right{ name: 'button', type: 'submit' } Add Reply
- comment.children.each do |child| - comment.children.each do |child|
= render "nested_comments", comment: child, padding: 50 = render 'nested_comments', comment: child, padding: 50

View file

@ -3,4 +3,3 @@
= f.input :email = f.input :email
= f.input :name = f.input :name
= remove_association_link :user, f = remove_association_link :user, f

View file

@ -31,9 +31,9 @@
- if @program.voting_period? - if @program.voting_period?
- @program.rating.times do |counter| - @program.rating.times do |counter|
- if @event.voted?(current_user) && @event.user_rating(current_user) == counter + 1 - if @event.voted?(current_user) && @event.user_rating(current_user) == counter + 1
= link_to "", vote_admin_conference_program_event_path(@conference.short_title, @event, :rating => counter+1), :remote => true, :id =>"label#{counter+1}", :class => "myrating", :voted => true = link_to '', vote_admin_conference_program_event_path(@conference.short_title, @event, rating: counter + 1), remote: true, id: "label#{counter + 1}", class: 'myrating', voted: true
- else - else
= link_to "", vote_admin_conference_program_event_path(@conference.short_title, @event, :rating => counter+1), :remote => true, :id =>"label#{counter+1}", :class => "myrating" = link_to '', vote_admin_conference_program_event_path(@conference.short_title, @event, rating: counter + 1), remote: true, id: "label#{counter + 1}", class: 'myrating'
%br %br
- else - else
- @conference.program.rating.times do |counter| - @conference.program.rating.times do |counter|
@ -55,10 +55,10 @@
- @conference.program.rating.times do |counter| - @conference.program.rating.times do |counter|
- if @event.voted?(rate.user) && @event.user_rating(rate.user) == counter + 1 - if @event.voted?(rate.user) && @event.user_rating(rate.user) == counter + 1
= label_tag "label#{counter+1}", "", :class => "othersrating", :voted => true = label_tag "label#{counter + 1}", "", class: 'othersrating', voted: true
= javascript_tag "$('label[voted=true]').prevAll().andSelf().addClass('bright');" = javascript_tag "$('label[voted=true]').prevAll().andSelf().addClass('bright');"
- else - else
= label_tag "label#{counter+1}", "", :class => "othersrating" = label_tag "label#{counter + 1}", "", class: 'othersrating'
:javascript :javascript
$(function () { $(function () {
var checkedId = $("a[voted='true']").attr('id'); var checkedId = $("a[voted='true']").attr('id');

View file

@ -7,26 +7,26 @@
.btn-group.pull-right .btn-group.pull-right
- if can? :read, Event - if can? :read, Event
.btn-group .btn-group
%button.btn.btn-default.dropdown-toggle{"data-toggle" => "dropdown", :type => "button", :class => 'btn btn-success'} %button.btn.btn-default.dropdown-toggle{ 'data-toggle' => 'dropdown', type: 'button', class: 'btn btn-success' }
Export PDF Export PDF
%span.caret %span.caret
%ul.dropdown-menu{:role => "menu"} %ul.dropdown-menu{ role: 'menu' }
%li= link_to 'All Events', admin_conference_program_events_path(@conference.short_title, format: :pdf, event_export_option: 'all') %li= link_to 'All Events', admin_conference_program_events_path(@conference.short_title, format: :pdf, event_export_option: 'all')
%li= link_to 'Confirmed Events', admin_conference_program_events_path(@conference.short_title, format: :pdf, event_export_option: 'confirmed') %li= link_to 'Confirmed Events', admin_conference_program_events_path(@conference.short_title, format: :pdf, event_export_option: 'confirmed')
%li= link_to 'All Events with Comments', admin_conference_program_events_path(@conference.short_title, format: :pdf, event_export_option: 'all_with_comments') %li= link_to 'All Events with Comments', admin_conference_program_events_path(@conference.short_title, format: :pdf, event_export_option: 'all_with_comments')
.btn-group .btn-group
%button.btn.btn-default.dropdown-toggle{"data-toggle" => "dropdown", :type => "button", :class => 'btn btn-success'} %button.btn.btn-default.dropdown-toggle{ 'data-toggle' => 'dropdown', type: 'button', class: 'btn btn-success' }
Export CSV Export CSV
%span.caret %span.caret
%ul.dropdown-menu{:role => "menu"} %ul.dropdown-menu{ role: 'menu' }
%li= link_to 'All', admin_conference_program_events_path(@conference.short_title, format: :csv, event_export_option: 'all') %li= link_to 'All', admin_conference_program_events_path(@conference.short_title, format: :csv, event_export_option: 'all')
%li= link_to 'Confirmed', admin_conference_program_events_path(@conference.short_title, format: :csv, event_export_option: 'confirmed') %li= link_to 'Confirmed', admin_conference_program_events_path(@conference.short_title, format: :csv, event_export_option: 'confirmed')
%li= link_to 'All with Comments', admin_conference_program_events_path(@conference.short_title, format: :csv, event_export_option: 'all_with_comments') %li= link_to 'All with Comments', admin_conference_program_events_path(@conference.short_title, format: :csv, event_export_option: 'all_with_comments')
.btn-group .btn-group
%button.btn.btn-default.dropdown-toggle{"data-toggle" => "dropdown", :type => "button", :class => 'btn btn-success'} %button.btn.btn-default.dropdown-toggle{ 'data-toggle' => 'dropdown', type: 'button', class: 'btn btn-success' }
Export XLS Export XLS
%span.caret %span.caret
%ul.dropdown-menu{:role => "menu"} %ul.dropdown-menu{ role: 'menu' }
%li= link_to 'All', admin_conference_program_events_path(@conference.short_title, format: :xlsx, event_export_option: 'all') %li= link_to 'All', admin_conference_program_events_path(@conference.short_title, format: :xlsx, event_export_option: 'all')
%li= link_to 'Confirmed', admin_conference_program_events_path(@conference.short_title, format: :xlsx, event_export_option: 'confirmed') %li= link_to 'Confirmed', admin_conference_program_events_path(@conference.short_title, format: :xlsx, event_export_option: 'confirmed')
%li= link_to 'All with Comments', admin_conference_program_events_path(@conference.short_title, format: :xlsx, event_export_option: 'all_with_comments') %li= link_to 'All with Comments', admin_conference_program_events_path(@conference.short_title, format: :xlsx, event_export_option: 'all_with_comments')
@ -41,7 +41,7 @@
= render partial: 'admin/conferences/doughnut_chart', locals: { title: 'Tracks of confirmed events', data: @tracks_distribution_confirmed } = render partial: 'admin/conferences/doughnut_chart', locals: { title: 'Tracks of confirmed events', data: @tracks_distribution_confirmed }
.row .row
.col-md-12 .col-md-12
%div.margin-event-table .margin-event-table
%table.table.table-striped.table-bordered.table-hover.datatable %table.table.table-striped.table-bordered.table-hover.datatable
%thead %thead
%th %th
@ -84,10 +84,10 @@
= render partial: 'voting_index', locals: { event: event } = render partial: 'voting_index', locals: { event: event }
- if event.submitter && event.submitter.registrations && event.submitter.registrations.count < 1 - if event.submitter && event.submitter.registrations && event.submitter.registrations.count < 1
- bgcolor="#F7819F" - bgcolor = '#F7819F'
- else - else
- bgcolor="" - bgcolor = ''
%td{:style=>"background-color: #{bgcolor}"} %td{ style: "background-color: #{bgcolor}" }
- if @program.show_voting? - if @program.show_voting?
- unless event.submitter.nil? - unless event.submitter.nil?
= link_to event.submitter.name, admin_user_path(event.submitter) = link_to event.submitter.name, admin_user_path(event.submitter)

View file

@ -1,11 +1,11 @@
.tabbable .tabbable
%ul.nav.nav-tabs %ul.nav.nav-tabs
%li.active %li.active
= link_to "Proposal", "#proposal-content", "data-toggle"=>"tab" = link_to 'Proposal', '#proposal-content', 'data-toggle' => 'tab'
%li %li
= link_to "History", "#history-content", "data-toggle"=>"tab" = link_to 'History', '#history-content', 'data-toggle' => 'tab'
%li %li
%a{href: '#proposal-tasks', "data-toggle"=>"tab"} %a{ href: '#proposal-tasks', 'data-toggle' => 'tab' }
Tasks Tasks
%span.label.label-danger{ style: 'border-radius: 1em;' } %span.label.label-danger{ style: 'border-radius: 1em;' }
- progress_status = @event.progress_status - progress_status = @event.progress_status

View file

@ -8,7 +8,7 @@
= @lodging.name = @lodging.name
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@lodging, :url => (@lodging.new_record? ? admin_conference_lodgings_path : admin_conference_lodging_path(@conference.short_title, @lodging))) do |f| = semantic_form_for(@lodging, url: (@lodging.new_record? ? admin_conference_lodgings_path : admin_conference_lodging_path(@conference.short_title, @lodging))) do |f|
= f.input :name = f.input :name
= f.input :website_link = f.input :website_link
= f.input :description, input_html: { rows: 5, cols: 20, data: { provide: 'markdown-editable' } }, hint: markdown_hint = f.input :description, input_html: { rows: 5, cols: 20, data: { provide: 'markdown-editable' } }, hint: markdown_hint

View file

@ -5,8 +5,8 @@
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@program, url: admin_conference_program_path(@conference.short_title), html: {multipart: true}) do |f| = semantic_form_for(@program, url: admin_conference_program_path(@conference.short_title), html: {multipart: true}) do |f|
= f.input :schedule_public, label: "Show Schedule on the home and splash page" = f.input :schedule_public, label: 'Show Schedule on the home and splash page'
= f.input :schedule_fluid, label: "Allow submitters to change their event after it is scheduled" = f.input :schedule_fluid, label: 'Allow submitters to change their event after it is scheduled'
= f.input :rating, hint: 'Enter the number of different rating levels you want to have for voting on proposals. Enter 0 if you do not want to vote on proposals.' = f.input :rating, hint: 'Enter the number of different rating levels you want to have for voting on proposals. Enter 0 if you do not want to vote on proposals.'
= f.input :languages, hint: "Enter the languages allowed for events as values of #{link_to('ISO 639-1', 'http://www.loc.gov/standards/iso639-2/php/code_list.php', target: "_blank")} language codes separated with commas. The first language would be the default language. Leave it blank if you do not want to specify languages.".html_safe = f.input :languages, hint: "Enter the languages allowed for events as values of #{link_to('ISO 639-1', 'http://www.loc.gov/standards/iso639-2/php/code_list.php', target: "_blank")} language codes separated with commas. The first language would be the default language. Leave it blank if you do not want to specify languages.".html_safe
= f.input :blind_voting, hint: 'Enable this feature if you do not want to show voting results and voters prior to user submitting a vote. For the feature to work you need to set the voting dates below as well' = f.input :blind_voting, hint: 'Enable this feature if you do not want to show voting results and voters prior to user submitting a vote. For the feature to work you need to set the voting dates below as well'

View file

@ -8,8 +8,8 @@
= @room.name = @room.name
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@room, :url => (@room.new_record? ? admin_conference_venue_rooms_path : admin_conference_venue_room_path(@conference.short_title, @room))) do |f| = semantic_form_for(@room, url: (@room.new_record? ? admin_conference_venue_rooms_path : admin_conference_venue_room_path(@conference.short_title, @room))) do |f|
= f.input :name, input_html: { autofocus: true} = f.input :name, input_html: { autofocus: true}
= f.input :size, :input_html => {:size => 5} = f.input :size, input_html: {size: 5}
%p.text-right %p.text-right
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' } = f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }

View file

@ -8,7 +8,7 @@
= @sponsor.name = @sponsor.name
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@sponsor, :url => (@sponsor.new_record? ? admin_conference_sponsors_path : admin_conference_sponsor_path(@conference.short_title, @sponsor))) do |f| = semantic_form_for(@sponsor, url: (@sponsor.new_record? ? admin_conference_sponsors_path : admin_conference_sponsor_path(@conference.short_title, @sponsor))) do |f|
= f.input :name = f.input :name
= f.input :description = f.input :description
= image_tag f.object.picture.thumb.url if f.object.picture? = image_tag f.object.picture.thumb.url if f.object.picture?

View file

@ -8,7 +8,7 @@
= @sponsorship_level.title = @sponsorship_level.title
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@sponsorship_level, :url => (@sponsorship_level.new_record? ? admin_conference_sponsorship_levels_path : admin_conference_sponsorship_level_path(@conference.short_title, @sponsorship_level))) do |f| = semantic_form_for(@sponsorship_level, url: (@sponsorship_level.new_record? ? admin_conference_sponsorship_levels_path : admin_conference_sponsorship_level_path(@conference.short_title, @sponsorship_level))) do |f|
= f.input :title = f.input :title
%p.text-right %p.text-right
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' } = f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }

View file

@ -7,7 +7,7 @@
Target Target
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@target, :url => (@target.new_record? ? admin_conference_targets_path : admin_conference_target_path(@conference.short_title, @target))) do |f| = semantic_form_for(@target, url: (@target.new_record? ? admin_conference_targets_path : admin_conference_target_path(@conference.short_title, @target))) do |f|
= f.input :due_date, as: :string, input_html: { class: 'target-due-date-datepicker'}, label: 'Until when do you want to have ' = f.input :due_date, as: :string, input_html: { class: 'target-due-date-datepicker'}, label: 'Until when do you want to have '
= f.input :target_count, label: 'this amount of ' = f.input :target_count, label: 'this amount of '
= f.input :unit, as: :select, label: 'Unit', class: 'form-control', collection: Target.units.values, include_blank: false, label: 'units ' = f.input :unit, as: :select, label: 'Unit', class: 'form-control', collection: Target.units.values, include_blank: false, label: 'units '

View file

@ -8,7 +8,7 @@
Ticket Ticket
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@ticket, :url => (@ticket.new_record? ? admin_conference_tickets_path : admin_conference_ticket_path(@conference.short_title, @ticket))) do |f| = semantic_form_for(@ticket, url: (@ticket.new_record? ? admin_conference_tickets_path : admin_conference_ticket_path(@conference.short_title, @ticket))) do |f|
= f.input :title = f.input :title
= f.input :description, input_html: { rows: 5, data: { provide: "markdown-editable" } } = f.input :description, input_html: { rows: 5, data: { provide: "markdown-editable" } }
= f.input :price = f.input :price

View file

@ -2,7 +2,7 @@
.col-md-12 .col-md-12
.page-header .page-header
%h1 %h1
%div{"data-placement" => "left", "data-toggle" => "tooltip", :title => @ticket.description} %div{"data-placement" => "left", "data-toggle" => "tooltip", title: @ticket.description}
= @ticket.title = @ticket.title
Ticket Ticket
%small %small

View file

@ -8,8 +8,8 @@
Track Track
.row .row
.col-md-12 .col-md-12
= semantic_form_for(@track, :url => (@track.new_record? ? admin_conference_program_tracks_path : admin_conference_program_track_path(@conference.short_title, @track))) do |f| = semantic_form_for(@track, url: (@track.new_record? ? admin_conference_program_tracks_path : admin_conference_program_track_path(@conference.short_title, @track))) do |f|
= f.input :name = f.input :name
= f.input :color, :input_html => {:size => 6, :type => "color"}, :required=> true = f.input :color, input_html: {size: 6, type: 'color'}, required: true
= f.input :description, :input_html => {:rows => 2, data: { provide: "markdown-editable" } }, hint: markdown_hint = f.input :description, input_html: {rows: 2, data: { provide: 'markdown-editable' } }, hint: markdown_hint
= f.action :submit, as: :button, button_html: { class: 'btn btn-primary' } = f.action :submit, as: :button, button_html: { class: 'btn btn-primary' }

View file

@ -18,10 +18,10 @@
readonly: true, readonly: true,
data: { size: 'small', on_color: 'success', off_color: 'warning', on_text: 'Yes', off_text: 'No' } data: { size: 'small', on_color: 'success', off_color: 'warning', on_text: 'Yes', off_text: 'No' }
= f.input :is_admin, hint: 'An admin can create a new conference, manage users and make other users admins.' = f.input :is_admin, hint: 'An admin can create a new conference, manage users and make other users admins.'
= f.input :name, :as => :string = f.input :name, as: :string
= f.input :email = f.input :email
= f.input :affiliation, :as => :string = f.input :affiliation, as: :string
= f.input :biography, input_html: { rows: 10, data: { provide: 'markdown-editable' } }, = f.input :biography, input_html: { rows: 10, data: { provide: 'markdown-editable' } },
hint: markdown_hint hint: markdown_hint
= f.actions do = f.actions do
= f.action :submit, :button_html => {:class => "btn btn-primary"} = f.action :submit, button_html: {class: 'btn btn-primary'}

View file

@ -1,7 +1,7 @@
<div class="nested-fields"> <div class="nested-fields">
<%= f.inputs do %> <%= f.inputs do %>
<%= f.date_select :day %> <%= f.date_select :day %>
<%= f.input :description, :input_html => {:rows => "2", :class => "col-md-8"} %> <%= f.input :description, input_html: {rows: '2', class: 'col-md-8'} %>
<%= remove_association_link :vday, f %> <%= remove_association_link :vday, f %>
<% end %> <% end %>
</div> </div>

View file

@ -1,8 +1,8 @@
<div class="nested-fields"> <div class="nested-fields">
<%= f.inputs do %> <%= f.inputs do %>
<%= f.input :title %> <%= f.input :title %>
<%= f.input :description, :input_html => {:rows => "2", :class => "col-md-8"}%> <%= f.input :description, input_html: {rows: '2', class: 'col-md-8'}%>
<%= f.input :vdays, :collection => @conference.vdays.map {|x| [x.day, x.id]}, :label => "Position is required for the following days:"%> <%= f.input :vdays, collection: @conference.vdays.map {|x| [x.day, x.id]}, label: 'Position is required for the following days:'%>
<%= remove_association_link :vposition, f %> <%= remove_association_link :vposition, f %>
<% end %> <% end %>
</div> </div>

View file

@ -1,14 +1,14 @@
.row .row
.col-md-8 .col-md-8
= semantic_form_for(@conference, :url => admin_conference_volunteers_update_path(@conference.short_title)) do |f| = semantic_form_for(@conference, url: admin_conference_volunteers_update_path(@conference.short_title)) do |f|
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"} = f.action :submit, as: :button, button_html: {class: 'btn btn-primary'}
%br %br
%br %br
= f.input :use_volunteers, :label => "Enable Volunteering" = f.input :use_volunteers, label: 'Enable Volunteering'
.row .row
.col-md-6 .col-md-6
= f.input :use_vdays, :label => false = f.input :use_vdays, label: false
= dynamic_association :vdays, "Volunteer Days", f = dynamic_association :vdays, "Volunteer Days", f
.col-md-6 .col-md-6
= f.input :use_vpositions, :label => false = f.input :use_vpositions, label: false
= dynamic_association :vpositions, "Volunteer positions", f = dynamic_association :vpositions, "Volunteer positions", f

View file

@ -1,6 +1,6 @@
- if @volunteers.count > 0 - if @volunteers.count > 0
%h3= "Volunteers (#{@volunteers.count})" %h3= "Volunteers (#{@volunteers.count})"
%br %br
= render :partial => "volunteers_table" = render partial: 'volunteers_table'
- else - else
%h3 There are no volunteers yet! %h3 There are no volunteers yet!

View file

@ -1 +1 @@
= render :partial => "form" = render partial: 'form'

View file

@ -1 +1 @@
= render :partial => "form" = render partial: 'form'

View file

@ -2,7 +2,7 @@
= f.inputs 'Additional Info' do = f.inputs 'Additional Info' do
- @conference.questions.each do |question| - @conference.questions.each do |question|
- if question.question_type.title == 'Yes/No' || question.question_type.title == 'Single Choice' - if question.question_type.title == 'Yes/No' || question.question_type.title == 'Single Choice'
= f.input :qanswers, :collection => question.qanswers.joins(:answer).pluck("answers.title, qanswers.id"), :as => :select, :input_html => { :multiple => false }, = f.input :qanswers, collection: question.qanswers.joins(:answer).pluck("answers.title, qanswers.id"), as: :select, input_html: { multiple: false },
label: question.title, :include_blank => "Please make your choice" label: question.title, include_blank: 'Please make your choice'
- if question.question_type.title == 'Multiple Choice' - if question.question_type.title == 'Multiple Choice'
= f.input :qanswers, :collection => question.qanswers.joins(:answer).pluck("answers.title, qanswers.id"), :as => :check_boxes, label: question.title = f.input :qanswers, collection: question.qanswers.joins(:answer).pluck("answers.title, qanswers.id"), as: :check_boxes, label: question.title

View file

@ -1,15 +1,15 @@
.row .row
.col-md-12 .col-md-12
= f.input :volunteer, :label => "Click here if you want to become a volunteer at #{@conference.short_title}", :input_html => {:maxlength => 15, :size => 40} = f.input :volunteer, label: "Click here if you want to become a volunteer at #{@conference.short_title}", input_html: {maxlength: 15, size: 40}
= f.fields_for :user do |u| = f.fields_for :user do |u|
= render :partial => 'devise/registrations/volunteeruser', :locals => {:u => u} = render partial: 'devise/registrations/volunteeruser', locals: {u: u}
%br %br
- if @conference.vpositions.count > 0 - if @conference.vpositions.count > 0
%h4 %h4
%u Positions that require volunteers: %u Positions that require volunteers:
- @conference.vpositions.each do |pos| - @conference.vpositions.each do |pos|
%p{:style => "font-weight:bold"} %p{style: "font-weight:bold"}
= pos.title = pos.title
= "(#{pos.description})" if pos.description = "(#{pos.description})" if pos.description
= f.input :vchoices, :collection => pos.vchoices.map {|x| [x.vday.day, x.id]}, :label => "Choose days to volunteer:" = f.input :vchoices, collection: pos.vchoices.map {|x| [x.vday.day, x.id]}, label: "Choose days to volunteer:"

View file

@ -50,7 +50,7 @@
%strong %strong
= q.title = q.title
- if @registration.qanswers.any? - if @registration.qanswers.any?
- @registration.qanswers.where(:question_id => q.id).each do |qa| - @registration.qanswers.where(question_id: q.id).each do |qa|
= qa.answer.title = qa.answer.title
- else - else
You haven't answered You haven't answered

View file

@ -20,20 +20,20 @@
.btn-group-vertical .btn-group-vertical
- if !@conference || @conference != conference - if !@conference || @conference != conference
- if conference.splashpage && conference.splashpage.public - if conference.splashpage && conference.splashpage.public
= link_to "View Conference", conference_path(conference.short_title), :class =>"btn btn-default" = link_to "View Conference", conference_path(conference.short_title), class: 'btn btn-default'
- if conference.program and conference.program.schedule_public - if conference.program and conference.program.schedule_public
= link_to "Schedule", conference_schedule_path(conference.short_title), :class =>"btn btn-default" = link_to "Schedule", conference_schedule_path(conference.short_title), class: 'btn btn-default'
- if conference.registration_open? - if conference.registration_open?
- if conference.user_registered?(current_user) - if conference.user_registered?(current_user)
= link_to "My Registration", conference_conference_registration_path(conference.short_title), :class =>"btn btn-default" = link_to "My Registration", conference_conference_registration_path(conference.short_title), class: 'btn btn-default'
- else - else
= link_to "Register", new_conference_conference_registration_path(conference.short_title), class: "btn btn-default", disabled: conference.registration_limit_exceeded? = link_to "Register", new_conference_conference_registration_path(conference.short_title), class: "btn btn-default", disabled: conference.registration_limit_exceeded?
- if conference.registration_limit_exceeded? - if conference.registration_limit_exceeded?
Sorry, no places left Sorry, no places left
- if !current_user.nil? && current_user.proposal_count(conference) > 0 - if !current_user.nil? && current_user.proposal_count(conference) > 0
= link_to "My Proposals", conference_program_proposals_path(conference.short_title), :class =>"btn btn-default" = link_to "My Proposals", conference_program_proposals_path(conference.short_title), class: 'btn btn-default'
- elsif can? :new, conference.program.events.new - elsif can? :new, conference.program.events.new
= link_to "Submit Proposal", new_conference_program_proposal_path(conference.short_title), :class =>"btn btn-default" = link_to "Submit Proposal", new_conference_program_proposal_path(conference.short_title), class: 'btn btn-default'
- if current_user.nil? || !current_user.subscribed?(conference) - if current_user.nil? || !current_user.subscribed?(conference)
= link_to 'Subscribe', conference_subscriptions_path(conference.short_title), method: :post, class: 'btn btn-default' = link_to 'Subscribe', conference_subscriptions_path(conference.short_title), method: :post, class: 'btn btn-default'
- else - else

View file

@ -29,7 +29,3 @@
} }
}); });
}); });

View file

@ -1,7 +1,7 @@
= u.input :mobile, :label => "Mobile No (Include country code)", :input_html => {:placeholder => "Eg. +336812345679"}, :hint => "Only visible to org team & volunteer coordinator" = u.input :mobile, label: 'Mobile No (Include country code)', input_html: {placeholder: 'Eg. +336812345679'}, hint: 'Only visible to org team & volunteer coordinator'
= u.input :tshirt, :label => "Tshirt Size", :collection => [["Choose", nil],["XS","XS"],["S","S"],["M", "M"], ["L", "L"], ["XL", "XL"], ["XXL", "XXL"], ["XXXL", "XXXL"], ["Girl-S","Girl-s"], ["Girl-M","Girl-M"], ["Girl-L","Girl-L"], ["Girl-XL","Girl-XL"]] = u.input :tshirt, label: "Tshirt Size", collection: [["Choose", nil],["XS","XS"],["S","S"],["M", "M"], ["L", "L"], ["XL", "XL"], ["XXL", "XXL"], ["XXXL", "XXXL"], ["Girl-S","Girl-s"], ["Girl-M","Girl-M"], ["Girl-L","Girl-L"], ["Girl-XL","Girl-XL"]]
= u.input :languages, :label => "Which languages do you speak", :hint => "Start from the one you speak best and use 2 letter symbolization, eg. EN, GR, DE" = u.input :languages, label: "Which languages do you speak", hint: "Start from the one you speak best and use 2 letter symbolization, eg. EN, GR, DE"
= u.input :volunteer_experience, :label => "Do you have any past experience?", :input_html => {:rows => 3, :class => "span6"} = u.input :volunteer_experience, label: "Do you have any past experience?", input_html: {rows: 3, class: 'span6'}

View file

@ -4,4 +4,4 @@
= link_to "user_#{provider}_omniauth_authorize".to_sym, class: "btn btn-success btn-lg", = link_to "user_#{provider}_omniauth_authorize".to_sym, class: "btn btn-success btn-lg",
id: "omniauth-#{provider}", id: "omniauth-#{provider}",
title: "Your #{provider} login" do title: "Your #{provider} login" do
%i{:class => "fa fa-#{provider}"} %i{class: "fa fa-#{provider}"}

View file

@ -23,12 +23,12 @@
New Conference New Conference
%hr %hr
- if can? :show, @conference - if can? :show, @conference
%li{:class=> "#{active_nav_li(admin_conference_path(@conference.short_title))} nav-header nav-header-bigger"} %li{class: "#{active_nav_li(admin_conference_path(@conference.short_title))} nav-header nav-header-bigger"}
= link_to(admin_conference_path(@conference.short_title)) do = link_to(admin_conference_path(@conference.short_title)) do
%span.fa.fa-tachometer %span.fa.fa-tachometer
Dashboard Dashboard
- if can? :show, @conference - if can? :show, @conference
%li{:class=> "#{active_nav_li(edit_admin_conference_path(@conference.short_title))}"} %li{class: "#{active_nav_li(edit_admin_conference_path(@conference.short_title))}"}
- if can? :edit, @conference - if can? :edit, @conference
= link_to(edit_admin_conference_path(@conference.short_title)) do = link_to(edit_admin_conference_path(@conference.short_title)) do
%span.fa.fa-home %span.fa.fa-home
@ -39,66 +39,66 @@
Basics Basics
%ul %ul
- if can? :update, Contact.new(conference_id: @conference.id) - if can? :update, Contact.new(conference_id: @conference.id)
%li{:class=> "#{active_nav_li(edit_admin_conference_contact_path(@conference.short_title))}"} %li{class: "#{active_nav_li(edit_admin_conference_contact_path(@conference.short_title))}"}
= link_to 'Contact', edit_admin_conference_contact_path(@conference.short_title) = link_to 'Contact', edit_admin_conference_contact_path(@conference.short_title)
- if can? :index, @conference.commercials.build - if can? :index, @conference.commercials.build
%li{:class=> "#{active_nav_li(admin_conference_commercials_path(@conference.short_title))}"} %li{class: "#{active_nav_li(admin_conference_commercials_path(@conference.short_title))}"}
= link_to 'Commercials', admin_conference_commercials_path(@conference.short_title) = link_to 'Commercials', admin_conference_commercials_path(@conference.short_title)
- if can? :update, @conference - if can? :update, @conference
%li{:class=> active_nav_li(edit_admin_conference_splashpage_path(@conference.short_title))} %li{class: active_nav_li(edit_admin_conference_splashpage_path(@conference.short_title))}
= link_to 'Splashpage', admin_conference_splashpage_path(@conference.short_title) = link_to 'Splashpage', admin_conference_splashpage_path(@conference.short_title)
- if can? :show, Venue.new(conference_id: @conference.id) - if can? :show, Venue.new(conference_id: @conference.id)
%li{:class=> "#{active_nav_li(admin_conference_venue_path(@conference.short_title))}"} %li{class: "#{active_nav_li(admin_conference_venue_path(@conference.short_title))}"}
= link_to(admin_conference_venue_path(@conference.short_title)) do = link_to(admin_conference_venue_path(@conference.short_title)) do
%span.fa.fa-road %span.fa.fa-road
Venue Venue
%ul %ul
- if @conference.venue && @conference.venue.persisted? && (can? :update, @conference.venue.rooms.build) - if @conference.venue && @conference.venue.persisted? && (can? :update, @conference.venue.rooms.build)
%li{:class=> active_nav_li(admin_conference_venue_rooms_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_venue_rooms_path(@conference.short_title))}
= link_to 'Rooms', admin_conference_venue_rooms_path(@conference.short_title) = link_to 'Rooms', admin_conference_venue_rooms_path(@conference.short_title)
- if can? :update, @conference.lodgings.build - if can? :update, @conference.lodgings.build
%li{ class: active_nav_li(admin_conference_lodgings_path(@conference.short_title)) } %li{ class: active_nav_li(admin_conference_lodgings_path(@conference.short_title)) }
= link_to 'Lodgings', admin_conference_lodgings_path(@conference.short_title) = link_to 'Lodgings', admin_conference_lodgings_path(@conference.short_title)
- if can? :show, @conference.program - if can? :show, @conference.program
%li{:class=> "#{active_nav_li(admin_conference_program_path(@conference.short_title))}"} %li{class: "#{active_nav_li(admin_conference_program_path(@conference.short_title))}"}
= link_to admin_conference_program_path(@conference.short_title) do = link_to admin_conference_program_path(@conference.short_title) do
%span.fa.fa-calendar %span.fa.fa-calendar
Program Program
- if @conference.program - if @conference.program
%ul %ul
- if can? :update, Cfp.new(program_id: @conference.program.id) - if can? :update, Cfp.new(program_id: @conference.program.id)
%li{:class=> active_nav_li(admin_conference_program_cfp_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_program_cfp_path(@conference.short_title))}
= link_to 'Call for Papers', admin_conference_program_cfp_path(@conference.short_title) = link_to 'Call for Papers', admin_conference_program_cfp_path(@conference.short_title)
- if can? :update, @conference.program.events.build - if can? :update, @conference.program.events.build
%li{:class=> active_nav_li(admin_conference_program_events_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_program_events_path(@conference.short_title))}
= link_to 'Events', admin_conference_program_events_path(@conference.short_title) = link_to 'Events', admin_conference_program_events_path(@conference.short_title)
- if can? :update, @conference.program.tracks.build - if can? :update, @conference.program.tracks.build
%li{:class=> active_nav_li(admin_conference_program_tracks_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_program_tracks_path(@conference.short_title))}
= link_to 'Tracks', admin_conference_program_tracks_path(@conference.short_title) = link_to 'Tracks', admin_conference_program_tracks_path(@conference.short_title)
- if can? :update, @conference.program.event_types.build - if can? :update, @conference.program.event_types.build
%li{:class=> active_nav_li(admin_conference_program_event_types_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_program_event_types_path(@conference.short_title))}
= link_to 'Event Types', admin_conference_program_event_types_path(@conference.short_title) = 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 - 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))} %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 'Difficulty Levels', admin_conference_program_difficulty_levels_path(@conference.short_title)
- if can? :update, @conference.program.schedules.build - if can? :update, @conference.program.schedules.build
%li{class: active_nav_li(admin_conference_schedules_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_schedules_path(@conference.short_title))}
= link_to 'Schedules', admin_conference_schedules_path(@conference.short_title) = link_to 'Schedules', admin_conference_schedules_path(@conference.short_title)
- if can? :update, @conference.program.events.build - if can? :update, @conference.program.events.build
%li{:class=> active_nav_li(reports_admin_conference_program_path(@conference.short_title))} %li{class: active_nav_li(reports_admin_conference_program_path(@conference.short_title))}
= link_to 'Reports', reports_admin_conference_program_path(@conference.short_title) = link_to 'Reports', reports_admin_conference_program_path(@conference.short_title)
- if can? :update, Registration.new(conference_id: @conference.id) - if can? :update, Registration.new(conference_id: @conference.id)
%li{:class=> active_nav_li(admin_conference_registrations_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_registrations_path(@conference.short_title))}
= link_to(admin_conference_registrations_path(@conference.short_title)) do = link_to(admin_conference_registrations_path(@conference.short_title)) do
%span.fa.fa-user %span.fa.fa-user
Registrations Registrations
%ul %ul
- if can? :update, @conference - if can? :update, @conference
%li{:class=> active_nav_li(admin_conference_registration_period_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_registration_period_path(@conference.short_title))}
= link_to 'Registration Period', admin_conference_registration_period_path(@conference.short_title) = link_to 'Registration Period', admin_conference_registration_period_path(@conference.short_title)
- if can? :update, Question.new(conference_id: @conference.id) - if can? :update, Question.new(conference_id: @conference.id)
%li{:class=> active_nav_li(admin_conference_questions_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_questions_path(@conference.short_title))}
= link_to 'Questions', admin_conference_questions_path(@conference.short_title) = link_to 'Questions', admin_conference_questions_path(@conference.short_title)
- if (can? :manage, @conference.sponsorship_levels.build) || (can? :manage, @conference.sponsors.build) || (can? :manage, @conference.tickets.build) - if (can? :manage, @conference.sponsorship_levels.build) || (can? :manage, @conference.sponsors.build) || (can? :manage, @conference.tickets.build)
@ -108,10 +108,10 @@
Donations Donations
%ul %ul
- if can? :update, @conference.sponsorship_levels.build - if can? :update, @conference.sponsorship_levels.build
%li{:class=> "#{active_nav_li(admin_conference_sponsorship_levels_path(@conference.short_title))}" } %li{class: "#{active_nav_li(admin_conference_sponsorship_levels_path(@conference.short_title))}" }
= link_to 'Sponsorship Levels', admin_conference_sponsorship_levels_path(@conference.short_title) = link_to 'Sponsorship Levels', admin_conference_sponsorship_levels_path(@conference.short_title)
- if !@conference.sponsorship_levels.empty? && @conference.sponsorship_levels.first.persisted? && (can? :update, @conference.sponsors.build) - if !@conference.sponsorship_levels.empty? && @conference.sponsorship_levels.first.persisted? && (can? :update, @conference.sponsors.build)
%li{:class=> active_nav_li(admin_conference_sponsors_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_sponsors_path(@conference.short_title))}
= link_to 'Sponsors', admin_conference_sponsors_path(@conference.short_title) = link_to 'Sponsors', admin_conference_sponsors_path(@conference.short_title)
- if can? :update, @conference.tickets.build - if can? :update, @conference.tickets.build
%li{class: active_nav_li(admin_conference_tickets_path(@conference.short_title)) } %li{class: active_nav_li(admin_conference_tickets_path(@conference.short_title)) }
@ -127,15 +127,15 @@
%li{class: active_nav_li(admin_conference_campaigns_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_campaigns_path(@conference.short_title))}
= link_to 'Campaigns', admin_conference_campaigns_path(@conference.short_title) = link_to 'Campaigns', admin_conference_campaigns_path(@conference.short_title)
- if can? :update, @conference.targets.build - if can? :update, @conference.targets.build
%li{:class=> "#{active_nav_li(admin_conference_targets_path(@conference.short_title))}"} %li{class: "#{active_nav_li(admin_conference_targets_path(@conference.short_title))}"}
= link_to 'Goals', admin_conference_targets_path(@conference.short_title) = link_to 'Goals', admin_conference_targets_path(@conference.short_title)
- if can? :update, @conference.email_settings - if can? :update, @conference.email_settings
%li{:class=> active_nav_li(admin_conference_emails_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_emails_path(@conference.short_title))}
= link_to(admin_conference_emails_path(@conference.short_title)) do = link_to(admin_conference_emails_path(@conference.short_title)) do
%span.fa.fa-envelope %span.fa.fa-envelope
E-Mails E-Mails
- if can? :index, Role.new(resource: @conference) - if can? :index, Role.new(resource: @conference)
%li{:class=> active_nav_li(admin_conference_roles_path(@conference.short_title))} %li{class: active_nav_li(admin_conference_roles_path(@conference.short_title))}
= link_to(admin_conference_roles_path(@conference.short_title)) do = link_to(admin_conference_roles_path(@conference.short_title)) do
%span.fa.fa-group %span.fa.fa-group
Roles Roles

View file

@ -10,7 +10,7 @@
- flash.each do |type, message| - flash.each do |type, message|
.row .row
.col-md-12 .col-md-12
%div{:class=>"alert alert-dismissable #{bootstrap_class_for(type)}", :id=>"flash"} %div{class: "alert alert-dismissable #{bootstrap_class_for(type)}", id: "flash"}
.button.close{"data-dismiss" => "alert", "aria-hidden"=>"true"} .button.close{"data-dismiss" => "alert", "aria-hidden"=>"true"}
&times; &times;
%p %p

View file

@ -1,7 +1,7 @@
.navbar.navbar-default.navbar-fixed-top.nav-osem{:role=>"navigation"} .navbar.navbar-default.navbar-fixed-top.nav-osem{role: 'navigation'}
.container .container
.navbar-header .navbar-header
%button{"data-target"=>".navbar-collapse", "data-toggle"=>"collapse", :class=>"navbar-toggle", :type=>"button"} %button{"data-target"=>".navbar-collapse", "data-toggle"=>"collapse", class: 'navbar-toggle', type: 'button'}
%span.sr-only %span.sr-only
Toggle navigation Toggle navigation
%span.icon-bar %span.icon-bar
@ -16,19 +16,19 @@
.btn-group.pull-right .btn-group.pull-right
%ul.nav.navbar-nav.navbar-right %ul.nav.navbar-nav.navbar-right
%li.dropdown %li.dropdown
%a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#", id: "current-user-detail"} %a.dropdown-toggle{"data-toggle" => "dropdown", href: '#', id: "current-user-detail"}
- if not current_user.name.blank? - if not current_user.name.blank?
#{current_user.name} #{current_user.name}
-else -else
#{current_user.email} #{current_user.email}
= image_tag(current_user.gravatar_url(size: '18'), title: "Yo #{current_user.name}!", :alt => '') = image_tag(current_user.gravatar_url(size: '18'), title: "Yo #{current_user.name}!", alt: '')
%b.caret %b.caret
%ul.dropdown-menu %ul.dropdown-menu
= render 'layouts/user_menu' = render 'layouts/user_menu'
- if can? :index, Comment - if can? :index, Comment
%ul.nav.navbar-nav.navbar-right %ul.nav.navbar-nav.navbar-right
%li.dropdown %li.dropdown
%a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"} %a.dropdown-toggle{"data-toggle" => "dropdown", href: '#'}
- if unread_notifications(current_user) - if unread_notifications(current_user)
Notifications (#{unread_notifications(current_user).length}) Notifications (#{unread_notifications(current_user).length})
%span.fa.fa-comment %span.fa.fa-comment
@ -44,17 +44,17 @@
- else - else
%ul.nav.navbar-nav.navbar-right %ul.nav.navbar-nav.navbar-right
- if ENV['OSEM_ICHAIN_ENABLED'] == 'true' - if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
%li{:class=> "#{active_nav_li(new_ichain_registration_path('user'))}"} %li{class: "#{active_nav_li(new_ichain_registration_path('user'))}"}
= link_to(new_ichain_registration_path('user')) do = link_to(new_ichain_registration_path('user')) do
%span.fa.fa-heart %span.fa.fa-heart
Sign Up Sign Up
- else - else
%li{:class=> "#{active_nav_li(new_registration_path('user'))}"} %li{class: "#{active_nav_li(new_registration_path('user'))}"}
= link_to(new_registration_path('user')) do = link_to(new_registration_path('user')) do
%span.fa.fa-heart %span.fa.fa-heart
Sign Up Sign Up
%li.dropdown.visible-desktop %li.dropdown.visible-desktop
%a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"} %a.dropdown-toggle{"data-toggle" => "dropdown", href: '#'}
%span.fa.fa-user %span.fa.fa-user
Sign In Sign In
%span.caret %span.caret

View file

@ -14,11 +14,11 @@
My Submissions My Submissions
%li %li
- if ENV['OSEM_ICHAIN_ENABLED'] == 'true' - if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
= link_to(destroy_user_ichain_session_path, :method=>'delete') do = link_to(destroy_user_ichain_session_path, method: 'delete') do
%span.fa.fa-minus %span.fa.fa-minus
Sign out Sign out
- else - else
= link_to(destroy_user_session_path, :method=>'delete') do = link_to(destroy_user_session_path, method: 'delete') do
%span.fa.fa-minus %span.fa.fa-minus
Sign out Sign out
- if can? :access, Admin - if can? :access, Admin

View file

@ -1,11 +1,11 @@
%html{:xmlns => "http://www.w3.org/1999/html"} %html{xmlns: 'http://www.w3.org/1999/html'}
%head %head
%meta{:charset => "utf-8"} %meta{charset: 'utf-8'}
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1, maximum-scale=1"} %meta{name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1'}
%title= content_for?(:title) ? yield(:title) : (ENV['OSEM_NAME'] || 'OSEM') %title= content_for?(:title) ? yield(:title) : (ENV['OSEM_NAME'] || 'OSEM')
%meta{:content => "", :name => "description"} %meta{content: '', name: 'description'}
%meta{:content => "", :name => "author"} %meta{content: '', name: 'author'}
= stylesheet_link_tag "application", :media => "all" = stylesheet_link_tag "application", media: 'all'
= javascript_include_tag "application" = javascript_include_tag "application"
= csrf_meta_tags = csrf_meta_tags

View file

@ -101,4 +101,4 @@
.row .row
.col-md-12 .col-md-12
- if can? :create, @event - if can? :create, @event
= link_to "New Proposal", new_conference_program_proposal_path(@conference.short_title), :class => "btn btn-success pull-right" = link_to "New Proposal", new_conference_program_proposal_path(@conference.short_title), class: 'btn btn-success pull-right'

View file

@ -19,15 +19,15 @@
- if can? :update, @event - if can? :update, @event
= link_to 'Registrations', registrations_conference_program_proposal_path(@conference.short_title, @event), class: 'btn btn-mini btn-success' = link_to 'Registrations', registrations_conference_program_proposal_path(@conference.short_title, @event), class: 'btn btn-mini btn-success'
- if can? :edit, @event - if can? :edit, @event
= link_to "Edit", edit_conference_program_proposal_path(@conference.short_title, @event), :class => "btn btn-mini btn-primary" = link_to "Edit", edit_conference_program_proposal_path(@conference.short_title, @event), class: 'btn btn-mini btn-primary'
- if can? :schedule, @conference - if can? :schedule, @conference
= link_to "Schedule", conference_schedule_path(@conference.short_title), :class =>"btn btn-success" = link_to "Schedule", conference_schedule_path(@conference.short_title), class: 'btn btn-success'
.row .row
.col-md-3 .col-md-3
.speakerinfo .speakerinfo
.col-md-12 .col-md-12
= image_tag @speaker.gravatar_url(:size => 200), :class => "img-responsive img-rounded" = image_tag @speaker.gravatar_url(size: 200), class: 'img-responsive img-rounded'
.col-md-12 .col-md-12
%h3 %h3
by by
@ -83,13 +83,13 @@
%dt Track: %dt Track:
%dd %dd
- if @event.track - if @event.track
%span.label{:style =>"background-color: #{@event.track.color}; color: #{ contrast_color(@event.track.color) }"} %span.label{style: "background-color: #{@event.track.color}; color: #{ contrast_color(@event.track.color) }"}
= @event.track.name = @event.track.name
.col-md-12 .col-md-12
%dt Difficulty: %dt Difficulty:
%dd %dd
- if @event.difficulty_level - if @event.difficulty_level
%span.label{:style =>"background-color: #{@event.difficulty_level.color}; color: #{ contrast_color(@event.difficulty_level.color) };"} %span.label{style: "background-color: #{@event.difficulty_level.color}; color: #{ contrast_color(@event.difficulty_level.color) };"}
= @event.difficulty_level.title = @event.difficulty_level.title
- if @event.require_registration - if @event.require_registration

View file

@ -1,9 +1,9 @@
.panel.panel-default.event-panel{ onClick: 'eventClicked(event, this);', "data-url" => "#{url_for(conference_program_proposal_path(@conference.short_title, event.id))}" } .panel.panel-default.event-panel{ onClick: 'eventClicked(event, this);', "data-url" => "#{url_for(conference_program_proposal_path(@conference.short_title, event.id))}" }
.panel-body .panel-body
- if speaker = event.speakers.first - if speaker = event.speakers.first
= image_tag speaker.gravatar_url, :class => "img-circle pull-right all-speaker-pic", | = image_tag speaker.gravatar_url, class: "img-circle pull-right all-speaker-pic", |
:alt => speaker.name, | alt: speaker.name, |
:title => speaker.name | title: speaker.name |
%p %p
= canceled_replacement_event_label(event, event_schedule) = canceled_replacement_event_label(event, event_schedule)
@ -17,8 +17,8 @@
%h4 %h4
presented by #{event.speaker_names} presented by #{event.speaker_names}
%p %p
= markdown(truncate(event.abstract, :length => 400)) = markdown(truncate(event.abstract, length: 400))
= link_to 'more', conference_program_proposal_path(@conference.short_title, event.id) if event.abstract.length > 400 = link_to 'more', conference_program_proposal_path(@conference.short_title, event.id) if event.abstract.length > 400=>
- if event_schedule.present? - if event_schedule.present?
%span.track %span.track
%span.fa.fa-clock-o %span.fa.fa-clock-o

View file

@ -10,7 +10,7 @@
= event.title = event.title
- if speaker = event.speakers.first - if speaker = event.speakers.first
= image_tag speaker.gravatar_url, :class => "img-circle pull-right speaker-pic", | = image_tag speaker.gravatar_url, class: "img-circle pull-right speaker-pic", |
:alt => speaker.name, | alt: speaker.name, |
:title => speaker.name, | title: speaker.name, |
:style => "height: #{ speaker_height(@rooms) }px; width: #{ speaker_width(@rooms) }px;" style: "height: #{ speaker_height(@rooms) }px; width: #{ speaker_width(@rooms) }px;"

View file

@ -1,9 +1,9 @@
= f.inputs title do = f.inputs title do
- if hint - if hint
%p.inline-hint= hint %p.inline-hint= hint
%div{:class => association_name.to_s} %div{class: association_name.to_s}
= f.semantic_fields_for association_name do |association_form| = f.semantic_fields_for association_name do |association_form|
= render association_name.to_s.singularize + "_fields", :f => association_form = render association_name.to_s.singularize + "_fields", f: association_form
.links .links
= add_association_link association_name, f, association_name = add_association_link association_name, f, association_name
%br %br

View file

@ -2,14 +2,14 @@
= Commercial.render_from_url(commercial.url)[:html] = Commercial.render_from_url(commercial.url)[:html]
- else - else
- if commercial.commercial_type == 'SlideShare' - if commercial.commercial_type == 'SlideShare'
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> "https://www.slideshare.net/slideshow/embed_code/#{commercial.commercial_id}"} %iframe{width: '560', height: '315', frameborder: '0', allowfullscreen: 'true', src: "https://www.slideshare.net/slideshow/embed_code/#{commercial.commercial_id}"}
- elsif commercial.commercial_type == 'Flickr' - elsif commercial.commercial_type == 'Flickr'
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> "https://flic.kr/p/#{commercial.commercial_id}/player/268a054da2"} %iframe{width: '560', height: '315', frameborder: '0', allowfullscreen: 'true', src: "https://flic.kr/p/#{commercial.commercial_id}/player/268a054da2"}
- elsif commercial.commercial_type == 'Vimeo' - elsif commercial.commercial_type == 'Vimeo'
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> "//player.vimeo.com/video/#{commercial.commercial_id}"} %iframe{width: '560', height: '315', frameborder: '0', allowfullscreen: 'true', src: "//player.vimeo.com/video/#{commercial.commercial_id}"}
- elsif commercial.commercial_type == 'Speakerdeck' - elsif commercial.commercial_type == 'Speakerdeck'
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> "//speakerdeck.com/player/#{commercial.commercial_id}?"} %iframe{width: '560', height: '315', frameborder: '0', allowfullscreen: 'true', src: "//speakerdeck.com/player/#{commercial.commercial_id}?"}
- elsif commercial.commercial_type == 'Instagram' - elsif commercial.commercial_type == 'Instagram'
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :scrolling =>"no", :allowtransparency=>"true", :src=> "//instagram.com/p/#{commercial.commercial_id}/embed/"} %iframe{width: '560', height: '315', frameborder: '0', allowfullscreen: 'true', scrolling: 'no', allowtransparency: 'true', src: "//instagram.com/p/#{commercial.commercial_id}/embed/"}
- else - else
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> "https://www.youtube.com/embed/#{commercial.commercial_id}?rel=0"} %iframe{width: '560', height: '315', frameborder: '0', allowfullscreen: 'true', src: "https://www.youtube.com/embed/#{commercial.commercial_id}?rel=0"}

View file

@ -10,7 +10,7 @@
= f.input :nickname, as: :string = f.input :nickname, as: :string
.control-label .control-label
= "Avatar" = "Avatar"
= image_tag(@user.gravatar_url(size: '48'), title: "Yo #{@user.name}!", :alt => '') = image_tag(@user.gravatar_url(size: '48'), title: "Yo #{@user.name}!", alt: '')
= link_to 'Change your avatar here', 'https://gravatar.com' = link_to 'Change your avatar here', 'https://gravatar.com'
= f.input :affiliation, as: :string, = f.input :affiliation, as: :string,
hint: 'This could be a company, a user group, or nothing at all.' hint: 'This could be a company, a user group, or nothing at all.'

View file

@ -3,7 +3,7 @@
.col-md-12 .col-md-12
.page-header .page-header
%h1 %h1
= image_tag(@user.gravatar_url(size: '48'), title: "Yo #{@user.name}!", :alt => '') = image_tag(@user.gravatar_url(size: '48'), title: "Yo #{@user.name}!", alt: '')
= @user.name = @user.name
%small %small
= @user.nickname = @user.nickname