Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 5282a03

Browse files
committed
Merge branch 'lib_improvements'
2 parents 0f97b00 + 8976ab3 commit 5282a03

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

bookserver/staticAssets/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
background-color: #f3f3f3;
3131
color: rgb(3, 2, 2);
3232
width: 45em;
33-
height: 32px;
33+
height: 5em;
3434
line-height: 3em;
3535
text-align: left;
3636
border: 2px solid rgb(36, 35, 35);

bookserver/templates/books/index.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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

Comments
 (0)