diff --git a/app/static/css/style.css b/app/static/css/style.css
index fc8faab..1753ba4 100755
--- a/app/static/css/style.css
+++ b/app/static/css/style.css
@@ -82,6 +82,7 @@ border-spacing:0; /* Removes the cell spacing via CSS */
.library_table th{
font-size: 20px;
cursor: pointer;
+background-color: #fafafa;
}
th.headerSortUp{
diff --git a/app/templates/red_link.html b/app/templates/red_link.html
index c15e812..22f101d 100755
--- a/app/templates/red_link.html
+++ b/app/templates/red_link.html
@@ -37,7 +37,7 @@
Cover | +Title | +Author | +Year | +Category | +Stack | +Add to a stack | +
---|---|---|---|---|---|---|
+ + + + | +{{ book.title }} | + + {% for author in book.authors %}
+
+ |
+ {{ book.year_published }} | +{{ book.category}} | +
+ {% for stack in book.stacks %}
+
+ |
+ + + ===> + | +
{{ book.year_published }} | +{{ book.year_published or '––'}} | {{ book.category}} | {% for stack in book.stacks %}
diff --git a/app/templates/results_grid.html b/app/templates/results_grid.html
index 5b2a1ec..d043c4a 100644
--- a/app/templates/results_grid.html
+++ b/app/templates/results_grid.html
@@ -30,7 +30,7 @@
{% endif %}
{% endwith %}
-
+
{% for book in books|sort(attribute='title', reverse = False) %}
@@ -41,7 +41,7 @@
-{{ book.title }} |
+{{ book.title }} ({{ book.year_published or '?' }})
{% for author in book.authors %} @@ -53,8 +53,7 @@ -
- + Other books
@@ -67,7 +66,7 @@
-{{ book.title }} |
+{{ book.title }} ({{ book.year_published or '?' }})
{% for author in book.authors %} diff --git a/app/templates/show_books.html b/app/templates/show_books.html index ac9a819..fc4c1da 100755 --- a/app/templates/show_books.html +++ b/app/templates/show_books.html @@ -56,7 +56,7 @@ {{ book.year_published }} |
+ {{ book.year_published or '––'}} |
{{ book.category}} |
{% for stack in book.stacks %}
diff --git a/app/templates/show_books_grid.html b/app/templates/show_books_grid.html
index 4384ee8..cc2c2f3 100644
--- a/app/templates/show_books_grid.html
+++ b/app/templates/show_books_grid.html
@@ -38,7 +38,7 @@
|
-{{ book.title }} |
+{{ book.title }} ({{ book.year_published or '–' }})
{% for author in book.authors %} diff --git a/app/views.py b/app/views.py index ec86fd7..1cf4a11 100755 --- a/app/views.py +++ b/app/views.py @@ -387,11 +387,6 @@ def show_books(): if request.method == 'POST': newmsg = 'searched for: ' + search.search.data - # message = search.search.data - # newmessage = Chat(message) - # db.session.add(newmessage) - # db.session.commit() - # Send search to socket chat socketio.emit('channel-' + str(1), { 'username': 'Search form', 'text': search.search.data, @@ -410,7 +405,7 @@ def show_books(): @app.route('/search/ |