From ff507913e25715abef852bf1182aecd8ea835202 Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 11 Jun 2018 16:56:34 +0200 Subject: [PATCH] added stack length limit and ascii in catalog view --- app/static/css/style.css | 4 ++++ app/templates/show_books.html | 11 +++++++++-- app/templates/show_stack_detail.html | 15 ++++++++++++++- app/templates/show_stack_detail_tab.html | 11 +++-------- app/views.py | 2 +- 5 files changed, 31 insertions(+), 12 deletions(-) diff --git a/app/static/css/style.css b/app/static/css/style.css index 5573e85..7fc3444 100755 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -121,6 +121,10 @@ display: inline-block; font-size: 10px; } +#ascii { + text-align: center; +} + .library_table tr:nth-child(even){ background-color: #fafafa; diff --git a/app/templates/show_books.html b/app/templates/show_books.html index 04a9d0b..2c2e6fb 100755 --- a/app/templates/show_books.html +++ b/app/templates/show_books.html @@ -3,7 +3,7 @@ {% block main %}
{% from "_formhelpers.html" import render_field %} - +
{{ form.select(style="width: 100px; margin: 10px; float: left; font-size: 20px") }}
diff --git a/app/views.py b/app/views.py index b8b4447..430b6cd 100755 --- a/app/views.py +++ b/app/views.py @@ -393,7 +393,7 @@ def show_stack_by_id(id, is_tab=False): stack = Stack.query.get(id) if not stack: - abort (404) + return render_template('add_stack.html', stacks=stacks, form=form) else: if is_tab == False: return render_template('show_stack_detail.html', stack=stack)