Commit 23ccb029 authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

Thumbnail generaor for OPDS and Web version

parent 5154a461
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ VERSION = "0.42-dev"
TITLE = getattr(settings, "SOPDS_TITLE", "SimpleOPDS")
SUBTITLE = getattr(settings, "SOPDS_SUBTITLE", "SimpleOPDS Catalog by www.sopds.ru. Version %s."%VERSION)
ICON = getattr(settings, "SOPDS_ICON", "/static/images/favicon.ico")
THUMB_SIZE = 50
THUMB_SIZE = 100

loglevel = getattr(settings, "SOPDS_LOGLEVEL", "info")
if loglevel.lower() in loglevels:
+20.6 KiB
Loading image diff...
−17 KiB (3.61 KiB)
Loading image diff...
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@
		<div class="large-12 column">	
		    <table><tr>	
		    <td width="100px" style="padding:0rem 0rem;">
			     <img src="{% url 'opds_catalog:cover' b.id %}" type="image/jpeg" width="80px">
			     <img src="{% url 'opds_catalog:thumb' b.id %}" type="image/jpeg" width="80px">
			</td>
			<td style="font-size:80%; padding:1rem 1rem;">
				<b>{% trans "Book title:" %}</b> {{ b.title }} <br>
+2 −2
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
   <div class="column">
   <span data-tooltip aria-haspopup="true" class="has-tip" data-disable-hover="false" tabindex="1" title="{{b.title}}">
    <a href="{% url "web:searchbooks" %}?searchtype=i&searchterms={{b.book_id}}">
       <img class="thumbnail" src="{% url 'opds_catalog:cover' b.book_id %}" type="image/jpeg" alt="{{b.title}}">
       <img class="thumbnail" src="{% url 'opds_catalog:thumb' b.book_id %}" type="image/jpeg" alt="{{b.title}}">
    </a>   
   </span></div>
{% endfor %}
@@ -39,7 +39,7 @@
	</div>
	<div class="large-12 columns clearfix">    
	{% if random_book %}
		<img class="float-left" src="{% url 'opds_catalog:cover' random_book.id %}" type="image/jpeg" width="80px" style="padding:0.3rem;">
		<img class="float-left" src="{% url 'opds_catalog:thumb' random_book.id %}" type="image/jpeg" width="80px" style="padding:0.3rem;">
		<p style="font-size:80%;line-height:1rem;margin-bottom:0.25rem; margin-top:0.25rem;"><b><a href="{% url "web:searchbooks" %}?searchtype=i&searchterms={{random_book.id}}">{{ random_book.title }}</a> </b></p>
		<div style="font-size:70%;text-align:justify;"> {{ random_book.annotation | truncatechars:400}} </div>	
	{% endif %}	
Loading