<?php

/* core/themes/classy/templates/dataset/forum-list.html.twig */
class __TwigTemplate_f0f07ef7c641ffbd8aff43b7537cec8810624d7ce35c4992d66bbf58450d2b45 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $__internal_3d207ad3a57529acdb30cf2520b3bb5b94f49838e0a27c2c15cf7d63635c0ff3 = $this->env->getExtension("native_profiler");
        $__internal_3d207ad3a57529acdb30cf2520b3bb5b94f49838e0a27c2c15cf7d63635c0ff3->enter($__internal_3d207ad3a57529acdb30cf2520b3bb5b94f49838e0a27c2c15cf7d63635c0ff3_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "core/themes/classy/templates/dataset/forum-list.html.twig"));

        $tags = array("for" => 43, "if" => 45);
        $filters = array("t" => 36);
        $functions = array();

        try {
            $this->env->getExtension('sandbox')->checkSecurity(
                array('for', 'if'),
                array('t'),
                array()
            );
        } catch (Twig_Sandbox_SecurityError $e) {
            $e->setTemplateFile($this->getTemplateName());

            if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
                $e->setTemplateLine($tags[$e->getTagName()]);
            } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
                $e->setTemplateLine($filters[$e->getFilterName()]);
            } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
                $e->setTemplateLine($functions[$e->getFunctionName()]);
            }

            throw $e;
        }

        // line 33
        echo "<table id=\"forum-";
        echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["forum_id"]) ? $context["forum_id"] : null), "html", null, true));
        echo "\">
  <thead>
    <tr>
      <th>";
        // line 36
        echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Forum")));
        echo "</th>
      <th>";
        // line 37
        echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Topics")));
        echo "</th>
      <th>";
        // line 38
        echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Posts")));
        echo "</th>
      <th>";
        // line 39
        echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Last post")));
        echo "</th>
    </tr>
  </thead>
  <tbody>
  ";
        // line 43
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["forums"]) ? $context["forums"] : null));
        foreach ($context['_seq'] as $context["child_id"] => $context["forum"]) {
            // line 44
            echo "    <tr id=\"forum-list-";
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $context["child_id"], "html", null, true));
            echo "\" class=\"";
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["forum"], "zebra", array()), "html", null, true));
            echo "\">
      <td ";
            // line 45
            if (($this->getAttribute($context["forum"], "is_container", array()) == true)) {
                // line 46
                echo "colspan=\"4\" class=\"container\"";
            } else {
                // line 48
                echo "class=\"forum-list__forum\"";
            }
            // line 49
            echo ">
        ";
            // line 55
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(range(1, $this->getAttribute($context["forum"], "depth", array())));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                if (($this->getAttribute($context["forum"], "depth", array()) > 0)) {
                    echo "<div class=\"indented\">";
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 56
            echo "          <div class=\"forum__icon forum-status-";
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["forum"], "icon_class", array()), "html", null, true));
            echo "\" title=\"";
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["forum"], "icon_title", array()), "html", null, true));
            echo "\">
            <span class=\"visually-hidden\">";
            // line 57
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["forum"], "icon_title", array()), "html", null, true));
            echo "</span>
          </div>
          <div class=\"forum__name\"><a href=\"";
            // line 59
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["forum"], "link", array()), "html", null, true));
            echo "\">";
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["forum"], "label", array()), "html", null, true));
            echo "</a></div>
          ";
            // line 60
            if ($this->getAttribute($this->getAttribute($context["forum"], "description", array()), "value", array())) {
                // line 61
                echo "            <div class=\"forum__description\">";
                echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute($context["forum"], "description", array()), "value", array()), "html", null, true));
                echo "</div>
          ";
            }
            // line 63
            echo "        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(range(1, $this->getAttribute($context["forum"], "depth", array())));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                if (($this->getAttribute($context["forum"], "depth", array()) > 0)) {
                    echo "</div>";
                }
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 64
            echo "      </td>
      ";
            // line 65
            if (($this->getAttribute($context["forum"], "is_container", array()) == false)) {
                // line 66
                echo "        <td class=\"forum__topics\">
          ";
                // line 67
                echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["forum"], "num_topics", array()), "html", null, true));
                echo "
          ";
                // line 68
                if (($this->getAttribute($context["forum"], "new_topics", array()) == true)) {
                    // line 69
                    echo "            <br />
            <a href=\"";
                    // line 70
                    echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["forum"], "new_url", array()), "html", null, true));
                    echo "\">";
                    echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["forum"], "new_text", array()), "html", null, true));
                    echo "</a>
          ";
                }
                // line 72
                echo "        </td>
        <td class=\"forum__posts\">";
                // line 73
                echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["forum"], "num_posts", array()), "html", null, true));
                echo "</td>
        <td class=\"forum__last-reply\">";
                // line 74
                echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($context["forum"], "last_reply", array()), "html", null, true));
                echo "</td>
      ";
            }
            // line 76
            echo "    </tr>
  ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['child_id'], $context['forum'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 78
        echo "  </tbody>
</table>
";
        
        $__internal_3d207ad3a57529acdb30cf2520b3bb5b94f49838e0a27c2c15cf7d63635c0ff3->leave($__internal_3d207ad3a57529acdb30cf2520b3bb5b94f49838e0a27c2c15cf7d63635c0ff3_prof);

    }

    public function getTemplateName()
    {
        return "core/themes/classy/templates/dataset/forum-list.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  187 => 78,  180 => 76,  175 => 74,  171 => 73,  168 => 72,  161 => 70,  158 => 69,  156 => 68,  152 => 67,  149 => 66,  147 => 65,  144 => 64,  132 => 63,  126 => 61,  124 => 60,  118 => 59,  113 => 57,  106 => 56,  94 => 55,  91 => 49,  88 => 48,  85 => 46,  83 => 45,  76 => 44,  72 => 43,  65 => 39,  61 => 38,  57 => 37,  53 => 36,  46 => 33,);
    }
}
/* {#*/
/* /***/
/*  * @file*/
/*  * Theme override to display a list of forums and containers.*/
/*  **/
/*  * Available variables:*/
/*  * - forums: A collection of forums and containers to display. It is keyed to*/
/*  *   the numeric IDs of all child forums and containers. Each forum in forums*/
/*  *   contains:*/
/*  *   - is_container: A flag indicating if the forum can contain other*/
/*  *     forums. Otherwise, the forum can only contain topics.*/
/*  *   - depth: How deep the forum is in the current hierarchy.*/
/*  *   - zebra: 'even' or 'odd', used for row class.*/
/*  *   - icon_class: 'default' or 'new', used for forum icon class.*/
/*  *   - icon_title: Text alternative for the forum icon.*/
/*  *   - name: The name of the forum.*/
/*  *   - link: The URL to link to this forum.*/
/*  *   - description: The description field for the forum, containing:*/
/*  *     - value: The descriptive text for the forum.*/
/*  *   - new_topics: A flag indicating if the forum contains unread posts.*/
/*  *   - new_url: A URL to the forum's unread posts.*/
/*  *   - new_text: Text for the above URL, which tells how many new posts.*/
/*  *   - old_topics: A count of posts that have already been read.*/
/*  *   - num_posts: The total number of posts in the forum.*/
/*  *   - last_reply: Text representing the last time a forum was posted or*/
/*  *     commented in.*/
/*  * - forum_id: Forum ID for the current forum. Parent to all items within the*/
/*  *   forums array.*/
/*  **/
/*  * @see template_preprocess_forum_list()*/
/*  *//* */
/* #}*/
/* <table id="forum-{{ forum_id }}">*/
/*   <thead>*/
/*     <tr>*/
/*       <th>{{ 'Forum'|t }}</th>*/
/*       <th>{{ 'Topics'|t }}</th>*/
/*       <th>{{ 'Posts'|t }}</th>*/
/*       <th>{{ 'Last post'|t }}</th>*/
/*     </tr>*/
/*   </thead>*/
/*   <tbody>*/
/*   {% for child_id, forum in forums %}*/
/*     <tr id="forum-list-{{ child_id }}" class="{{ forum.zebra }}">*/
/*       <td {% if forum.is_container == true -%}*/
/*         colspan="4" class="container"*/
/*       {%- else -%}*/
/*         class="forum-list__forum"*/
/*       {%- endif -%}>*/
/*         {#*/
/*           Enclose the contents of this cell with X divs, where X is the*/
/*           depth this forum resides at. This will allow us to use CSS*/
/*           left-margin for indenting.*/
/*         #}*/
/*         {% for i in 1..forum.depth if forum.depth > 0 %}<div class="indented">{% endfor %}*/
/*           <div class="forum__icon forum-status-{{ forum.icon_class }}" title="{{ forum.icon_title }}">*/
/*             <span class="visually-hidden">{{ forum.icon_title }}</span>*/
/*           </div>*/
/*           <div class="forum__name"><a href="{{ forum.link }}">{{ forum.label }}</a></div>*/
/*           {% if forum.description.value %}*/
/*             <div class="forum__description">{{ forum.description.value }}</div>*/
/*           {% endif %}*/
/*         {% for i in 1..forum.depth if forum.depth > 0 %}</div>{% endfor %}*/
/*       </td>*/
/*       {% if forum.is_container == false %}*/
/*         <td class="forum__topics">*/
/*           {{ forum.num_topics }}*/
/*           {% if forum.new_topics == true %}*/
/*             <br />*/
/*             <a href="{{ forum.new_url }}">{{ forum.new_text }}</a>*/
/*           {% endif %}*/
/*         </td>*/
/*         <td class="forum__posts">{{ forum.num_posts }}</td>*/
/*         <td class="forum__last-reply">{{ forum.last_reply }}</td>*/
/*       {% endif %}*/
/*     </tr>*/
/*   {% endfor %}*/
/*   </tbody>*/
/* </table>*/
/* */
