<commit_before>{% set preview = preview|default(false) %}

{% macro display_tags(tags) %}
    <ul class="tag-clouds">
        {% for tag in tags %}
            <li><a href="{{ route('job.tag', [tag.name|url_encode]) }}" title="Znajdź oferty zawierające {{ tag.name }}">{{ tag.name }}</a></li>
        {% endfor %}
    </ul>
{% endmacro %}

<div id="job-offer" class="panel-body">
    <div class="media">
        {% if job.firm.logo %}
            <div class="media-left hidden-xxs">
                <img class="media-object" src="{{ logo(job.firm.logo) }}" alt="{{ job.firm.name }}">
            </div>
        {% endif %}

        <div class="media-body">
            <h1 class="media-heading">{{ link_to_route('job.offer', job.title, [job.id, job.slug]) }}</h1>

            {% if job.firm.name %}
                <a class="employer" title="Zobacz oferty pracy z firmy {{ job.firm.name }}" href="{{ route('job.firm', [job.firm.name]) }}">{{ job.firm.name }}</a>
            {% endif %}

            {% if job.salary_from or job.salary_to %}
                <strong class="salary pull-right text-primary">
                    {% include 'job.partials.salary' with {'net_label': true, 'rate_label': true} %}
                </strong>
            {% endif %}

            <ul class="metadata list-inline location">
                <li title="Lokalizacja">
                    <i class="fa fa-map-marker"></i>
                    {{ job.country.name }}

                    {% include 'job.partials.location' with {'locations': job.locations.pluck('city')} %}
                </li>
            </ul>

            <ul class="metadata list-inline primary">
                <li title="Data opublikowania">
                    <i class="fa fa-calendar"></i>
                    {{ job.created_at|format_date }}
                </li>

                {% if not preview and can('job-update') %}
                    <li class="counter">
                        <i class="fa fa-eye"></i>
                        {{ declination(job.views, ['odsłony', 'odsłon', 'odsłony']) }}
                    </li>
                    <li class="applications">
                        <i class="fa fa-files-o"></i>
                        {{ declination(job.applications.count(), ['aplikacji', 'aplikacja', 'aplikacji']) }}
                    </li>
                {% endif %}

                <li title="Oferta traci ważność z dniem {{ job.deadline_at|format_date(false) }}">
                    <i class="fa fa-clock-o"></i>
                    {{ job.deadline }} dni do końca
                </li>
                <li>
                    <i class="fa fa-pencil"></i>
                    {{ employment_list[job.employment_id] }}
                </li>
                {% if job.seniority_id %}
                    <li title="Wymagany staż">
                        <i class="fa fa-area-chart"></i>
                        {{ seniority_list[job.seniority_id] }}
                    </li>
                {% endif %}
            </ul>

            {% if tags|length > 0 %}
                <div class="tags">
                    <div class="row">
                        <div class="col-sm-6">
                            <h5 class="must-have">Wymagane</h5>
                        </div>

                        {% if tags[0] %}
                            <div class="col-sm-6">
                                <h5 class="nice-to-have">Mile widziane</h5>
                            </div>
                        {% endif %}
                    </div>

                    <div class="row">
                        <div class="col-sm-6">
                            {% if tags[1] %}
                                {{ _self.display_tags(tags[1]) }}
                            {% else %}
                                --
                            {% endif %}
                        </div>

                        <div class="col-sm-6">
                            {{ _self.display_tags(tags[0]) }}
                        </div>
                    </div>
                </div>
            {% endif %}

            {% if job.description %}
                <h2>Opis oferty</h2>

                <div class="text">
                    {{ job.description|raw }}
                </div>
            {% endif %}

            {% if job.firm.benefits|length %}
                <h2>Oferujemy</h2>

                <ul class="benefits list-group row">
                    {% for benefit in job.firm.benefits %}
                        <li class="list-group-item col-xs-12 col-sm-6 checked"><i class="fa fa-check fa-fw"></i> {{ benefit.name }}</li>
                    {% endfor %}
                </ul>
            {% endif %}

            {% if job.firm.name and (job.firm.headline or job.firm.description) %}
                <h2>{{ job.firm.name }}</h2>

                <div class="text">
                    {% if job.firm.headline %}
                        <blockquote>{{ job.firm.headline }}</blockquote>
                    {% endif %}

                    {{ job.firm.description|raw }}
                </div>
            {% endif %}

            {% if not job.enable_apply %}
                <h2>Informacje o rekrutacji</h2>

                <div class="text">
                    {{ job.recruitment|raw }}
                </div>
            {% else %}
                <div id="apply">
                    <a class="btn btn-primary" href="{{ not preview ? route('job.application', [job.id]) : 'javascript:' }}" {{ applied ? 'title="Już aplikowałeś na tę ofertę pracy" disabled' }}>Aplikuj na to stanowisko</a>
                </div>
            {% endif %}
        </div>
    </div>
</div>
<commit_msg>link do filtrowania ofert po firmie<commit_after>{% set preview = preview|default(false) %}

{% macro display_tags(tags) %}
    <ul class="tag-clouds">
        {% for tag in tags %}
            <li><a href="{{ route('job.tag', [tag.name|url_encode]) }}" title="Znajdź oferty zawierające {{ tag.name }}">{{ tag.name }}</a></li>
        {% endfor %}
    </ul>
{% endmacro %}

