Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
schedules
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
8
Issues
8
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
schedules
Commits
9add1e0f
Commit
9add1e0f
authored
Nov 15, 2018
by
Zac Wood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ready for merge
parent
1b69b590
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
7 deletions
+17
-7
schedules/app/views/home/index.html.erb
schedules/app/views/home/index.html.erb
+3
-2
schedules/app/views/instructors/show.html.erb
schedules/app/views/instructors/show.html.erb
+2
-2
schedules/app/views/shared/_course.html.erb
schedules/app/views/shared/_course.html.erb
+2
-2
schedules/app/views/shared/_navbar.html.erb
schedules/app/views/shared/_navbar.html.erb
+1
-1
schedules/test/controllers/application_controller_test.rb
schedules/test/controllers/application_controller_test.rb
+9
-0
No files found.
schedules/app/views/home/index.html.erb
View file @
9add1e0f
<h1>
Home#index
</h1>
<p>
Find me in app/views/home/index.html.erb
</p>
<h1>
Welcome to Schedules!
</h1>
<p>
Schedules is a website designed by Mason SRCT designed to help students explore the GMU Catalog.
</p>
Search for either professors or courses using the search bar above.
schedules/app/views/instructors/show.html.erb
View file @
9add1e0f
<div
class=
"row"
>
<div
class=
"col-
4
"
>
<div
class=
"col-
md-4 col-sm-12
"
>
<h1>
<%=
@instructor
.
name
%>
</h1>
<%
prev
=
@instructor
.
course_sections
.
reject
{
|
s
|
s
.
course
.
semester
==
@semester
}.
map
{
|
s
|
s
.
name
.
split
[
0
..
1
].
join
(
' '
)
}.
uniq
%>
...
...
@@ -13,7 +13,7 @@
<%
end
%>
</div>
<div
class =
"col-
8
"
>
<div
class =
"col-
md-8 col-sm-12
"
>
<h3>
<%=
@semester
.
to_s
%>
</h3>
<%
if
@courses
.
any?
%>
<%=
render
partial:
'shared/course'
,
collection:
@courses
,
locals:
{
expanded:
true
}
%>
...
...
schedules/app/views/shared/_course.html.erb
View file @
9add1e0f
...
...
@@ -17,7 +17,7 @@
<div
class=
"icon"
>
<i
class=
"fa fa-book"
></i>
</div>
3
credits
<%=
course
.
credits
%>
credits
</div>
<div
class=
"attr"
>
...
...
@@ -25,7 +25,7 @@
<i
class=
"fa fa-bars"
></i>
</div>
<!-- TODO: FIX THIS -->
<%#= "#{course.section_count}" %>
3
sections
<%#= "#{course.section_count}" %>
<%=
course
.
course_sections
.
count
%>
sections
</div>
</div>
<p
class=
"description"
>
<%=
course
.
description
%>
</p>
...
...
schedules/app/views/shared/_navbar.html.erb
View file @
9add1e0f
...
...
@@ -53,4 +53,4 @@
<div
class=
"row"
>
<!-- Search result, List of Courses -->
<div
class=
"col-lg-
7
col-md-10 mx-auto order-2 order-lg-0"
id=
"search-list"
>
<div
class=
"col-lg-
8
col-md-10 mx-auto order-2 order-lg-0"
id=
"search-list"
>
schedules/test/controllers/application_controller_test.rb
0 → 100644
View file @
9add1e0f
require
'test_helper'
class
ApplicationControllerTest
<
ActionDispatch
::
IntegrationTest
test
"redirects without semester id"
do
get
"/"
assert_response
:redirect
assert_match
/\?semester_id=
#{
semesters
(
:fall2018
).
id
}
/
,
@response
.
redirect_url
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment