<commit_before>{% load static %}

<script type="text/javascript">
  function menue_nutzer_umklappen(obj) {
    var s = document.getElementById('menue_nutzer');
    if (s.classList.toggle("unsichtbar")) {
      s.style.display = 'none';
    } else {
      s.style.display = 'block';
      s.style.width = obj.clientWidth + 'px'
    }
  }
</script>

<div class="dropdown">
  <button
    class="login_button"
    type="button"
    onclick="menue_nutzer_umklappen(this)"
    >{{ user.email }}<span class="caret"></span>
  </button>
  <ul
    style="border: 1px solid black;"
    class="dropdown_menu unsichtbar"
    id="menue_nutzer"
    onmouseleave="menue_nutzer_umklappen(this)">
    <li class="dropdown_header dropdown_name"
      >{{ user.first_name }} {{ user.last_name }}
    </li>
    <li class="dropdown_header dropdown_level"
      >{{ user.my_profile.get_stufe_display }}
    </li>
    <li><a href="{% url 'userena_profile_detail' user.username %}">Profil</a></li>
    <li><a href="{% url 'gast_spende' %}">Unterstützen</a></li>
    <li class="divider"></li>
    <li class="dropdown-header dropdown_credits"
      >Guthaben: {{ user.my_profile.guthaben }} <img
      class='dropdown_coin' src="{% static 'img/coin.png' %}">
    </li>
    <li><a href="{% url 'Produkte:warenkorb' %}"
      >Warenkorb <span class="badge">{{ cart.item_count }}</span></a>
    </li>
    <li><a href="{% url 'Produkte:bestellungen' %}">Bestellungen</a></li>
    <li class="divider"></li>
    <li><a href="{% url 'userena_signout' %}">Abmelden</a></li>
  </ul>
</div>
<div class="login_button">
  <a
    href="{% url 'Produkte:warenkorb' %}"
    >Warenkorb <span class="badge">{{ cart.item_count }}</span>
  </a>
</div>
<commit_msg>kopfleiste_nutzer: add link to admin for staff<commit_after>{% load static %}

<script type="text/javascript">
  function menue_nutzer_umklappen(obj) {
    var s = document.getElementById('menue_nutzer');
    if (s.classList.toggle("unsichtbar")) {
      s.style.display = 'none';
    } else {
      s.style.display = 'block';
      s.style.width = obj.clientWidth + 'px'
    }
  }
</script>

<div class="dropdown">
  <button
    class="login_button"
    type="button"
    onclick="menue_nutzer_umklappen(this)"
    >{{ user.email }}<span class="caret"></span>
  </button>
  <ul
    style="border: 1px solid black;"
    class="dropdown_menu unsichtbar"
    id="menue_nutzer"
    onmouseleave="menue_nutzer_umklappen(this)">
    <li class="dropdown_header dropdown_name"
      >{{ user.first_name }} {{ user.last_name }}
    </li>
    <li class="dropdown_header dropdown_level"
      >{{ user.my_profile.get_stufe_display }}
    </li>
    <li><a href="{% url 'userena_profile_detail' user.username %}">Profil</a></li>
    <li><a href="{% url 'gast_spende' %}">Unterstützen</a></li>
    <li class="divider"></li>
    <li class="dropdown-header dropdown_credits"
      >Guthaben: {{ user.my_profile.guthaben }} <img
      class='dropdown_coin' src="{% static 'img/coin.png' %}">
    </li>
    <li><a href="{% url 'Produkte:warenkorb' %}"
      >Warenkorb <span class="badge">{{ cart.item_count }}</span></a>
    </li>
    <li><a href="{% url 'Produkte:bestellungen' %}">Bestellungen</a></li>
    <li class="divider"></li>
    <li><a href="{% url 'userena_signout' %}">Abmelden</a></li>
  </ul>
</div>
<div class="login_button">
  <a
    href="{% url 'Produkte:warenkorb' %}"
    >Warenkorb <span class="badge">{{ cart.item_count }}</span>
  </a>
</div>
{% if request.user.is_staff %}
  <div class="login_button">
    <a href="{% url 'admin:index' %}">Datenbank (Admin)</a>
  </div>
{% endif %}

{'fraction_non_alphanumeric': 0.20011086474501108, 'fraction_numerical': 0.0005543237250554324, 'mean_word_length': 3.7549407114624507, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, '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': '3432892', 'n_tokens_mistral': 1372, 'n_tokens_neox': 1342, 'n_words': 242}