<commit_before>{% extends 'base.html.twig' %}

{% macro print_field(field, adventure) %}
    <strong {% if not field.meta.approved %}class="bg-warning"{% endif %}>{{ field.meta.title }}:</strong>
    <ul>
        {% for content in field.contents %}
            <li>
                {% if field.meta.type not in ['text'] %}
                    {% if field.meta.type == 'url' %}
                        {% set path = content.content %}
                    {% else %}
                        {% set path = path('adventure_index', {f: {(field.meta.id): {o: 'eq', c: content.content}}}) ~ '#search-results' %}
                    {% endif %}
                    <a href="{{ path }}">
                {% endif %}
                {{ content.content|nl2br }}
                {% if field.meta.type not in ['text', 'url'] %}
                    </a>
                {% endif %}
                {% if not content.approved %}<span class="badge badge-warning">needs approval</span>{% endif %}
                {% if is_granted('ROLE_CURATOR') %}
                    <a href="{{ path('adventure_info_edit', {id: content.id}) }}">
                        <i class="fa fa-edit" title="edit"></i>
                    </a>
                {% endif %}
            </li>
        {% endfor %}<commit_msg>Add missing closing tag<commit_after>{% extends 'base.html.twig' %}

{% macro print_field(field, adventure) %}
    <strong {% if not field.meta.approved %}class="bg-warning"{% endif %}>{{ field.meta.title }}:</strong>
    <ul>
        {% for content in field.contents %}
            <li>
                {% if field.meta.type not in ['text'] %}
                    {% if field.meta.type == 'url' %}
                        {% set path = content.content %}
                    {% else %}
                        {% set path = path('adventure_index', {f: {(field.meta.id): {o: 'eq', c: content.content}}}) ~ '#search-results' %}
                    {% endif %}
                    <a href="{{ path }}">
                {% endif %}
                {{ content.content|nl2br }}
                {% if field.meta.type not in ['text'] %}
                    </a>
                {% endif %}
                {% if not content.approved %}<span class="badge badge-warning">needs approval</span>{% endif %}
                {% if is_granted('ROLE_CURATOR') %}
                    <a href="{{ path('adventure_info_edit', {id: content.id}) }}">
                        <i class="fa fa-edit" title="edit"></i>
                    </a>
                {% endif %}
            </li>
        {% endfor %}
{'fraction_non_alphanumeric': 0.17724970783015193, 'fraction_numerical': 0.0007791195948578107, 'mean_word_length': 1.3799814643188137, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '3423722', 'n_tokens_mistral': 805, 'n_tokens_neox': 672, 'n_words': 160}