diff --git a/app/assets/images/in_the_news/changes_possible_in_state_education_policy.png b/app/assets/images/in_the_news/changes_possible_in_state_education_policy.png new file mode 100644 index 0000000..6e93854 Binary files /dev/null and b/app/assets/images/in_the_news/changes_possible_in_state_education_policy.png differ diff --git a/app/assets/images/in_the_news/how_six_mass_communities_are_imagining_life_beyond_mcas.png b/app/assets/images/in_the_news/how_six_mass_communities_are_imagining_life_beyond_mcas.png new file mode 100644 index 0000000..53a4b02 Binary files /dev/null and b/app/assets/images/in_the_news/how_six_mass_communities_are_imagining_life_beyond_mcas.png differ diff --git a/app/assets/images/in_the_news/should_you_panic_over_americas_test_scores.png b/app/assets/images/in_the_news/should_you_panic_over_americas_test_scores.png new file mode 100644 index 0000000..0534bda Binary files /dev/null and b/app/assets/images/in_the_news/should_you_panic_over_americas_test_scores.png differ diff --git a/app/assets/images/in_the_news/state_receivership_wrong_for_boston_schools.webp b/app/assets/images/in_the_news/state_receivership_wrong_for_boston_schools.webp new file mode 100644 index 0000000..fca48f1 Binary files /dev/null and b/app/assets/images/in_the_news/state_receivership_wrong_for_boston_schools.webp differ diff --git a/app/assets/images/in_the_news/tipping_point_for_school_accountability.png b/app/assets/images/in_the_news/tipping_point_for_school_accountability.png new file mode 100644 index 0000000..631f1c0 Binary files /dev/null and b/app/assets/images/in_the_news/tipping_point_for_school_accountability.png differ diff --git a/app/assets/images/in_the_news/vocational_and_exam_school_admission_changes.webp b/app/assets/images/in_the_news/vocational_and_exam_school_admission_changes.webp new file mode 100644 index 0000000..2b12fdd Binary files /dev/null and b/app/assets/images/in_the_news/vocational_and_exam_school_admission_changes.webp differ diff --git a/app/assets/images/in_the_news/want_to_buy_a_home.jpeg b/app/assets/images/in_the_news/want_to_buy_a_home.jpeg new file mode 100644 index 0000000..c7af372 Binary files /dev/null and b/app/assets/images/in_the_news/want_to_buy_a_home.jpeg differ diff --git a/app/controllers/in_the_news_controller.rb b/app/controllers/in_the_news_controller.rb new file mode 100644 index 0000000..a7b1125 --- /dev/null +++ b/app/controllers/in_the_news_controller.rb @@ -0,0 +1,9 @@ +class InTheNewsController < ApplicationController + def index + + end + + def download_pdf + send_file "#{Rails.root}/public/docs/in_the_news/#{params[:path]}.pdf", type: 'application/pdf', x_sendfile: true + end +end diff --git a/app/views/in_the_news/index.html.erb b/app/views/in_the_news/index.html.erb new file mode 100644 index 0000000..1f35440 --- /dev/null +++ b/app/views/in_the_news/index.html.erb @@ -0,0 +1,47 @@ +<%= render partial: "layouts/header", locals: {heading: "In The News"} %> + +
+
+
+ <%= link_to(in_the_news_download_pdf_path(path: "changes_possible_in_state_education_policy")) do %> + <%= image_tag "in_the_news/changes_possible_in_state_education_policy.png", class: "file-download" %> + <% end %> +
+ +
+ <%= link_to(in_the_news_download_pdf_path(path: "how_six_mass_communities_are_imagining_life_beyond_mcas")) do %> + <%= image_tag "in_the_news/how_six_mass_communities_are_imagining_life_beyond_mcas.png", class: "file-download" %> + <% end %> +
+ +
+ <%= link_to(in_the_news_download_pdf_path(path: "state_receivership_wrong_for_boston_schools")) do %> + <%= image_tag "in_the_news/state_receivership_wrong_for_boston_schools.webp", class: "file-download" %> + <% end %> +
+ +
+ <%= link_to(in_the_news_download_pdf_path(path: "tipping_point_for_school_accountability")) do %> + <%= image_tag "in_the_news/tipping_point_for_school_accountability.png", class: "file-download" %> + <% end %> +
+ +
+ <%= link_to(in_the_news_download_pdf_path(path: "vocational_and_exam_school_admission_changes")) do %> + <%= image_tag "in_the_news/vocational_and_exam_school_admission_changes.webp", class: "file-download" %> + <% end %> +
+ +
+ <%= link_to(in_the_news_download_pdf_path(path: "want_to_buy_a_home")) do %> + <%= image_tag "in_the_news/want_to_buy_a_home.jpeg", class: "file-download" %> + <% end %> +
+ +
+ <%= link_to("https://podcasts.apple.com/us/podcast/should-you-panic-over-americas-test-scores/id1438906889?i=1000584143940") do %> + <%= image_tag "in_the_news/should_you_panic_over_americas_test_scores.png" %> + <% end %> +
+
+
diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb new file mode 100644 index 0000000..d88ed68 --- /dev/null +++ b/app/views/layouts/_header.html.erb @@ -0,0 +1,13 @@ +
+
+
+
+
+

