<commit_before>{% extends 'base_with_maps.html' %}

{% block title %}{{ object.name }}{% endblock %}

{% block content %}
    <h1>{{ object.name }}</h1>

    {% if object.organisation %}
    <p>part of <a href="{{ object.organisation.get_absolute_url }}">{{ object.organisation.name }}</a></p>
    {% endif %}


    {% if object.mapit_id %}
    
        {# Ideally all of this would be in an external js file. For now it is the only JS on site so leaving it here #}
    
        <div id="map_canvas" style="width:50%; min-width: 240px; height:300px"></div>
        
        <script type="text/javascript" charset="utf-8">
            add_kml_to_map( '{{ settings.MAPIT_URL }}/area/{{ object.mapit_id }}.kml?simplify_tolerance=0.001' );            
        </script>

    {% endif %}
    

    {% if object.child_places.count %}        
        <div class="content_box">
            <h3>Areas within {{ object.name }}</h3>
            
            <ul class="listing">
            {% for child in object.child_places.all %}<commit_msg>Border round map for neatness<commit_after>{% extends 'base_with_maps.html' %}

{% block title %}{{ object.name }}{% endblock %}

{% block content %}
    <h1>{{ object.name }}</h1>

    {% if object.organisation %}
    <p>part of <a href="{{ object.organisation.get_absolute_url }}">{{ object.organisation.name }}</a></p>
    {% endif %}


    {% if object.mapit_id %}
    
        <div class="content_box">
    
            <div id="map_canvas" style="width:50%; min-width: 240px; height:300px"></div>
            
            <script type="text/javascript" charset="utf-8">
                add_kml_to_map( '{{ settings.MAPIT_URL }}/area/{{ object.mapit_id }}.kml?simplify_tolerance=0.001' );            
            </script>

        </div>

    {% endif %}
    

    {% if object.child_places.count %}        
        <div class="content_box">
            <h3>Areas within {{ object.name }}</h3>
            
            <ul class="listing">
            {% for child in object.child_places.all %}
{'fraction_non_alphanumeric': 0.16764995083579154, 'fraction_numerical': 0.01671583087512291, 'mean_word_length': 2.204724409448819, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '667693', 'n_tokens_mistral': 721, 'n_tokens_neox': 639, 'n_words': 139}