<commit_before>{% extends 'layout/admin/base.html' %}
{% from 'macros/admin.html' import render_main_tabs %}
{% set current_page = 'user_admin' %}

{% block before_body %}
  {%- with party = current_page_party, user_id = current_tab_user_id %}
{{
  render_main_tabs(
    Navigation(None)
      .add_item(
        url_for('.view', user_id=user_id),
        'Übersicht',
        id='profile',
        required_permission=UserPermission.view,
        icon='user')
      .add_item(
        url_for('.view_permissions', user_id=user_id),
        'Berechtigungen',
        id='permissions',
        required_permission=UserPermission.view,
        icon='permission')
      .add_item(
        url_for('.view_events', user_id=user_id),
        'Ereignisse',
        id='events',
        required_permission=UserPermission.view,
        icon='history')
    , current_tab
  )
}}
  {%- endwith %}
{%- endblock %}
<commit_msg>Move admin's user profile's permission tab to the right of the events tab<commit_after>{% extends 'layout/admin/base.html' %}
{% from 'macros/admin.html' import render_main_tabs %}
{% set current_page = 'user_admin' %}

{% block before_body %}
  {%- with party = current_page_party, user_id = current_tab_user_id %}
{{
  render_main_tabs(
    Navigation(None)
      .add_item(
        url_for('.view', user_id=user_id),
        'Übersicht',
        id='profile',
        required_permission=UserPermission.view,
        icon='user')
      .add_item(
        url_for('.view_events', user_id=user_id),
        'Ereignisse',
        id='events',
        required_permission=UserPermission.view,
        icon='history')
      .add_item(
        url_for('.view_permissions', user_id=user_id),
        'Berechtigungen',
        id='permissions',
        required_permission=UserPermission.view,
        icon='permission')
    , current_tab
  )
}}
  {%- endwith %}
{%- endblock %}

{'fraction_non_alphanumeric': 0.13877118644067796, 'fraction_numerical': 0.0, 'mean_word_length': 2.910973084886128, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3018563', 'n_tokens_mistral': 631, 'n_tokens_neox': 598, 'n_words': 98}