<commit_before>{% extends '@SkaphandrusAppBundle/Resources/views/content_layout.html.twig' %}

{% block page_title %}{% trans with {'%contest%': category.contest.name, '%category%': category.translate.name} %}page.contest_photos.meta_tag.title{% endtrans %}{% endblock %}

{% block page_description %}{% trans with {'%category%': category.translate.name, '%contest%': category.contest.name} %}page.contest_photos.meta_tag.description{% endtrans %}{% endblock %}

{% block hreflang %}
    <link rel="alternate" hreflang="pt" href="{{ app.request.getSchemeAndHttpHost() ~ path('contests_photos', {'contest_slug': slugify(category.contest.name), 'category_slug': slugify(category.translate('pt').name), 'locale': 'pt'}) }}" />
    <link rel="alternate" hreflang="en" href="{{ app.request.getSchemeAndHttpHost() ~ path('contests_photos', {'contest_slug': slugify(category.contest.name), 'category_slug': slugify(category.translate('en').name), 'locale': 'en'}) }}" />
{% endblock %}

{% set keywords = category.contest.name %}
{% set keywords = keywords~', '~("meta_tag.keyword.categories"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.pictures"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.images"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.photos"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.festival"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.competition"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.challenge"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.contest"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.event"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.photography"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.underwater"|trans) %}

{% block page_keywords %}{{keywords}}{% endblock %}

{% block heading_title %}
    {% trans with {'%contest%': category.contest.name, '%category%': category.translate.name} %}page.contest_photos.h2.heading_title{% endtrans %}
{% endblock %}

{% block heading_breadcrumbs %}
    <ol class="breadcrumb">
        <li><a href="{{ path('index') }}">{{ "breadcrumb.home"|trans }}</a></li>
        <li><a href="{{ path("contests_landing_page") }}">{{ "page.contest.breadcrumb.contests"|trans }}</a></li>
        <li><a href="{{ url_to_contest(category.contest) }}">{{ category.contest.name }}</a></li>
        <li class="active"><strong>{{ category.translate.name }}</strong></li>
    </ol>
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    <script src="{{ asset('bundles/skaphandrusapp/js/isotope.pkgd.min.js') }}"></script>
    <script src="{{ asset('bundles/skaphandrusapp/js/imagesloaded.pkgd.min.js') }}"></script>
    <script src='https://www.google.com/recaptcha/api.js'></script>

    <script type="text/javascript">
        $(function () {
            var $grid = $('.grid-contest').imagesLoaded(function () {
                // init Isotope after all images have loaded
                $grid.isotope({
                    // options
                    itemSelector: '.grid-item-contest',
                    layoutMode: 'masonry'
                });
            });

            $('.vote-button').click(function () {
                photo_id = $(this).attr('id');

                if ($(this).hasClass('btn-primary')) {
                    $.ajax({
                        url: "/{{ app.request.locale }}/category/{{ category.id }}/vote-photo/" + $(this).attr('id'),
                        success: function (data) {
                            $('.vote-button.btn-success').removeClass('btn-success').addClass('btn-primary').html('<i class="fa fa-check"></i> {{ "page.contest.btn.vote"|trans }}');
                            $('.vote-button#' + photo_id).removeClass('btn-primary').addClass('btn-success').html('<i class="fa fa-check"></i> {{ "page.contest.btn.voted"|trans }}');
                        };
                    });<commit_msg>profile<commit_after>{% extends '@SkaphandrusAppBundle/Resources/views/content_layout.html.twig' %}

{% block page_title %}{% trans with {'%contest%': category.contest.name, '%category%': category.translate.name} %}page.contest_photos.meta_tag.title{% endtrans %}{% endblock %}

{% block page_description %}{% trans with {'%category%': category.translate.name, '%contest%': category.contest.name} %}page.contest_photos.meta_tag.description{% endtrans %}{% endblock %}

{% block hreflang %}
    <link rel="alternate" hreflang="pt" href="{{ app.request.getSchemeAndHttpHost() ~ path('contests_photos', {'contest_slug': slugify(category.contest.name), 'category_slug': slugify(category.translate('pt').name), 'locale': 'pt'}) }}" />
    <link rel="alternate" hreflang="en" href="{{ app.request.getSchemeAndHttpHost() ~ path('contests_photos', {'contest_slug': slugify(category.contest.name), 'category_slug': slugify(category.translate('en').name), 'locale': 'en'}) }}" />
{% endblock %}

{% set keywords = category.contest.name %}
{% set keywords = keywords~', '~("meta_tag.keyword.categories"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.pictures"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.images"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.photos"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.festival"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.competition"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.challenge"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.contest"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.event"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.photography"|trans) %}
{% set keywords = keywords~', '~("meta_tag.keyword.underwater"|trans) %}

{% block page_keywords %}{{keywords}}{% endblock %}

{% block heading_title %}
    {% trans with {'%contest%': category.contest.name, '%category%': category.translate.name} %}page.contest_photos.h2.heading_title{% endtrans %}
{% endblock %}

{% block heading_breadcrumbs %}
    <ol class="breadcrumb">
        <li><a href="{{ path('index') }}">{{ "breadcrumb.home"|trans }}</a></li>
        <li><a href="{{ path("contests_landing_page") }}">{{ "page.contest.breadcrumb.contests"|trans }}</a></li>
        <li><a href="{{ url_to_contest(category.contest) }}">{{ category.contest.name }}</a></li>
        <li class="active"><strong>{{ category.translate.name }}</strong></li>
    </ol>
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    <script src="{{ asset('bundles/skaphandrusapp/js/isotope.pkgd.min.js') }}"></script>
    <script src="{{ asset('bundles/skaphandrusapp/js/imagesloaded.pkgd.min.js') }}"></script>
    <script src='https://www.google.com/recaptcha/api.js'></script>

    <script type="text/javascript">
        $(function () {
            var $grid = $('.grid-contest').imagesLoaded(function () {
                // init Isotope after all images have loaded
                $grid.isotope({
                    // options
                    itemSelector: '.grid-item-contest',
                    layoutMode: 'masonry'
                });
            });

            $('.vote-button').click(function () {
                photo_id = $(this).attr('id');

                if ($(this).hasClass('btn-primary')) {
                    $.ajax({
                        url: "/{{ app.request.locale }}/category/{{ category.id }}/vote-photo/" + $(this).attr('id'),
                        success: function (data) {
                            $('.vote-button.btn-success').removeClass('btn-success').addClass('btn-primary').html('<i class="fa fa-check"></i> {{ "page.contest.btn.vote"|trans }}');
                            $('.vote-button#' + photo_id).removeClass('btn-primary').addClass('btn-success').html('<i class="fa fa-check"></i> {{ "page.contest.btn.voted"|trans }}');
                        }
                    });
{'fraction_non_alphanumeric': 0.2146728854153536, 'fraction_numerical': 0.00025211143325349803, 'mean_word_length': 3.4799548277809147, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7391909', 'n_tokens_mistral': 2597, 'n_tokens_neox': 2394, 'n_words': 390}