<commit_before>{% extends "base.html" %}

{% load i18n %}
{% load static %}

{% block extra_page_css %}
<link rel="stylesheet" href="{% static "css/map.css" %}" />
<style>
  .council_location_icon {
    background-color:black;
    border-radius: 50%;
    height:2px;
    width:2px;
  }
</style>
{% endblock extra_page_css %}

{% block base_title %}{% trans "Your Polling Station" %}{% endblock base_title %}


{% block content %}

<div class="row">
  <div class="columns large-8">
    <div class="card">
      <h2>
        {% if we_know_where_you_should_vote %}
          {% trans "Your polling station" %}
        {% else %}
          {% blocktrans with council.name as council_name %}Contact {{ council_name }}{% endblocktrans %}
        {% endif %}
      </h2>

      {% if we_know_where_you_should_vote %}
      {% blocktrans %}The polling station for <strong>{{ postcode }}</strong> is:{% endblocktrans %}
        <p>
          <address>
            {{ station.formatted_address|linebreaksbr }}<br />
            {% if station.postcode %}
              {% if not station.postcode in station.address %}
                {{ station.postcode }}
              {% endif %}
            {% endif %}
          </address>
        </p>
        {% if directions.routes.0.legs.0.duration.text %}
        <div id="directions">
          <p>
            {% blocktrans with walk_time as walk_time and walk_dist as walk_dist %}
              It's about {{ walk_dist }} away or a {{ walk_time }} walk from {{ postcode }}.
            {% endblocktrans %}</p>
          <a href="https://www.google.com/maps/dir/{{postcode}}/{{ station.location.y }},{{ station.location.x }}">
            {% trans "Get walking directions" %}
          </a>
        </div>
        {% endif %}
      {% else %}
        {% blocktrans with council.phone as council_phone %}
        <p>We don't have data for your area, so you need to contact the council.</p>
        <p>You can call them on <strong><a href="tel:{{ council_phone }}">{{ council_phone }}</a></strong></p>
        {% endblocktrans %}
      {% endif %}

      {% if we_know_where_you_should_vote %}
      <div id="area_map" class="card_inset"></div>
      {% endif %}
    </div>
  </div>
<commit_msg><address> block inside a <p> block is invalid markup (who knew?)<commit_after>{% extends "base.html" %}

{% load i18n %}
{% load static %}

{% block extra_page_css %}
<link rel="stylesheet" href="{% static "css/map.css" %}" />
<style>
  .council_location_icon {
    background-color:black;
    border-radius: 50%;
    height:2px;
    width:2px;
  }
  address {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: inherit;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
  }
</style>
{% endblock extra_page_css %}

{% block base_title %}{% trans "Your Polling Station" %}{% endblock base_title %}


{% block content %}

<div class="row">
  <div class="columns large-8">
    <div class="card">
      <h2>
        {% if we_know_where_you_should_vote %}
          {% trans "Your polling station" %}
        {% else %}
          {% blocktrans with council.name as council_name %}Contact {{ council_name }}{% endblocktrans %}
        {% endif %}
      </h2>

      {% if we_know_where_you_should_vote %}
      {% blocktrans %}The polling station for <strong>{{ postcode }}</strong> is:{% endblocktrans %}
        <div>
          <address>
            {{ station.formatted_address|linebreaksbr }}<br />
            {% if station.postcode %}
              {% if not station.postcode in station.address %}
                {{ station.postcode }}
              {% endif %}
            {% endif %}
          </address>
        </div>
        {% if directions.routes.0.legs.0.duration.text %}
        <div id="directions">
          <p>
            {% blocktrans with walk_time as walk_time and walk_dist as walk_dist %}
              It's about {{ walk_dist }} away or a {{ walk_time }} walk from {{ postcode }}.
            {% endblocktrans %}</p>
          <a href="https://www.google.com/maps/dir/{{postcode}}/{{ station.location.y }},{{ station.location.x }}">
            {% trans "Get walking directions" %}
          </a>
        </div>
        {% endif %}
      {% else %}
        {% blocktrans with council.phone as council_phone %}
        <p>We don't have data for your area, so you need to contact the council.</p>
        <p>You can call them on <strong><a href="tel:{{ council_phone }}">{{ council_phone }}</a></strong></p>
        {% endblocktrans %}
      {% endif %}

      {% if we_know_where_you_should_vote %}
      <div id="area_map" class="card_inset"></div>
      {% endif %}
    </div>
  </div>

{'fraction_non_alphanumeric': 0.16122799484757408, 'fraction_numerical': 0.0055817947617003, 'mean_word_length': 2.2489539748953975, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '4930252', 'n_tokens_mistral': 1575, 'n_tokens_neox': 1409, 'n_words': 349}