1 {% extends "base.html" %}
 
   3 {% load catalogue_tags pagination_tags %}
 
   7 {% block title %}{{ picture.title }} {% trans "on WolneLektury.pl" %}{% endblock %}
 
   9 {% block bodyid %}picture-detail{% endblock %}
 
  12     <h1>{{picture.title}}</h1>
 
  13     <form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form">
 
  14         <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to main page" %}</a></p>
 
  18         <div id='breadcrumbs'>
 
  19             {% if categories.author %}
 
  20                 {% for tag in categories.author %}
 
  21                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
 
  27         {% thumbnail picture.image_file "400x500" upscale="false" as im %}
 
  28         <img style="margin:{{ im|margin:"400x500" }}" src="{{ im.url }}" width="{{ im.x }}" height="{{ im.y }}" />
 
  31         {% if picture.info.license %}
 
  32         <p>{% trans "Work is licensed under " %} <a href="{{ picture.info.license }}">{{ picture.info.license_description }}</a>.</p>
 
  34         <p>{% trans "Based on" %}: {{ picture.info.source_name }}</p>
 
  35         {% if picture.info.description %}
 
  36             <div id="description">
 
  37                 <div id='description-long'>{{ picture.info.description|safe }}</div>
 
  38                 <div id='description-short'>{{ picture.info.description|safe|truncatewords_html:30 }}</div>
 
  40             <div id="toggle-description"><p></p></div>
 
  47             <h2>{% trans "Details" %}</h2>
 
  51                     {% for tag in categories.author %}
 
  52                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
 
  57                     {% for tag in categories.epoch %}
 
  58                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
 
  63                     {% for tag in categories.kind %}
 
  64                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %}, {% endif %}
 
  68             <h2>{% trans "Other resources" %}</h2>
 
  70                 {% if picture.info.source_url %}
 
  71                 <li><a href="{{ picture.info.source_url }}">{% trans "Source of the image" %}</a></li>
 
  73                 {% if picture.info.about and not hide_about %}
 
  74                 <li><a href="{{ picture.info.about }}">{% trans "Image on the Editor's Platform" %}</a></li>
 
  77                 {% if book.gazeta_link %}
 
  78                 <li><a href="{{ book.gazeta_link }}">{% trans "Picture description on Lektury.Gazeta.pl" %}</a></li>
 
  80                 {% if book.wiki_link %}
 
  81                 <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
 
  85             <p><a href="{{ picture.xml_file.url }}">{% trans "View XML source" %}</a></p>
 
  87         <div id="themes-list">
 
  88             <h2>{% trans "Work's themes " %}</h2>
 
  90             {% for theme in picture_themes %}
 
  91                 <li><a href="{{ theme.get_absolute_url }}">{{ theme }} ({{ theme.count }})</a></li>
 
  95         <div class="clearboth"></div>
 
  98         <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
 
 100             <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>