<div id="job-offer" class="panel-body">
    <div class="media">
        {% if job.firm.logo %}
            <div class="media-left hidden-xxs">
                <a title="Zobacz wszystkie oferty {{ job.firm.name }}" href="{{ route('job.firm', [job.firm.name]) }}"><img class="media-object" src="{{ logo(job.firm.logo) }}" alt="{{ job.firm.name }}"></a>
            </div>
        {% endif %}

        <div class="media-body">
            <h1 class="media-heading">{{ link_to_route('job.offer', job.title, [job.id, job.slug]) }}</h1>

            {% if job.firm.name %}
                <a class="employer" title="Zobacz oferty pracy z firmy {{ job.firm.name }}" href="{{ route('job.firm', [job.firm.name]) }}">{{ job.firm.name }}</a>
            {% endif %}

            {% if job.salary_from or job.salary_to %}
                <strong class="salary pull-right text-primary">
                    {% include 'job.partials.salary' with {'net_label': true, 'rate_label': true} %}
                </strong>
            {% endif %}

            <ul class="metadata list-inline location">
                <li title="Lokalizacja">
                    <i class="fa fa-map-marker"></i>
                    {{ job.country.name }}

                    {% include 'job.partials.location' with {'locations': job.locations.pluck('city')} %}
                </li>
            </ul>

            <ul class="metadata list-inline primary">
                <li title="Data opublikowania">
                    <i class="fa fa-calendar"></i>
                    {{ job.created_at|format_date }}
                </li>

                {% if not preview and can('job-update') %}
                    <li class="counter">
                        <i class="fa fa-eye"></i>
                        {{ declination(job.views, ['odsłony', 'odsłon', 'odsłony']) }}
                    </li>
                    <li class="applications">
                        <i class="fa fa-files-o"></i>
                        {{ declination(job.applications.count(), ['aplikacji', 'aplikacja', 'aplikacji']) }}
                    </li>
                {% endif %}

                <li title="Oferta traci ważność z dniem {{ job.deadline_at|format_date(false) }}">
                    <i class="fa fa-clock-o"></i>
                    {{ job.deadline }} dni do końca
                </li>
                <li>
                    <i class="fa fa-pencil"></i>
                    {{ employment_list[job.employment_id] }}
                </li>
                {% if job.seniority_id %}
                    <li title="Wymagany staż">
                        <i class="fa fa-area-chart"></i>
                        {{ seniority_list[job.seniority_id] }}
                    </li>
                {% endif %}
            </ul>

            {% if tags|length > 0 %}
                <div class="tags">
                    <div class="row">
                        <div class="col-sm-6">
                            <h5 class="must-have">Wymagane</h5>
                        </div>

                        {% if tags[0] %}
                            <div class="col-sm-6">
                                <h5 class="nice-to-have">Mile widziane</h5>
                            </div>
                        {% endif %}
                    </div>

                    <div class="row">
                        <div class="col-sm-6">
                            {% if tags[1] %}
                                {{ _self.display_tags(tags[1]) }}
                            {% else %}
                                --
                            {% endif %}
                        </div>

                        <div class="col-sm-6">
                            {{ _self.display_tags(tags[0]) }}
                        </div>
                    </div>
                </div>
            {% endif %}

            {% if job.description %}
                <h2>Opis oferty</h2>

                <div class="text">
                    {{ job.description|raw }}
                </div>
            {% endif %}

            {% if job.firm.benefits|length %}
                <h2>Oferujemy</h2>

                <ul class="benefits list-group row">
                    {% for benefit in job.firm.benefits %}
                        <li class="list-group-item col-xs-12 col-sm-6 checked"><i class="fa fa-check fa-fw"></i> {{ benefit.name }}</li>
                    {% endfor %}
                </ul>
            {% endif %}

            {% if job.firm.name and (job.firm.headline or job.firm.description) %}
                <h2>{{ job.firm.name }}</h2>

                <div class="text">
                    {% if job.firm.headline %}
                        <blockquote>{{ job.firm.headline }}</blockquote>
                    {% endif %}

                    {{ job.firm.description|raw }}
                </div>
            {% endif %}

            {% if not job.enable_apply %}
                <h2>Informacje o rekrutacji</h2>

                <div class="text">
                    {{ job.recruitment|raw }}
                </div>
            {% else %}
                <div id="apply">
                    <a class="btn btn-primary" href="{{ not preview ? route('job.application', [job.id]) : 'javascript:' }}" {{ applied ? 'title="Już aplikowałeś na tę ofertę pracy" disabled' }}>Aplikuj na to stanowisko</a>
                </div>
            {% endif %}
        </div>
    </div>
</div>

{'fraction_non_alphanumeric': 0.15842530633527419, 'fraction_numerical': 0.004518988441818024, 'mean_word_length': 1.1263858093126387, 'pattern_counts': {'":': 0, '<': 199, '<?xml version=': 0, '>': 201, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2964485', 'n_tokens_mistral': 3540, 'n_tokens_neox': 3110, 'n_words': 622}