<%= heading %>

+
+
+
+
+
+
+
diff --git a/app/views/layouts/_nav.html.erb b/app/views/layouts/_nav.html.erb index 82ba2e0..4a45f32 100644 --- a/app/views/layouts/_nav.html.erb +++ b/app/views/layouts/_nav.html.erb @@ -20,7 +20,7 @@ Research & Resources diff --git a/config/routes.rb b/config/routes.rb index 24572df..73e4078 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,6 +11,8 @@ Rails.application.routes.draw do resources :work_with_ecp, only: :index resources :construction, only: :index resources :district_leader, only: :index + resources :in_the_news, only: :index + get 'in_the_news/download_pdf', to: "in_the_news#download_pdf" resources :home, only: %i[index create] resources :contacts, only: %i[new create] diff --git a/public/docs/in_the_news/changes_possible_in_state_education_policy.pdf b/public/docs/in_the_news/changes_possible_in_state_education_policy.pdf new file mode 100644 index 0000000..3c22b25 Binary files /dev/null and b/public/docs/in_the_news/changes_possible_in_state_education_policy.pdf differ diff --git a/public/docs/in_the_news/how_six_mass_communities_are_imagining_life_beyond_mcas.pdf b/public/docs/in_the_news/how_six_mass_communities_are_imagining_life_beyond_mcas.pdf new file mode 100644 index 0000000..96f02f0 Binary files /dev/null and b/public/docs/in_the_news/how_six_mass_communities_are_imagining_life_beyond_mcas.pdf differ diff --git a/public/docs/in_the_news/state_receivership_wrong_for_boston_schools.pdf b/public/docs/in_the_news/state_receivership_wrong_for_boston_schools.pdf new file mode 100644 index 0000000..8cd97b8 Binary files /dev/null and b/public/docs/in_the_news/state_receivership_wrong_for_boston_schools.pdf differ diff --git a/public/docs/in_the_news/tipping_point_for_school_accountability.pdf b/public/docs/in_the_news/tipping_point_for_school_accountability.pdf new file mode 100644 index 0000000..d90068b Binary files /dev/null and b/public/docs/in_the_news/tipping_point_for_school_accountability.pdf differ diff --git a/public/docs/in_the_news/vocational_and_exam_school_admission_changes.pdf b/public/docs/in_the_news/vocational_and_exam_school_admission_changes.pdf new file mode 100644 index 0000000..1aa334f Binary files /dev/null and b/public/docs/in_the_news/vocational_and_exam_school_admission_changes.pdf differ diff --git a/public/docs/in_the_news/want_to_buy_a_home.pdf b/public/docs/in_the_news/want_to_buy_a_home.pdf new file mode 100644 index 0000000..d2bd0a3 Binary files /dev/null and b/public/docs/in_the_news/want_to_buy_a_home.pdf differ