<commit_before>{% extends 'sistema/theme/default/layout_sistema.twig' %}
{% block styles %}
{% endblock %}
{% block conteudo %}
    <h1 class="show-for-small-only"></h1>
    <div class="row expanded" data-equalizer data-equalize-on="medium" id="test-eq">
        {% import _self as this %}
        {{ this.lista_menus(sv_main_menu,0) }}
    </div>
    {% macro link(item,color) %}
        <div class="medium-6 large-4 columns end">
            <div class="callout" data-equalizer-watch style="background: rgba({{ color }},1);">
                <a href="{{ item.attr('url') }}">
                    <h4 style="color: white;"><i style="color: white;" class="fa {{ item.attr('icon') is not empty ? 'fa-' ~ item.attr('icon') ~ ' fa-lg fa-fw': 'fa fa-circle fa-sm fa-fw' }}"></i>
                    {{ item.attr('title') }}</h4>
                </a>
            </div>
        </div>
    {% endmacro %}
    {% macro lista_menus(menu,i) %}
        {% import _self as this %}
        {% set color = ['232,52,52','102,99,198','252,235,76','39,145,57','153,77,153'] %}
        {% for item in menu.tag('item') %}
            {% if item.attr('type') == 'link' %}
                {{ this.link(item,cycle(color,i)) }}
                {% set i = i + 1 %}
            {% else %}

                {% for subitem in item.tag('item') %}
                    {{ this.lista_menus(subitem,i) }}
                {% endfor %}
            {% endif %}
        {% endfor %}
    {% endmacro %}
    {# <div class="row">
        <p>BASEPATH: {{ basepath }}</p>
        <p>SELF: {{ self }}</p>
        <p>FCPATH: {{ fcpath }}</p>
        <p>SYSDIR: {{ sysdir }}</p>
        <p>APPPATH: {{ apppath }}</p>
        <p>VIEWPATH: {{ viewpath }}</p>
    </div> #}
{% endblock %}<commit_msg>Alteração na forma de seleção das cores dos links<commit_after>{% extends 'sistema/theme/default/layout_sistema.twig' %}
{% block styles %}
{% endblock %}
{% block conteudo %}
    <h1 class="show-for-small-only"></h1>
    <div class="row expanded" data-equalizer data-equalize-on="medium" id="test-eq">
        {% import _self as this %}
        {{ this.lista_menus(sv_main_menu) }}
    </div>
    {% macro link(item) %}
        {% set color = {0:'252,235,76','tachometer':'232,52,52','users':'102,99,198','search':'102,99,198','user-plus':'39,145,57','plus':'39,145,57',1:'153,77,153'} %}
        <div class="medium-6 large-4 columns end">
            <div class="callout" data-equalizer-watch style="background: rgba({{ color[item.attr('icon') in ['plus','search','users','user-plus','tachometer']?item.attr('icon'):0] }},1);">
                <a href="{{ item.attr('url') }}">
                    <h4 style="color: white;"><i style="color: white;" class="fa {{ item.attr('icon') is not empty ? 'fa-' ~ item.attr('icon') ~ ' fa-lg fa-fw': 'fa fa-circle fa-sm fa-fw' }}"></i>
                    {{ item.attr('title') }}</h4>
                </a>
            </div>
        </div>
    {% endmacro %}
    {% macro lista_menus(menu) %}
        {% import _self as this %}
        {% for item in menu.tag('item') %}
            {% if item.attr('type') == 'link' %}
                {{ this.link(item) }}
            {% else %}
                {{ this.lista_menus(item) }}
            {% endif %}
        {% endfor %}
    {% endmacro %}
    {# <div class="row">
        <p>BASEPATH: {{ basepath }}</p>
        <p>SELF: {{ self }}</p>
        <p>FCPATH: {{ fcpath }}</p>
        <p>SYSDIR: {{ sysdir }}</p>
        <p>APPPATH: {{ apppath }}</p>
        <p>VIEWPATH: {{ viewpath }}</p>
    </div> #}
{% endblock %}
{'fraction_non_alphanumeric': 0.2235327155293457, 'fraction_numerical': 0.03089019938219601, 'mean_word_length': 2.1690391459074734, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4112025', 'n_tokens_mistral': 1357, 'n_tokens_neox': 1201, 'n_words': 235}