<commit_before>{% extends 'xadmin/includes/sitemenu_default.html' %}
{% load i18n xadmin_tags %}


{% block navbar_md %}
<div class="card-group d-block d-md-none d-lg-block nav-sitemenu col-md-2" id="nav-accordion">
  {% for item in nav_menu %}
  <div class="card mb-2 card-{% if item.selected %}info{%else%}default{% endif %}">
    <div class="card-header d-flex justify-content-between align-items-start border-0">
      <h6 class="card-title">
        <a class="accordion-toggle" data-toggle="collapse" data-parent="#nav-accordion" href="#nav-panel-{{forloop.counter}}">
          {% if item.url %}<a href="{{ item.url }}" class="section">{% endif %}
          {% if item.icon %}<i class="fa-fw {{item.icon}}"></i>
          {% elif item.first_icon %}<i class="fa-fw {{item.first_icon}}"></i>
          {%else%}<i class="fa-fw fa fa-chevron-right"></i>{% endif %}
          {% trans item.title %}
          {% if item.url %}</a>{% endif %}
        </a>
      </h6>
      <span class="badge badge-info">{{ item.menus|length }}</span>
    </div>
    <div id="nav-panel-{{forloop.counter}}" class="list-group card-collapse collapse{% if item.selected %} in{% endif %}">
      {% for sitem in item.menus %}
      <a href="{{ sitem.url|default_if_none:'#' }}" class="list-group-item{% if sitem.selected %} active{% endif %}">
        {% if sitem.icon %}<i class="fa-fw {{sitem.icon}}"></i>{%else%}<i class="fa-fw fa fa-chevron-right"></i>{% endif %}
        {{ sitem.title }}
      </a>
      {% endfor %}
    </div>
  </div>
  {% endfor %}
</div>
{% endblock navbar_md %}<commit_msg>:hammer: improvement layout in menu accordion layout.<commit_after>{% extends 'xadmin/includes/sitemenu_default.html' %}
{% load i18n xadmin_tags %}


{% block navbar_md %}
<div class="card-group d-block d-md-none d-lg-block nav-sitemenu col-md-2" id="nav-accordion">
  {% for item in nav_menu %}
  <div class="card mb-2 border card-{% if item.selected %}info{%else%}default{% endif %}">
    <div class="card-header d-flex justify-content-between align-items-start border-0">
      <h6 class="card-title mb-0">
        <a class="accordion-toggle" data-toggle="collapse" data-parent="#nav-accordion" href="#nav-panel-{{forloop.counter}}">
          {% if item.url %}<a href="{{ item.url }}" class="section">{% endif %}
          {% if item.icon %}<i class="fa-fw {{item.icon}}"></i>
          {% elif item.first_icon %}<i class="fa-fw {{item.first_icon}}"></i>
          {%else%}<i class="fa-fw fa fa-chevron-right"></i>{% endif %}
          {% trans item.title %}
          {% if item.url %}</a>{% endif %}
        </a>
      </h6>
      <span class="badge badge-primary">{{ item.menus|length }}</span>
    </div>
    <div id="nav-panel-{{forloop.counter}}" class="list-group list-group-flush card-collapse collapse{% if item.selected %} in{% endif %}">
      {% for sitem in item.menus %}
      <a href="{{ sitem.url|default_if_none:'#' }}" class="list-group-item{% if sitem.selected %} active{% endif %}">
        {% if sitem.icon %}<i class="fa-fw {{sitem.icon}}"></i>{%else%}<i class="fa-fw fa fa-chevron-right"></i>{% endif %}
        {{ sitem.title }}
      </a>
      {% endfor %}
    </div>
  </div>
  {% endfor %}
</div>
{% endblock navbar_md %}
{'fraction_non_alphanumeric': 0.22064276885043263, 'fraction_numerical': 0.0046353522867737945, 'mean_word_length': 3.09746835443038, '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': '5322269', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1101, 'n_words': 241}