commit bd09baccef9df0fc0aa250e24c980ed5b3f2e85e Author: Joel Pittet Date: Fri Aug 30 11:48:48 2013 -0700 twig docblock remove template_preprocess and whitespace cleanup diff --git a/core/modules/system/templates/links.html.twig b/core/modules/system/templates/links.html.twig index 13a3e0c..0be0e77 100644 --- a/core/modules/system/templates/links.html.twig +++ b/core/modules/system/templates/links.html.twig @@ -31,33 +31,32 @@ * See http://juicystudio.com/article/screen-readers-display-none.php and * http://www.w3.org/TR/WCAG-TECHS/H42.html for more information. * - * @see template_preprocess() * @see template_preprocess_links() * * @ingroup themeable */ #} {% spaceless %} -{% if links %} - {% if heading %} - {% if heading.level %} - <{{ heading.level }}{{ heading.attributes }}>{{ heading.text }} - {% else %} - {{ heading.text }} + {% if links %} + {% if heading %} + {% if heading.level %} + <{{ heading.level }}{{ heading.attributes }}>{{ heading.text }} + {% else %} + {{ heading.text }} + {% endif %} {% endif %} + + {% for item in links %} + + {% if item.link %} + {{ item.link }} + {% elseif item.text_attributes %} + {{ item.text }} + {% else %} + {{ item.text }} + {% endif %} + + {% endfor %} + {% endif %} - - {% for item in links %} - - {%- if item.link -%} - {{ item.link }} - {%- elseif item.text_attributes -%} - {{ item.text }} - {%- else -%} - {{ item.text }} - {%- endif -%} - - {% endfor %} - -{% endif %} {% endspaceless %}