Welcome to Snap!Con <%= @email %>!
+ +You can confirm your account email through the link below:
+ +<%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %>
+diff --git a/.haml-lint_todo.yml b/.haml-lint_todo.yml index 02f1ac56..b861bbe2 100644 --- a/.haml-lint_todo.yml +++ b/.haml-lint_todo.yml @@ -250,8 +250,9 @@ linters: ConsecutiveComments: exclude: - # This one seems like a bug in haml-lint. + # These seems like a bug in haml-lint. - "app/views/admin/conferences/show.html.haml" + - "app/views/proposals/index.html.haml" # Offense count: 24 ConsecutiveSilentScripts: diff --git a/app/assets/javascripts/fullcalendar.js.erb b/app/assets/javascripts/fullcalendar.js.erb index 992bcbc6..22ee857d 100644 --- a/app/assets/javascripts/fullcalendar.js.erb +++ b/app/assets/javascripts/fullcalendar.js.erb @@ -26,5 +26,3 @@ $( document ).ready(function() { calendar.render(); }); - - diff --git a/app/controllers/proposals_controller.rb b/app/controllers/proposals_controller.rb index b6571b10..92625ea9 100644 --- a/app/controllers/proposals_controller.rb +++ b/app/controllers/proposals_controller.rb @@ -173,11 +173,11 @@ class ProposalsController < ApplicationController private def event_params + # TODO-SNAPCON: Restrict committee review to admins. params.require(:event).permit(:event_type_id, :track_id, :difficulty_level_id, :title, :subtitle, :abstract, :submission_text, :description, :require_registration, :max_attendees, :language, - speaker_ids: [], volunteer_ids: [] - ) + :committee_review, speaker_ids: [], volunteer_ids: []) end def user_params diff --git a/app/models/email_settings.rb b/app/models/email_settings.rb index 8a8ab0b5..e5b64801 100644 --- a/app/models/email_settings.rb +++ b/app/models/email_settings.rb @@ -91,6 +91,8 @@ class EmailSettings < ApplicationRecord h['eventtitle'] = event.title h['proposalslink'] = Rails.application.routes.url_helpers.conference_program_proposals_url( conference.short_title, host: (ENV['OSEM_HOSTNAME'] || 'localhost:3000')) + h['committee_review'] = event.committee_review + h['committee_review_html'] = ApplicationController.helpers.markdown(event.committee_review) end if booth diff --git a/app/models/event.rb b/app/models/event.rb index 686c6aa8..c780afb9 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -7,6 +7,7 @@ # id :bigint not null, primary key # abstract :text # comments_count :integer default(0), not null +# committee_review :text # description :text # guid :string not null # is_highlight :boolean default(FALSE) diff --git a/app/serializers/event_serializer.rb b/app/serializers/event_serializer.rb index 8c30b1a1..9bf196f2 100644 --- a/app/serializers/event_serializer.rb +++ b/app/serializers/event_serializer.rb @@ -7,6 +7,7 @@ # id :bigint not null, primary key # abstract :text # comments_count :integer default(0), not null +# committee_review :text # description :text # guid :string not null # is_highlight :boolean default(FALSE) diff --git a/app/views/admin/emails/_help.html.haml b/app/views/admin/emails/_help.html.haml index 9de1e0f8..1222c1ac 100644 --- a/app/views/admin/emails/_help.html.haml +++ b/app/views/admin/emails/_help.html.haml @@ -17,6 +17,12 @@ %tr %td {eventtitle} %td The title of an accepted or rejected proposal + %tr + %td {committee_review} + %td The raw text in the committee review for the proposal + %tr + %td {committee_review_html} + %td The committee review markdown rendered as HTML. %tr %td {conference_start_date} %td The start date of the conference @@ -56,9 +62,6 @@ %td {conference_splash_link} %td The link to conference splash page - if @conference.booths - %tr - %td {submitter_name} - %td Submitter's name %tr %td {booth_title} %td Booth's title diff --git a/app/views/admin/events/_proposal.html.haml b/app/views/admin/events/_proposal.html.haml index 05d48bb7..c21f364f 100644 --- a/app/views/admin/events/_proposal.html.haml +++ b/app/views/admin/events/_proposal.html.haml @@ -73,9 +73,7 @@ %td = link_to @event.submitter.name, admin_user_path(@event.submitter) - if @event.submitter.email_public - ( - = link_to @event.submitter.email, "mailto: #{@event.submitter.email}" - ) + (#{mail_to(@event.submitter.email)}) %tr %td %b Speakers @@ -84,9 +82,7 @@ %div = link_to speaker.name, admin_user_path(speaker) - if speaker.email_public - ( - = link_to speaker.email, "mailto: #{speaker.email}" - ) + (#{mail_to(speaker.email)}) %tr %td %b Volunteers @@ -117,11 +113,17 @@ %td %b Submission Description %td= markdown(@event.submission_text) + %tr %td %b Requirements %td= simple_format(@event.description) + %tr + %td + %b Committee Review + %td= markdown(@event.committee_review) + - if @conference.program.rating_enabled? = render 'voting', event: @event, diff --git a/app/views/admin/tickets/show.html.haml b/app/views/admin/tickets/show.html.haml index a6b31ea4..dba94810 100644 --- a/app/views/admin/tickets/show.html.haml +++ b/app/views/admin/tickets/show.html.haml @@ -20,7 +20,7 @@ .col-md-12 %table.datatable %thead - %th # + %th ID %th Name %th Quantity %th E-Mail @@ -32,7 +32,7 @@ - purchases = buyer.ticket_purchases.where(ticket_id: @ticket.id) %tr %td - = index + 1 + = purchases.length == 1 ? purchases.first.id : purchases.map(&:id) %td = buyer.name %td diff --git a/app/views/conferences/_about_and_happening_now.haml b/app/views/conferences/_about_and_happening_now.haml index f8518bc8..3b327c4f 100644 --- a/app/views/conferences/_about_and_happening_now.haml +++ b/app/views/conferences/_about_and_happening_now.haml @@ -9,7 +9,6 @@ = content_for :about do #about .row - %h2.text-left{ style: 'margin-bottom:30px' } About the Conference = markdown(conference.description, false) %section#about-and-happening-now diff --git a/app/views/devise/confirmations/new.html.haml b/app/views/devise/confirmations/new.html.haml index 8df4efc1..c628275b 100644 --- a/app/views/devise/confirmations/new.html.haml +++ b/app/views/devise/confirmations/new.html.haml @@ -4,7 +4,7 @@ .panel.panel-default .panel-heading %h3.panel-title - Resend confirmation instructions + Resend account confirmation instructions .panel-body = semantic_form_for(resource, as: resource_name, url: confirmation_path(resource_name), method: :post) do |f| = f.input :email, input_html: { autofocus: true, required: true } diff --git a/app/views/devise/mailer/confirmation_instructions.html.erb b/app/views/devise/mailer/confirmation_instructions.html.erb new file mode 100644 index 00000000..55318a91 --- /dev/null +++ b/app/views/devise/mailer/confirmation_instructions.html.erb @@ -0,0 +1,9 @@ +<%= render partial: "layouts/mailbot_header" %> +
Welcome to Snap!Con <%= @email %>!
+ +You can confirm your account email through the link below:
+ +<%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %>
+Hello <%= @email %>!
+ +<% if @resource.try(:unconfirmed_email?) %> +We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.
+<% else %> +We're contacting you to notify you that your email has been changed to <%= @resource.email %>.
+<% end %> diff --git a/app/views/devise/mailer/password_change.html.erb b/app/views/devise/mailer/password_change.html.erb new file mode 100644 index 00000000..b41daf47 --- /dev/null +++ b/app/views/devise/mailer/password_change.html.erb @@ -0,0 +1,3 @@ +Hello <%= @resource.email %>!
+ +We're contacting you to notify you that your password has been changed.
diff --git a/app/views/devise/mailer/reset_password_instructions.html.erb b/app/views/devise/mailer/reset_password_instructions.html.erb new file mode 100644 index 00000000..f667dc12 --- /dev/null +++ b/app/views/devise/mailer/reset_password_instructions.html.erb @@ -0,0 +1,8 @@ +Hello <%= @resource.email %>!
+ +Someone has requested a link to change your password. You can do this through the link below.
+ +<%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %>
+ +If you didn't request this, please ignore this email.
+Your password won't change until you access the link above and create a new one.
diff --git a/app/views/devise/mailer/unlock_instructions.html.erb b/app/views/devise/mailer/unlock_instructions.html.erb new file mode 100644 index 00000000..41e148bf --- /dev/null +++ b/app/views/devise/mailer/unlock_instructions.html.erb @@ -0,0 +1,7 @@ +Hello <%= @resource.email %>!
+ +Your account has been locked due to an excessive number of unsuccessful sign in attempts.
+ +Click the link below to unlock your account:
+ +<%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %>
diff --git a/app/views/layouts/_mailbot_footer.html.erb b/app/views/layouts/_mailbot_footer.html.erb index 3cc8b3c3..4cc06c7f 100644 --- a/app/views/layouts/_mailbot_footer.html.erb +++ b/app/views/layouts/_mailbot_footer.html.erb @@ -1,12 +1,7 @@ - - - - - - - <%= stylesheet_link_tag "mailbot" %> - - - + <% if @conference.present? %> +