{% extends "themes/"|add:settings.page_theme|add:"/base.html" %}
{% load tag_help %}

{% block head_extensions %}
  {% include 'pygal/repeat_head.html' %}
{% endblock head_extensions %}

{% block modal %}
    <div id="openModal" class="modalDialog">
      <div class="image_modal">
        <img class="webnail_modal" src="{{ item.url_webnail|safe }}">
      </div>
      <a href="{{ item.url_userview|safe }}" class="close">X</a>
    </div>
{% endblock modal %}


{% block content %}
  {% with item=item.prv %}
    {% include "pygal/thumb.html" %}
  {% endwith %}
  
  <div class="image">
    {% with bar=item.tagbar slim=True %}{% include 'themes/'|add:settings.page_theme|add:'/menubar.html' %}{% endwith %}
    <div class="image_bg">
      <div class="container">
        <a href="{{ item.url_item|safe }}"><img class="webnail" src="{{ item.url_webnail|safe }}"></a>
          {% for tag in item.tags %}
          	{% if tag.has_valid_coordinates %} 
        <a class="tag" title="{{ tag.text }}" {% if item.may_modify %}href="{% tag_editurl tag %}"{% endif %} style="width: {% tag_width tag item %}%; height: {% tag_height tag item %}%; left: {% tag_pos_x tag item %}%; top: {% tag_pos_y tag item %}%;"></a>
          	{% endif %}
          {% endfor %}
        </div>
    </div>
  </div>

  {% with item=item.nxt %}
    {% include "pygal/thumb.html" %}
  {% endwith %}

  <div class="clearfix"></div>
{% endblock content %}
