forked from mirrors/bookwyrm
Small cleanup
This commit is contained in:
parent
3d394f96bf
commit
a236163e67
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,6 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
{% load utilities %}
|
{% load utilities %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load layout %}
|
|
||||||
|
|
||||||
{% block title %}{{ book|book_title }}{% endblock %}
|
{% block title %}{{ book|book_title }}{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,8 @@ def truncatepath(value, arg):
|
||||||
|
|
||||||
@register.simple_tag(takes_context=False)
|
@register.simple_tag(takes_context=False)
|
||||||
def get_book_cover_thumbnail(book, size="medium", ext="jpg"):
|
def get_book_cover_thumbnail(book, size="medium", ext="jpg"):
|
||||||
"""Returns a book thumbnail at the specified size and extension, with fallback if needed"""
|
"""Returns a book thumbnail at the specified size and extension,
|
||||||
|
with fallback if needed"""
|
||||||
if size == "":
|
if size == "":
|
||||||
size = "medium"
|
size = "medium"
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue