<commit_before>{% extends 'layout/admin/base.html' %}
{% from 'macros/datetime.html' import render_datetime %}
{% set current_page = 'party_admin' %}
{% set current_page_party = party %}
{% set title = 'Partys' %}

{% block body %}

  <nav class="breadcrumbs">
    <ol>
      <li>Partys</li>
    </ol>
  </nav>
  <h1>{{ party.title }}</h1>

  <table class="index">
    <tr>
      <th>Marke</th>
      <td>{{ party.brand.title }}</td>
    </tr>
    <tr>
      <th>Beginn</th>
      <td>{{ render_datetime(party.starts_at) }}</td>
    </tr>
    <tr>
      <th>Ende</th>
      <td>{{ render_datetime(party.ends_at) }}</td>
    </tr>
    <tr>
      <th>Status</th>
      <td>
        {%- if party.is_archived -%}
        {{ render_icon('archived', title='archiviert') }} <em>archiviert</em>
        {%- else -%}
        aktiv
        {%- endif -%}
      </td>
    </tr><commit_msg>Link from party detail page to update form<commit_after>{% extends 'layout/admin/base.html' %}
{% from 'macros/datetime.html' import render_datetime %}
{% set current_page = 'party_admin' %}
{% set current_page_party = party %}
{% set title = 'Partys' %}

{% block body %}

  <nav class="breadcrumbs">
    <ol>
      <li>Partys</li>
    </ol>
  </nav>
  <h1>{{ party.title }}</h1>

  <div class="button-row">
    {%- if g.current_user.has_permission(PartyPermission.update) %}
    <a class="button" href="{{ url_for('.update_form', party_id=party.id) }}">{{ render_icon('edit') }} Bearbeiten</a>
    {%- endif %}
  </div>

  <table class="index">
    <tr>
      <th>Marke</th>
      <td>{{ party.brand.title }}</td>
    </tr>
    <tr>
      <th>Beginn</th>
      <td>{{ render_datetime(party.starts_at) }}</td>
    </tr>
    <tr>
      <th>Ende</th>
      <td>{{ render_datetime(party.ends_at) }}</td>
    </tr>
    <tr>
      <th>Status</th>
      <td>
        {%- if party.is_archived -%}
        {{ render_icon('archived', title='archiviert') }} <em>archiviert</em>
        {%- else -%}
        aktiv
        {%- endif -%}
      </td>
    </tr>
{'fraction_non_alphanumeric': 0.21689723320158102, 'fraction_numerical': 0.001976284584980237, 'mean_word_length': 2.455631399317406, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '4439925', 'n_tokens_mistral': 810, 'n_tokens_neox': 762, 'n_words': 139}