<commit_before>{% extends "base.html" %}
{% block title %} FixCity: Add a Bike Rack {% endblock %}

{% block extra_header %}

<script type="text/javascript" src="/site_media/openlayers/OpenLayers.js"></script>
<script type="text/javascript">
  // Settings needed by rackmap.js.
  var pointRadius = "10";
  var externalGraphic = "/site_media/img/rack-new.png";
  var WKT = '{{request.POST.location|default:"POINT(-73.954344 40.714063)" }}';
  function post_loadmap (map, geom) {
    var bounds = new OpenLayers.Bounds(-8234063.45026893, 4968638.33081464, -8230209.19302436, 4973585.50729644);
    map.zoomToExtent(bounds);
  };
</script>
<script type="text/javascript" src="/site_media/js/rackmap.js"></script>
<script type="text/javascript">
//<![CDATA[
if (jQuery.browser.msie) {
 jQuery(window).load(function() {loadMap();});
} else {
jQuery(document).ready(function() {loadMap();});
}
//]]>
</script>
{% endblock %}

{% block addrack %}<a id="add-rack" class="current" href="/rack/new/">Suggest a Rack</a>{% endblock %}<commit_msg>Fix #205, don't clobber the address when there's errors in the add form.<commit_after>{% extends "base.html" %}
{% block title %} FixCity: Add a Bike Rack {% endblock %}

{% block extra_header %}

<script type="text/javascript" src="/site_media/openlayers/OpenLayers.js"></script>
<script type="text/javascript">
  // Settings needed by rackmap.js.
  var pointRadius = "10";
  var externalGraphic = "/site_media/img/rack-new.png";
  {% if request.POST.location %}
    var WKT = '{{request.POST.location}}';
    var initial_zoom = 16;
  {% else %}
    var WKT = "POINT(-73.954344 40.714063)";
    var initial_zoom = 13;
  {% endif %}

  function post_loadmap (map, geom) {
    map.setCenter(geom.getBounds().getCenterLonLat(), initial_zoom);
  };
</script>
<script type="text/javascript" src="/site_media/js/rackmap.js"></script>
<script type="text/javascript">
//<![CDATA[
if (jQuery.browser.msie) {
 jQuery(window).load(function() {loadMap();});
} else {
jQuery(document).ready(function() {loadMap();});
}
//]]>
</script>
{% endblock %}

{% block addrack %}<a id="add-rack" class="current" href="/rack/new/">Suggest a Rack</a>{% endblock %}
{'fraction_non_alphanumeric': 0.1986206896551724, 'fraction_numerical': 0.04735632183908046, 'mean_word_length': 4.756613756613756, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '3087631', 'n_tokens_mistral': 865, 'n_tokens_neox': 740, 'n_words': 157}