<commit_before>{% extends 'layout/admin/base.html' %}
{% from 'macros/admin.html' import render_extra_in_heading %}
{% from 'macros/datetime.html' import render_datetime %}
{% from 'macros/icons.html' import render_icon %}
{% from 'macros/misc.html' import render_tag %}
{% from 'macros/pagination.html' import render_pagination_nav %}
{% from 'macros/user_admin.html' import render_user_avatar_16_and_name %}
{% set current_page = 'news_admin' %}
{% set current_page_brand = brand %}
{% set title = '%s - News'|format(brand.title) %}

{% block body %}

  <nav class="breadcrumbs">
    <ol>
      <li>News</li>
      <li>Marke {{ brand.title }}</li>
      <li>Kanal {{ channel.id }}</li>
    </ol>
  </nav>
  <h1>Newsposts {{ render_extra_in_heading(items.total) }}</h1>

  {%- if g.current_user.has_permission(NewsItemPermission.create) %}
  <div class="button-row">
    <a class="button" href="{{ url_for('.item_create_form', channel_id=channel.id) }}">{{ render_icon('add') }} <span>Newspost erstellen</span></a>
  </div>
  {%- endif %}

  <table class="index wide">
    <thead>
      <tr>
        <th>
          Titel<br>
          Slug
        </th>
        <th></th>
        <th class="nowrap">
          Veröffentlichung<br>
          Letzte Änderung
        </th>
        <th></th>
      </tr><commit_msg>Link from news channel view's breadcrumbs to news channel index<commit_after>{% extends 'layout/admin/base.html' %}
{% from 'macros/admin.html' import render_extra_in_heading %}
{% from 'macros/datetime.html' import render_datetime %}
{% from 'macros/icons.html' import render_icon %}
{% from 'macros/misc.html' import render_tag %}
{% from 'macros/pagination.html' import render_pagination_nav %}
{% from 'macros/user_admin.html' import render_user_avatar_16_and_name %}
{% set current_page = 'news_admin' %}
{% set current_page_brand = brand %}
{% set title = '%s - News'|format(brand.title) %}

{% block body %}

  <nav class="breadcrumbs">
    <ol>
      <li>News</li>
      <li><a href="{{ url_for('.channel_index_for_brand', brand_id=brand.id) }}">Marke {{ brand.title }}</a></li>
      <li>Kanal {{ channel.id }}</li>
    </ol>
  </nav>
  <h1>Newsposts {{ render_extra_in_heading(items.total) }}</h1>

  {%- if g.current_user.has_permission(NewsItemPermission.create) %}
  <div class="button-row">
    <a class="button" href="{{ url_for('.item_create_form', channel_id=channel.id) }}">{{ render_icon('add') }} <span>Newspost erstellen</span></a>
  </div>
  {%- endif %}

  <table class="index wide">
    <thead>
      <tr>
        <th>
          Titel<br>
          Slug
        </th>
        <th></th>
        <th class="nowrap">
          Veröffentlichung<br>
          Letzte Änderung
        </th>
        <th></th>
      </tr>
{'fraction_non_alphanumeric': 0.1806615776081425, 'fraction_numerical': 0.0029080334423845873, 'mean_word_length': 3.2534775888717156, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '3228315', 'n_tokens_mistral': 1018, 'n_tokens_neox': 967, 'n_words': 184}