Add in the news page
|
After Width: | Height: | Size: 547 KiB |
|
After Width: | Height: | Size: 471 KiB |
|
After Width: | Height: | Size: 170 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 38 KiB |
BIN
app/assets/images/in_the_news/want_to_buy_a_home.jpeg
Normal file
|
After Width: | Height: | Size: 285 KiB |
9
app/controllers/in_the_news_controller.rb
Normal file
|
|
@ -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
|
||||
47
app/views/in_the_news/index.html.erb
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<%= render partial: "layouts/header", locals: {heading: "In The News"} %>
|
||||
|
||||
<div class="container px-5 my-5">
|
||||
<div class="row gx-5 justify-content-center">
|
||||
<div class="grid-container download-container">
|
||||
<%= 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 %>
|
||||
</div>
|
||||
|
||||
<div class="grid-container download-container">
|
||||
<%= 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 %>
|
||||
</div>
|
||||
|
||||
<div class="grid-container download-container">
|
||||
<%= 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 %>
|
||||
</div>
|
||||
|
||||
<div class="grid-container download-container">
|
||||
<%= 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 %>
|
||||
</div>
|
||||
|
||||
<div class="grid-container download-container">
|
||||
<%= 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 %>
|
||||
</div>
|
||||
|
||||
<div class="grid-container download-container">
|
||||
<%= 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 %>
|
||||
</div>
|
||||
|
||||
<div class="grid-container download-container">
|
||||
<%= 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 %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
13
app/views/layouts/_header.html.erb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<header class="bg-dark py-5">
|
||||
<div class="container px-5">
|
||||
<div class="row gx-5 justify-content-center">
|
||||
<div class="col-lg-6">
|
||||
<div class="text-center my-5">
|
||||
<h1 class="display-5 fw-bolder text-white mb-2"><%= heading %></h1>
|
||||
<div class="d-grid gap-3 d-sm-flex justify-content-sm-center">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
Research & Resources
|
||||
</a>
|
||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<li class="nav-item"><%= link_to "ECP in the News", construction_index_path, class: "dropdown-item" %></li>
|
||||
<li class="nav-item"><%= link_to "ECP in the News", in_the_news_index_path, class: "dropdown-item" %></li>
|
||||
<li class="nav-item"><%= link_to "Research", research_index_path, class: "dropdown-item" %></li>
|
||||
<li class="nav-item"><%= link_to "Resources", resource_index_path, class: "dropdown-item" %></li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||