Commit f444af2e authored by Zac Wood's avatar Zac Wood
Browse files

basic courses page

parent fdfb621b
......@@ -4,12 +4,11 @@
data-id="<%= section.id %>"
data-cid="<%= course.id if defined?(course) %>"
data-type="<%= section.section_type %>"
onclick="addOrRemoveFromCart(event, this)"
>
<span style="float:left"><b class="subj"><%= "#{section.name}" %></b>: <%= section.title %></span>
<span style="float:right"><i class="fas fa-map-marker-alt"></i> <%= section.location %></span>
<div style="clear: both"></div>
<span style="float:left"><i class="fas fa-chalkboard-teacher"></i> <%= link_to section.instructor.name, instructor_path(section.instructor) %></span>
<span style="float:left"><i class="fas fa-chalkboard-teacher"></i> <%= link_to section.instructor.name, section.instructor %></span>
<span style="float:right"><i class="fas fa-clock"></i> <%= "#{section.days}, #{section.start_time}-#{section.end_time}" %></span>
<div style="clear: both"></div>
</li>
......@@ -12,9 +12,16 @@ Rails.application.config.assets.paths << Rails.root.join('node_modules')
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.
Rails.application.config.assets.precompile += %w(
FileSaver.js
schedule.js
search.js
search.scss
schedules.js
schedules.scss
cart.js
cart.scss
FileSaver.js
masonstrap.min.css
masonstrap.min.js
moment.min.js
......
......@@ -110,7 +110,7 @@ def main
wipe_db
parser = PatriotWeb::Parser.new
semesters = parser.parse_semesters[0..6] # expand to include however many semesters you want
semesters = parser.parse_semesters[0..1] # expand to include however many semesters you want
courses = nil
semesters.each do |semester|
......
require 'test_helper'
class CoursesControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment