<?php

/* queue.tpl */
class __TwigTemplate_8adb54176873ae587abb091134849d8e15bab28a9fe69fe2074b64a5f61c0739 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("base.tpl", "queue.tpl", 1);
        $this->blocks = array(
            'content' => array($this, 'block_content'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "base.tpl";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_content($context, array $blocks = array())
    {
        // line 4
        echo "  <div class=\"page-header\">
    <h1>Файлы в обработке</h1>
    <p class=\"lead\">Наблюдайте за ходом обработки загруженных файлов.</p>
  </div>

  <p>Вам также наверняка будет интересно <a href=\"/tagme\">добавить метки</a> к файлам, у которых их нет.</p>

  ";
        // line 11
        if ((isset($context["images"]) ? $context["images"] : null)) {
            // line 12
            echo "    <h2>Изображения</h2>
    <div class=\"photos\">
      ";
            // line 14
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["images"]) ? $context["images"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
                // line 15
                echo "        <div class=\"file\">
          <a title=\"";
                // line 16
                echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "title", array()), "html", null, true);
                echo "\" href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "link", array()), "html", null, true);
                echo "\" class=\"preview\">
            ";
                // line 17
                if ($this->getAttribute($this->getAttribute($context["file"], "thumbnails", array()), "sq", array())) {
                    // line 18
                    echo "              <img src=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["file"], "thumbnails", array()), "sq", array()), "link", array()), "html", null, true);
                    echo "\" alt=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "name", array()), "html", null, true);
                    echo "\"/>
            ";
                } else {
                    // line 20
                    echo "              <img src=\"/static/images/placeholder.png\" alt=\"placeholder\"/>
            ";
                }
                // line 22
                echo "          </a>
        </div>
      ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 25
            echo "    </div>
  ";
        }
        // line 27
        echo "
  ";
        // line 28
        if ((isset($context["videos"]) ? $context["videos"] : null)) {
            // line 29
            echo "    <h2>Видео</h2>
    <ul class=\"queue videos\">
      ";
            // line 31
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["videos"]) ? $context["videos"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
                // line 32
                echo "        <li class=\"file\">
          ";
                // line 33
                if ($this->getAttribute($this->getAttribute($context["file"], "thumbnails", array()), "md", array())) {
                    // line 34
                    echo "          ";
                }
                // line 35
                echo "          <a href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "link", array()), "html", null, true);
                echo "\">
            ";
                // line 36
                if ($this->getAttribute($this->getAttribute($context["file"], "thumbnails", array()), "md", array())) {
                    // line 37
                    echo "              <img src=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["file"], "thumbnails", array()), "md", array()), "link", array()), "html", null, true);
                    echo "\" alt=\"thumbnail\"/>
            ";
                } else {
                    // line 39
                    echo "              <img src=\"/static/images/no_video.png\" alt=\"thumbnail\"/>
            ";
                }
                // line 41
                echo "          </a>
          <div class=\"info\">
            <p class=\"title\"><a href=\"";
                // line 43
                echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "link", array()), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "title", array()), "html", null, true);
                echo "</a></p>
            <p class=\"actions\">";
                // line 44
                echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "date", array()), "html", null, true);
                echo " &middot; <a href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "download", array()), "html", null, true);
                echo "\" title=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "filesize", array()), "html", null, true);
                echo "\">Скачать</a> &middot; <a href=\"/files/";
                echo twig_escape_filter($this->env, $this->getAttribute($context["file"], "id", array()), "html", null, true);
                echo "/delete\" data-confirm=\"Вы действительно хотите удалить этот файл?\" class=\"async post\">Удалить</a></p>
          </div>
        </li>
      ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 48
            echo "    </ul>
  ";
        }
    }

    public function getTemplateName()
    {
        return "queue.tpl";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  149 => 48,  133 => 44,  127 => 43,  123 => 41,  119 => 39,  113 => 37,  111 => 36,  106 => 35,  103 => 34,  101 => 33,  98 => 32,  94 => 31,  90 => 29,  88 => 28,  85 => 27,  81 => 25,  73 => 22,  69 => 20,  61 => 18,  59 => 17,  53 => 16,  50 => 15,  46 => 14,  42 => 12,  40 => 11,  31 => 4,  28 => 3,  11 => 1,);
    }
}
/* {% extends "base.tpl" %}*/
/* */
/* {% block content %}*/
/*   <div class="page-header">*/
/*     <h1>Файлы в обработке</h1>*/
/*     <p class="lead">Наблюдайте за ходом обработки загруженных файлов.</p>*/
/*   </div>*/
/* */
/*   <p>Вам также наверняка будет интересно <a href="/tagme">добавить метки</a> к файлам, у которых их нет.</p>*/
/* */
/*   {% if images %}*/
/*     <h2>Изображения</h2>*/
/*     <div class="photos">*/
/*       {% for file in images %}*/
/*         <div class="file">*/
/*           <a title="{{ file.title }}" href="{{ file.link }}" class="preview">*/
/*             {% if file.thumbnails.sq %}*/
/*               <img src="{{ file.thumbnails.sq.link }}" alt="{{ file.name }}"/>*/
/*             {% else %}*/
/*               <img src="/static/images/placeholder.png" alt="placeholder"/>*/
/*             {% endif %}*/
/*           </a>*/
/*         </div>*/
/*       {% endfor %}*/
/*     </div>*/
/*   {% endif %}*/
/* */
/*   {% if videos %}*/
/*     <h2>Видео</h2>*/
/*     <ul class="queue videos">*/
/*       {% for file in videos %}*/
/*         <li class="file">*/
/*           {% if file.thumbnails.md %}*/
/*           {% endif %}*/
/*           <a href="{{ file.link }}">*/
/*             {% if file.thumbnails.md %}*/
/*               <img src="{{ file.thumbnails.md.link }}" alt="thumbnail"/>*/
/*             {% else %}*/
/*               <img src="/static/images/no_video.png" alt="thumbnail"/>*/
/*             {% endif %}*/
/*           </a>*/
/*           <div class="info">*/
/*             <p class="title"><a href="{{ file.link }}">{{ file.title }}</a></p>*/
/*             <p class="actions">{{ file.date }} &middot; <a href="{{ file.download }}" title="{{ file.filesize }}">Скачать</a> &middot; <a href="/files/{{ file.id }}/delete" data-confirm="Вы действительно хотите удалить этот файл?" class="async post">Удалить</a></p>*/
/*           </div>*/
/*         </li>*/
/*       {% endfor %}*/
/*     </ul>*/
/*   {% endif %}*/
/* {% endblock %}*/
/* */
