<commit_before>{% extends "ClientWebsiteBundle:views:master.html.twig" %}

{% block meta %}{% include "ClientWebsiteBundle:blocks:meta.html.twig" %}{% endblock %}

{% block content %}
    <div id="content">
        <div class="row" vocab="http://schema.org/" typeof="Content">
            <div class="col-lg-12">
                <h1 class="page-header" property="title">{{ content.title }}</h1>

                Images (excerpt):
                {% if extension.excerpt.images|length > 0 %}
                    <img src="{{ extension.excerpt.images[0].thumbnails['50x50'] }}" alt="{{ extension.excerpt.images[0].title }}"/>
                {% endif %}
                {% if extension.excerpt.icon|length > 0 %}
                    <img src="{{ extension.excerpt.icon[0].thumbnails['50x50'] }}" alt="{{ extension.excerpt.icon[0].title }}"/>
                {% endif %}

                {% autoescape false %}
                <div property="article">{{ content.article }}</div>
                {% endautoescape %}

                {% if content.ext.excerpt.categories is defined %}
                    <h3>Categories</h3>

                    <ul property="categories">
                        {% for category in content.ext.excerpt.categories %}
                            <li>{{ category.id }} - {{ category.name }}</li>
                        {% endfor %}
                    </ul>
                {% endif %}

                <h3>Images</h3>

                <div class="row {{ view.images.displayOption }}" property="images" typeof="collection">
                    {% for image in content.images %}
                        <div class="col-lg-4" rel="images" typeof="images">
                            <img src="{{ image.thumbnails['170x170'] }}" alt="{{ image.name }}"/>

                            <p class="text-primary">{{ image.title }}</p>
                        </div>
                    {% endfor %}
                </div>

                <h3>Internal Links</h3>

                {% if content.links is defined %}
                    <ul property="links">
                        {% for link in content.links %}
                            <li>
                                <a href="{% if link.url is defined %}{{ sulu_content_path(link.url) }}{% else %}#{% endif %}">{{ link.title|default('No Title') }}</a>
                            </li>
                        {% endfor %}
                    </ul>
                {% endif %}
            </div>
        </div>
    </div>
{% endblock %}
<commit_msg>added locale to url generation of internal links<commit_after>{% extends "ClientWebsiteBundle:views:master.html.twig" %}

{% block meta %}{% include "ClientWebsiteBundle:blocks:meta.html.twig" %}{% endblock %}

{% block content %}
    <div id="content">
        <div class="row" vocab="http://schema.org/" typeof="Content">
            <div class="col-lg-12">
                <h1 class="page-header" property="title">{{ content.title }}</h1>

                Images (excerpt):
                {% if extension.excerpt.images|length > 0 %}
                    <img src="{{ extension.excerpt.images[0].thumbnails['50x50'] }}" alt="{{ extension.excerpt.images[0].title }}"/>
                {% endif %}
                {% if extension.excerpt.icon|length > 0 %}
                    <img src="{{ extension.excerpt.icon[0].thumbnails['50x50'] }}" alt="{{ extension.excerpt.icon[0].title }}"/>
                {% endif %}

                {% autoescape false %}
                <div property="article">{{ content.article }}</div>
                {% endautoescape %}

                {% if content.ext.excerpt.categories is defined %}
                    <h3>Categories</h3>

                    <ul property="categories">
                        {% for category in content.ext.excerpt.categories %}
                            <li>{{ category.id }} - {{ category.name }}</li>
                        {% endfor %}
                    </ul>
                {% endif %}

                <h3>Images</h3>

                <div class="row {{ view.images.displayOption }}" property="images" typeof="collection">
                    {% for image in content.images %}
                        <div class="col-lg-4" rel="images" typeof="images">
                            <img src="{{ image.thumbnails['170x170'] }}" alt="{{ image.name }}"/>

                            <p class="text-primary">{{ image.title }}</p>
                        </div>
                    {% endfor %}
                </div>

                <h3>Internal Links</h3>

                {% if content.links is defined %}
                    <ul property="links">
                        {% for link in content.links %}
                            <li>
                                <a href="{% if link.url is defined %}{{ sulu_content_path(link.url, link.webspaceKey) }}{% else %}#{% endif %}">{{ link.title|default('No Title') }}</a>
                            </li>
                        {% endfor %}
                    </ul>
                {% endif %}
            </div>
        </div>
    </div>
{% endblock %}

{'fraction_non_alphanumeric': 0.1632413388138579, 'fraction_numerical': 0.012135447249951067, 'mean_word_length': 1.3483455882352942, 'pattern_counts': {'":': 0, '<': 73, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3406977', 'n_tokens_mistral': 1504, 'n_tokens_neox': 1279, 'n_words': 262}