Skip to content

Commit b3dc336

Browse files
awhickscashaffer
andauthored
merge master back to staging (#184)
* Add CS1 book to supplemental reading books list * Add CS1 course to Canvas course list * Remove instructor ability to create terms --------- Co-authored-by: Cliff Shaffer <[email protected]>
1 parent a789ffd commit b3dc336

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

app/models/ability.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def process_instructor(user)
9898
end
9999

100100
can [:create, :read], InstBook
101-
can [:create, :read], Term
101+
can [:read], Term
102102
can [:create, :read], LatePolicy
103103
can [:update, :destroy], InstBook, user_id: user.id
104104
can [:create, :read], Organization

app/views/home/books.html.haml

+10-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
to view):
3434

3535
%ul
36+
%li
37+
%a{ href: 'https://canvas.instructure.com/enroll/AA7HDH', target: "_blank" }
38+
An objects-first CS1 course
39+
3640
%li
3741
%a{ href: 'https://canvas.instructure.com/enroll/TXJGTB', target: "_blank" }
3842
Data Structures topics for a CS2-level course
@@ -66,6 +70,11 @@
6670
Supplemental reading versions:
6771

6872
%ul
73+
%li
74+
- url = @config_url + '/OpenDSA/Books/IntroToSoftwareDesign/index.html'
75+
%a{ href: url , target: "_blank" }
76+
An objects-first CS1 course
77+
6978
%li
7079
- url = @config_url + '/OpenDSA/Books/CS2/index.html'
7180
%a{ href: url , target: "_blank" }
@@ -85,8 +94,7 @@
8594
%li
8695
- url = @config_url + '/OpenDSA/Books/CS3notes/index.html'
8796
%a{ href: url, target: "_blank" }
88-
Coursenotes form of presentation slides for "CS3" course on Data
89-
Structures.
97+
Coursenotes form of presentation slides for "CS3" course on Data Structures.
9098

9199
%li
92100
- url = @config_url + '/OpenDSA/Books/CS4104/index.html'

0 commit comments

Comments
 (0)