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

{% block heading %}{{ "WMS index"|trans }}{% endblock %}

{% block content %}

    <table class="wms">
        <caption>{% trans %}Verfügbare WMS-Dienste{% endtrans %}</caption>
        <thead>
            <tr>
                <th>{% trans %}Title{% endtrans %}</th>
                <th>{% trans %}Alias{% endtrans %}</th>
                <th>{% trans %}Abstract{% endtrans %}</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
        {% for wms in wmsList %}
            <tr>
                <td><a href="{{ path("mapbender_wms_wms_edit",{'wmsId': wms.id }) }}">{{ wms.title }}</a></td>
                <td>{{ wms.alias }}</td>
                <td>{{ wms.abstract }}</td>
                <td><a class="confirmdelete" href="{{ path("mapbender_wms_wms_confirmdelete",{ "wmsId": wms.id }) }}" >{{ "Delete"|trans }}</a>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
    <a href="{{ path("mapbender_wms_wms_index",{"offset":prevOffset}) }}">{% trans %}Previous{% endtrans %}</a> 
    <a href="{{  path("mapbender_wms_wms_index",{"offset": nextOffset}) }}">{% trans %}Next{% endtrans %}</a>
{% endblock %}<commit_msg>If now WMS are available, show message<commit_after>{% extends 'MapbenderWmsBundle:WMS:base.html.twig' %} 

{% block heading %}{{ "WMS index"|trans }}{% endblock %}

{% block content %}


    {% if wmsList|length > 0 %}
    <table class="wms">
        <caption>{% trans %}Verfügbare WMS-Dienste{% endtrans %}</caption>
        <thead>
            <tr>
                <th>{% trans %}Title{% endtrans %}</th>
                <th>{% trans %}Alias{% endtrans %}</th>
                <th>{% trans %}Abstract{% endtrans %}</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
        {% for wms in wmsList %}
            <tr>
                <td><a href="{{ path("mapbender_wms_wms_edit",{'wmsId': wms.id }) }}">{{ wms.title }}</a></td>
                <td>{{ wms.alias }}</td>
                <td>{{ wms.abstract }}</td>
                <td><a class="confirmdelete" href="{{ path("mapbender_wms_wms_confirmdelete",{ "wmsId": wms.id }) }}" >{{ "Delete"|trans }}</a>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
    <a href="{{ path("mapbender_wms_wms_index",{"offset":prevOffset}) }}">{% trans %}Previous{% endtrans %}</a> 
    <a href="{{  path("mapbender_wms_wms_index",{"offset": nextOffset}) }}">{% trans %}Next{% endtrans %}</a>

    {% else %}
     <p>{% trans %}No WMS Available{% endtrans %}</p>
    {% endif %}
{% endblock %}
{'fraction_non_alphanumeric': 0.22147147147147148, 'fraction_numerical': 0.00037537537537537537, 'mean_word_length': 2.1501182033096926, 'pattern_counts': {'":': 6, '<': 77, '<?xml version=': 0, '>': 78, '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': '3137612', 'n_tokens_mistral': 984, 'n_tokens_neox': 885, 'n_words': 188}