<commit_before>{{py:
from urllib import quote, quote_plus
from mapproxy.version import version

def strip(s):
    return s.split('/')[1]
    
def replace(s):
    return s.replace(':','')
    
menu_title=None
jscript_openlayers=None
}}
{{def jscript_functions}}
<script type="text/javascript">
    /**
    * Getting the closest parent with the given tag name.
    */
    function NeighborFormSubmit(obj)
    {
        var obj_parent = obj.parentNode;
        if (!obj_parent) return false;
        if (obj_parent.tagName.toLowerCase() != 'tr') return NeighborFormSubmit(obj_parent);
        var forms = obj_parent.getElementsByTagName('form');
        if (!forms) return false;
        forms[0].submit()
    }
</script>
{{enddef}}
            <h2>About</h2>
            <p>MapProxy Version {{version}}</p>
            <h2>WMS</h2>
            {{if 'wms' in services}}
            <div class="capabilities">
                <span>Capabilities Document</span>
                <span><a href="../service?REQUEST=GetCapabilities">(download as xml)</a></span>
                <span><a href="../demo/?wms_capabilities">(view as html)</a></span>
            </div>
            <table class="code">
                <tr>
                  <th>Layer</th>
                  <th>Coordinate-System</th>
                  <th>Image-Format</th>
                </tr>
                {{for layer in layers.values()}}
                <tr>
                    <td rowspan="{{len(formats)}}">{{layer.name}}</td>
                    {{for loop, format in looper(formats)}}
                    <td class="value epsg-codes">
                            <form action="" method="GET">
                            <select name="srs" onchange="this.form.submit()">
                                {{for srs_name, srs_code in layer_srs(layer)}}
                                <option value="{{srs_code}}">{{srs_name}}</option>
                                {{endfor}}
                            </select>
                            <input type="hidden" name="format" value="{{format}}">
                            <input type="hidden" name="wms_layer" value="{{layer.name}}">
                            </form>
                    </td>
                    <td class="value">
                        <a href="#" onclick="NeighborFormSubmit(this)">{{format | strip}}</a>
                    </td>
                </tr>
                    {{endfor}}
                {{endfor}}
            </table>
            {{else}}
            <div class="capabilities">
                <span>This service is not available with the current configuration.</span><commit_msg>add comment about native SRS in WMS demo<commit_after>{{py:
from urllib import quote, quote_plus
from mapproxy.version import version

def strip(s):
    return s.split('/')[1]
    
def replace(s):
    return s.replace(':','')
    
menu_title=None
jscript_openlayers=None
}}
{{def jscript_functions}}
<script type="text/javascript">
    /**
    * Getting the closest parent with the given tag name.
    */
    function NeighborFormSubmit(obj)
    {
        var obj_parent = obj.parentNode;
        if (!obj_parent) return false;
        if (obj_parent.tagName.toLowerCase() != 'tr') return NeighborFormSubmit(obj_parent);
        var forms = obj_parent.getElementsByTagName('form');
        if (!forms) return false;
        forms[0].submit()
    }
</script>
{{enddef}}
            <h2>About</h2>
            <p>MapProxy Version {{version}}</p>
            <h2>WMS</h2>
            {{if 'wms' in services}}
            <div class="capabilities">
                <span>Capabilities Document</span>
                <span><a href="../service?REQUEST=GetCapabilities">(download as xml)</a></span>
                <span><a href="../demo/?wms_capabilities">(view as html)</a></span>
            </div>
            <table class="code">
                <tr>
                  <th>Layer</th>
                  <th>Coordinate-System</th>
                  <th>Image-Format</th>
                </tr>
                {{for layer in layers.values()}}
                <tr>
                    <td rowspan="{{len(formats)}}">{{layer.name}}</td>
                    {{for loop, format in looper(formats)}}
                    <td class="value epsg-codes">
                            <form action="" method="GET">
                            <select name="srs" onchange="this.form.submit()">
                                {{for srs_name, srs_code in layer_srs(layer)}}
                                <option value="{{srs_code}}">{{srs_name}}</option>
                                {{endfor}}
                            </select>
                            <input type="hidden" name="format" value="{{format}}">
                            <input type="hidden" name="wms_layer" value="{{layer.name}}">
                            </form>
                    </td>
                    <td class="value">
                        <a href="#" onclick="NeighborFormSubmit(this)">{{format | strip}}</a>
                    </td>
                </tr>
                    {{endfor}}
                {{endfor}}
            </table>
            <p>Coordinate systems marked with * are supported without reprojection.</p>
            {{else}}
            <div class="capabilities">
                <span>This service is not available with the current configuration.</span>
{'fraction_non_alphanumeric': 0.14529597327890145, 'fraction_numerical': 0.002226758211170904, 'mean_word_length': 1.4965261695229273, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7577056', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1413, 'n_words': 312}