<?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_1d0b5b963746022e50f3859fe5333edb82899ec4c4e794f5f0142c21ba3e3485 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_dir')->getCallable(), [($context["path"] ?? null)])) : (call_user_func_array($this->env->getFunction('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, 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('sizeForHumans')->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", "/home/wp_dszafp/theforestadvocate.org/rp_comments/L___Santa_Fe_Project_Comments/app/views/components/file.twig");
    }
}
