PageRenderTime 39ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/app/cache/prod/twig/75/b1/fa9de3fb7d86b2f7032112f9ffd1612e2701b95df4ae4f3281b9c0c34eec.php

https://github.com/silvanei/treinaweb-symfony2-basico
PHP | 230 lines | 176 code | 11 blank | 43 comment | 17 complexity | 57f7801c001c5dd590e44410db100ab4 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <?php
  2. /* SecurityBundle:Collector:security.html.twig */
  3. class __TwigTemplate_75b1fa9de3fb7d86b2f7032112f9ffd1612e2701b95df4ae4f3281b9c0c34eec extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = $this->env->loadTemplate("@WebProfiler/Profiler/layout.html.twig");
  9. $this->blocks = array(
  10. 'toolbar' => array($this, 'block_toolbar'),
  11. 'menu' => array($this, 'block_menu'),
  12. 'panel' => array($this, 'block_panel'),
  13. );
  14. }
  15. protected function doGetParent(array $context)
  16. {
  17. return "@WebProfiler/Profiler/layout.html.twig";
  18. }
  19. protected function doDisplay(array $context, array $blocks = array())
  20. {
  21. $this->parent->display($context, array_merge($this->blocks, $blocks));
  22. }
  23. // line 3
  24. public function block_toolbar($context, array $blocks = array())
  25. {
  26. // line 4
  27. echo " ";
  28. if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "user")) {
  29. // line 5
  30. echo " ";
  31. $context["color_code"] = ((($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "enabled") && $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "authenticated"))) ? ("green") : ("yellow"));
  32. // line 6
  33. echo " ";
  34. $context["authentication_color_code"] = ((($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "enabled") && $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "authenticated"))) ? ("green") : ("red"));
  35. // line 7
  36. echo " ";
  37. $context["authentication_color_text"] = ((($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "enabled") && $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "authenticated"))) ? ("Yes") : ("No"));
  38. // line 8
  39. echo " ";
  40. } else {
  41. // line 9
  42. echo " ";
  43. $context["color_code"] = (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "enabled")) ? ("red") : ("black"));
  44. // line 10
  45. echo " ";
  46. }
  47. // line 11
  48. echo " ";
  49. ob_start();
  50. // line 12
  51. echo " ";
  52. if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "user")) {
  53. // line 13
  54. echo " <div class=\"sf-toolbar-info-piece\">
  55. <b>Logged in as</b>
  56. <span class=\"sf-toolbar-status sf-toolbar-status-";
  57. // line 15
  58. echo twig_escape_filter($this->env, (isset($context["color_code"]) ? $context["color_code"] : null), "html", null, true);
  59. echo "\">";
  60. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "user"), "html", null, true);
  61. echo "</span>
  62. </div>
  63. <div class=\"sf-toolbar-info-piece\">
  64. <b>Authenticated</b>
  65. <span class=\"sf-toolbar-status sf-toolbar-status-";
  66. // line 19
  67. echo twig_escape_filter($this->env, (isset($context["authentication_color_code"]) ? $context["authentication_color_code"] : null), "html", null, true);
  68. echo "\">";
  69. echo twig_escape_filter($this->env, (isset($context["authentication_color_text"]) ? $context["authentication_color_text"] : null), "html", null, true);
  70. echo "</span>
  71. </div>
  72. ";
  73. // line 21
  74. if (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "tokenClass") != null)) {
  75. // line 22
  76. echo " <div class=\"sf-toolbar-info-piece\">
  77. <b>Token class</b>
  78. ";
  79. // line 24
  80. echo $this->env->getExtension('code')->abbrClass($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "tokenClass"));
  81. echo "
  82. </div>
  83. ";
  84. }
  85. // line 27
  86. echo " ";
  87. } elseif ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "enabled")) {
  88. // line 28
  89. echo " You are not authenticated.
  90. ";
  91. } else {
  92. // line 30
  93. echo " The security is disabled.
  94. ";
  95. }
  96. // line 32
  97. echo " ";
  98. $context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  99. // line 33
  100. echo " ";
  101. ob_start();
  102. // line 34
  103. echo " <img width=\"24\" height=\"28\" alt=\"Security\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAcCAYAAAB75n/uAAAC70lEQVR42u2V3UtTYRzHu+mFwCwK+gO6CEryPlg7yiYx50vDqUwjFIZDSYUk2ZTmCysHvg9ZVggOQZiRScsR4VwXTjEwdKZWk8o6gd5UOt0mbev7g/PAkLONIOkiBx+25/v89vuc85zn2Q5Fo9F95UDwnwhS5HK5TyqVRv8m1JN6k+AiC+fn54cwbgFNIrTQ/J9IqDcJJDGBHsgDgYBSq9W6ysvLPf39/SSUUU7zsQ1yc3MjmN90OBzfRkZG1umzQqGIxPSTkIBjgdDkaGNjoza2kcFgUCE/QvMsq6io2PV6vQu1tbV8Xl7etkql2qqvr/+MbDE/Pz8s9OP2Cjhwwmw29+4R3Kec1WZnZ4fn5uamc3Jyttra2qbH8ero6JgdHh5+CvFHq9X6JZHgzODgoCVW0NPTY0N+ltU2Nzdv4GqXsYSrPp+vDw80aLFYxru6uhyQ/rDb7a8TCVJDodB1jUazTVlxcXGQ5/mbyE+z2u7u7veY38BVT3Z2djopm5qa6isrK/tQWVn5qb29fSGR4DC4PDAwMEsZHuArjGnyGKutq6v7ajQaF6urq9/MzMz0QuSemJiwQDwGkR0POhhXgILjNTU1TaWlpTxlOp1uyWQyaUjMajMzM8Nut/tJQUHBOpZppbCwkM/KytrBznuL9xDVxBMo8KXHYnu6qKjIivmrbIy67x6Px4Yd58W672ApfzY0NCyNjo7OZmRkiAv8fr+O47iwmABXtoXaG3uykF6vX7bZbF6cgZWqqiqezYkKcNtmjO+CF2AyhufgjsvlMiU7vXEF+4C4ALf9CwdrlVAqlcFkTdRqdQSHLUDgBEeSCrArAsiGwENs0XfJBE6ncxm1D8Aj/B6tigkkJSUlmxSwLYhMDeRsyyUCd+lHrWxtbe2aTCbbZTn1ZD92F0Cr8GBfgnsgDZwDt8EzMBmHMXBLqD0PDMAh9Gql3iRIESQSIAXp4CRIBZeEjIvDFZAm1J4C6UK9ROiZcvCn/+8FvwHtDdJEaRY+oQAAAABJRU5ErkJggg==\" />
  104. <span class=\"sf-toolbar-status sf-toolbar-status-";
  105. // line 35
  106. echo twig_escape_filter($this->env, (isset($context["color_code"]) ? $context["color_code"] : null), "html", null, true);
  107. echo "\"></span>
  108. ";
  109. // line 36
  110. if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "user")) {
  111. echo "<div class=\"sf-toolbar-status sf-toolbar-info-piece-additional\">";
  112. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "user"), "html", null, true);
  113. echo "</div>";
  114. }
  115. // line 37
  116. echo " ";
  117. $context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  118. // line 38
  119. echo " ";
  120. $this->env->loadTemplate("@WebProfiler/Profiler/toolbar_item.html.twig")->display(array_merge($context, array("link" => (isset($context["profiler_url"]) ? $context["profiler_url"] : null))));
  121. }
  122. // line 41
  123. public function block_menu($context, array $blocks = array())
  124. {
  125. // line 42
  126. echo "<span class=\"label\">
  127. <span class=\"icon\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAeCAYAAABaKIzgAAADqUlEQVR42u2YXUiTYRTHs6wbg4Toru4iI7qIrgoFv3XOj0BRpoE4U5n4AV6UOg0UhhaKwvLCr2ZeTPwIsbL50Yb5Oc0hrFU2WY55sUJB2wK3qbn+J15jvJhvay9S4MWfPe95znme357znPOOHXO73f+FjkD/OdDQ0FBf5DPo6bi4OC0Wch+WaD/a11vQyxR82KJ9vQUN2QvWarUWPE9CY4xeu1yucfqkZ5Ymyd8H0BBvQcM8gqsg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
  129. </span>
  130. ";
  131. }
  132. // line 48
  133. public function block_panel($context, array $blocks = array())
  134. {
  135. // line 49
  136. echo " <h2>Security</h2>
  137. ";
  138. // line 50
  139. if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "user")) {
  140. // line 51
  141. echo " <table>
  142. <tr>
  143. <th>Username</th>
  144. <td>";
  145. // line 54
  146. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "user"), "html", null, true);
  147. echo "</td>
  148. </tr>
  149. <tr>
  150. <th>Authenticated?</th>
  151. <td>
  152. ";
  153. // line 59
  154. if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "authenticated")) {
  155. // line 60
  156. echo " yes
  157. ";
  158. } else {
  159. // line 62
  160. echo " no ";
  161. if ((!twig_length_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "roles")))) {
  162. echo "<em>(probably because the user has no roles)</em>";
  163. }
  164. // line 63
  165. echo " ";
  166. }
  167. // line 64
  168. echo " </td>
  169. </tr>
  170. <tr>
  171. <th>Roles</th>
  172. <td>";
  173. // line 68
  174. echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "roles")), "html", null, true);
  175. echo "</td>
  176. </tr>
  177. ";
  178. // line 70
  179. if (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "tokenClass") != null)) {
  180. // line 71
  181. echo " <tr>
  182. <th>Token class</th>
  183. <td>";
  184. // line 73
  185. echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "tokenClass"), "html", null, true);
  186. echo "</td>
  187. </tr>
  188. ";
  189. }
  190. // line 76
  191. echo " </table>
  192. ";
  193. } elseif ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "enabled")) {
  194. // line 78
  195. echo " <p>
  196. <em>No token</em>
  197. </p>
  198. ";
  199. } else {
  200. // line 82
  201. echo " <p>
  202. <em>The security component is disabled</em>
  203. </p>
  204. ";
  205. }
  206. }
  207. public function getTemplateName()
  208. {
  209. return "SecurityBundle:Collector:security.html.twig";
  210. }
  211. public function isTraitable()
  212. {
  213. return false;
  214. }
  215. public function getDebugInfo()
  216. {
  217. return array ( 209 => 82, 203 => 78, 199 => 76, 193 => 73, 189 => 71, 187 => 70, 182 => 68, 176 => 64, 173 => 63, 168 => 62, 164 => 60, 162 => 59, 154 => 54, 149 => 51, 147 => 50, 144 => 49, 141 => 48, 133 => 42, 130 => 41, 125 => 38, 122 => 37, 116 => 36, 112 => 35, 109 => 34, 106 => 33, 103 => 32, 99 => 30, 95 => 28, 92 => 27, 86 => 24, 82 => 22, 80 => 21, 73 => 19, 64 => 15, 60 => 13, 57 => 12, 54 => 11, 51 => 10, 48 => 9, 45 => 8, 42 => 7, 39 => 6, 36 => 5, 33 => 4, 30 => 3,);
  218. }
  219. }