11
2- {% extends "_base.html" %}
2+ {% extends "_base.html" %}
33{% block css %}
44
55< link
6- href ="/ns/staticAssets/index.css "
6+ href ="/ns/staticAssets/index.css "
77 rel ="stylesheet "
88 media ="screen "
99/>
@@ -21,7 +21,7 @@ <h2>Runestone Academy Library of Books</h2>
2121 > Help for Instructors page</ a
2222 >
2323 before you make a course. < strong > Note: The links to books on this page
24- are for browsing only.</ strong > If you want your work to be saved you should enroll in the course
24+ are for browsing only.</ strong > If you want your work to be saved you should enroll in the course
2525 from the < a href ="/runestone/default/courses "> Change Course</ a > page.
2626 </ p >
2727 < div class ="searchbar ">
@@ -39,14 +39,17 @@ <h2>Runestone Academy Library of Books</h2>
3939 {% if book['shelf_section'] == section: %}
4040 < div class ="library_entry ">
4141 < div class ="book_title ">
42-
42+
4343 < a href ="{{canonical_host}}/ns/books/published/{{book['basecourse']}}/{{ book['main_page']}}?mode=browsing ">
4444 < span class ="link1 "> {{ book['title'] }}</ span >
4545 </ a >
4646 </ div >
4747 < div class ="book_descript ">
48- < b > Description:</ b > {{ book['description'] }} To register for this
49- book use the code < code > {{ book['basecourse'] }}</ code > < br />
48+ {% if book['authors'] %}
49+ < p style ="margin-bottom: 0 "> < b > By:</ b > {{book['authors']}}</ p >
50+ {% endif %}
51+ < p > < b > Description:</ b > {{ book['description'] }} </ p >
52+ < a href ="/runestone/default/enroll?course_name={{book['basecourse']}} " role ="button " class ="btn-sm btn-primary " > Register for < code > {{ book['basecourse'] }}</ code > </ a >
5053 < p style ="display: none "> keywords: {{ book['key_words'] }}</ p >
5154 </ div >
5255 </ div >
@@ -71,4 +74,4 @@ <h3>License Information</h3>
7174
7275{% block js %}
7376< script src ="/ns/staticAssets/books.js "> </ script >
74- {% endblock %}
77+ {% endblock %}
0 commit comments