<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* components/file.twig */
class __TwigTemplate_1acde6a774dce62e1b16f6bed966af506de36894fe116d1dcf89129b2d3add8d extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<a
    href=\"";
        // line 2
        echo twig_escape_filter($this->env, ((($context["parentDir"] ?? null)) ? (call_user_func_array($this->env->getFunction('parent_url')->getCallable(), [($context["path"] ?? null)])) : (call_user_func_array($this->env->getFunction('file_url')->getCallable(), [twig_get_attribute($this->env, $this->source, ($context["file"] ?? null), "getPathname", [], "any", false, false, false, 2)]))), "html", null, true);
        echo "\"
    class=\"flex flex-col items-center rounded-lg font-mono group hover:bg-gray-200 hover:shadow\"
>
    <div class=\"flex justify-between items-center p-4 w-full\">
        <div class=\"pr-2\">
            ";
        // line 7
        if (($context["parentDir"] ?? null)) {
            // line 8
            echo "                <i class=\"fas fa-level-up-alt fa-fw fa-lg\"></i>
            ";
        } else {
            // line 10
            echo "                ";
            echo call_user_func_array($this->env->getFunction('icon')->getCallable(), [($context["file"] ?? null)]);
            echo "
            ";
        }
        // line 12
        echo "        </div>

        <div class=\"flex-1 truncate\">
            ";
        // line 15
        ((($context["parentDir"] ?? null)) ? (print ("..")) : (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["file"] ?? null), "getRelativePathname", [], "any", false, false, false, 15), "html", null, true))));
        echo "
        </div>

        ";
        // line 18
        if (twig_get_attribute($this->env, $this->source, ($context["file"] ?? null), "isFile", [], "any", false, false, false, 18)) {
            // line 19
            echo "            <div class=\"ml-2\">
                <button
                    title=\"";
            // line 21
            echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), ["file.info"]), "html", null, true);
            echo "\"
                    class=\"flex justify-center items-center rounded-full p-2 -m-1 md:invisible hover:bg-gray-400 hover:shadow group-hover:visible\"
                    v-on:click.prevent=\"showFileInfo('";
            // line 23
            echo twig_escape_filter($this->env, twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('url')->getCallable(), [twig_get_attribute($this->env, $this->source, ($context["file"] ?? null), "getPathname", [], "any", false, false, false, 23)]), "js"), "html", null, true);
            echo "')\"
                >
                    <i class=\"fas fa-info-circle\"></i>
                </button>
            </div>
        ";
        }
        // line 29
        echo "
        <div class=\"hidden whitespace-no-wrap text-right mx-2 w-1/6 sm:block\">
            ";
        // line 31
        if ((($context["parentDir"] ?? null) || twig_get_attribute($this->env, $this->source, ($context["file"] ?? null), "isDir", [], "any", false, false, false, 31))) {
            // line 32
            echo "                    —
            ";
        } else {
            // line 34
            echo "                ";
            echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('size_for_humans')->getCallable(), [($context["file"] ?? null)]), "html", null, true);
            echo "
            ";
        }
        // line 36
        echo "        </div>

        <div class=\"hidden whitespace-no-wrap text-right truncate ml-2 w-1/4 sm:block\">
            ";
        // line 39
        ((($context["parentDir"] ?? null)) ? (print ("—")) : (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["file"] ?? null), "getMTime", [], "any", false, false, false, 39)), "html", null, true))));
        echo "
        </div>
    </div>
</a>
";
    }

    public function getTemplateName()
    {
        return "components/file.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  112 => 39,  107 => 36,  101 => 34,  97 => 32,  95 => 31,  91 => 29,  82 => 23,  77 => 21,  73 => 19,  71 => 18,  65 => 15,  60 => 12,  54 => 10,  50 => 8,  48 => 7,  40 => 2,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "components/file.twig", "/var/www/www.diogo.site/public/projects/GNU-social/soc/2020/daily_report/archive/May/app/views/components/file.twig");
    }
}
