Add pdf resources to the resources page

This commit is contained in:
rebuilt 2022-11-22 14:44:29 -08:00
parent f2089c2eeb
commit aff7b04ed4
25 changed files with 63 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View file

@ -5,6 +5,6 @@ class ResearchController < ApplicationController
def download_pdf def download_pdf
send_file "#{Rails.root}/public/docs/#{params[:path]}.pdf", type: "application/pdf", x_sendfile: true send_file "#{Rails.root}/public/docs/research/#{params[:path]}.pdf", type: "application/pdf", x_sendfile: true
end end
end end

View file

@ -1,5 +1,7 @@
class ResourceController < ApplicationController class ResourceController < ApplicationController
def index def index; end
def download_pdf
send_file "#{Rails.root}/public/docs/resources/#{params[:path]}.pdf", type: 'application/pdf', x_sendfile: true
end end
end end

View file

@ -17,11 +17,11 @@
<div class="container px-5 my-5"> <div class="container px-5 my-5">
<div class="row gx-5 justify-content-center"> <div class="row gx-5 justify-content-center">
<div> <div>
<div class="container px-5">
<h3 > <h3 >
The Education Commonwealth Project provides free resources to rethink how school quality and student learning are measured. The Education Commonwealth Project provides free resources to rethink how school quality and student learning are measured.
</h3> </h3>
<div class="container px-5">
<div class="row gx-5 justify-content-center"> <div class="row gx-5 justify-content-center">
<div class="accordion my-5" id="sqmAccordion"> <div class="accordion my-5" id="sqmAccordion">
<div class="accordion-item"> <div class="accordion-item">
@ -70,11 +70,62 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="container px-5 row">
<h3>SQM resources </h3>
<div class="grid-container download-container">
<%= link_to(resource_download_pdf_path(path: "adding_student_voice_to_the_mix")) do %>
<%= image_tag "resources/sqm/adding_student_voice_to_the_mix.png", class: "file-download" %>
<% end %>
</div>
<div class="grid-container download-container">
<%= link_to(resource_download_pdf_path(path: "beyond_good_and_bad")) do %>
<%= image_tag "resources/sqm/beyond_good_and_bad.png", class: "file-download" %>
<% end %>
</div>
<div class="grid-container download-container">
<%= link_to(resource_download_pdf_path(path: "beyond_standardized_tests")) do %>
<%= image_tag "resources/sqm/beyond_standardized_tests.png", class: "file-download" %>
<% end %>
</div>
<div class="grid-container download-container">
<%= link_to(resource_download_pdf_path(path: "the_mis_measure_of_schools")) do %>
<%= image_tag "resources/sqm/the_mis_measure_of_schools.png", class: "file-download" %>
<% end %>
</div>
</div>
<div class="container px-5 row">
<h3>QPA resources </h3>
<div class="grid-container download-container">
<%= link_to(resource_download_pdf_path(path: "a_national_movement_for_a_new_accountability")) do %>
<%= image_tag "resources/qpa/a_national_movement_for_a_new_accountability.png", class: "file-download" %>
<% end %>
</div>
<div class="grid-container download-container">
<%= link_to(resource_download_pdf_path(path: "its_high_time_for_change_in_our_accountability_systems")) do %>
<%= image_tag "resources/qpa/its_high_time_for_change_in_our_accountability_systems.png", class: "file-download" %>
<% end %>
</div>
<div class="grid-container download-container">
<%= link_to(resource_download_pdf_path(path: "keeping_our_accountability_systems_accountable")) do %>
<%= image_tag "resources/qpa/keeping_our_accountability_systems_accountable.png", class: "file-download" %>
<% end %>
</div>
<div class="grid-container download-container">
<%= link_to(resource_download_pdf_path(path: "piloting_the_use_of_learning_progressions_in_a_system_of_assessment")) do %>
<%= image_tag "resources/qpa/piloting_the_use_of_learning_progressions_in_a_system_of_assessment.png", class: "file-download" %>
<% end %>
</div>
</div> </div>
</div> </div>
</div> </div>

View file

@ -5,6 +5,7 @@ Rails.application.routes.draw do
resources :sqm, only: :index resources :sqm, only: :index
resources :qpa, only: :index resources :qpa, only: :index
resources :resource, only: :index resources :resource, only: :index
get 'resource/download_pdf', to: "resource#download_pdf"
resources :research, only: :index resources :research, only: :index
get 'research/download_pdf', to: "research#download_pdf" get 'research/download_pdf', to: "research#download_pdf"
resources :work_with_ecp, only: :index resources :work_with_ecp, only: :index

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.