Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 15f93684a0
Fetching contributors…

Cannot retrieve contributors at this time

83 lines (77 sloc) 2.642 kb
{% extends "ride_base.html" %}
{% block js_init %}
{{ block.super }}
"map": document.getElementById("map"),
"center": new google.maps.LatLng(40.744136, -73.989487),
"zoom": 5,
"update_rides" : true,
$(document).ready(function() {
$('#carpool_listing').dataTable( {
} );
} );
{% endblock js_init %}
{% block ride_content %}
<table><tr><td valign="top">
Carpool to #S17
<img id="loader" style="display:none" src="{{ MEDIA_URL }}img/ajax-loader.gif" width="16" height="16" />
<p>Want to come to the <a href="">#S17</a>
action but need a ride? Here you'll find a list of bus rides and
carpools whose drivers are generous enough to offer rides to fellow
activists like yourself!</p>
<p>If you are driving to the action and have seats available in your
car, then please help a fellow occupier out by adding your route
to this map.</p>
{% if user_ride %}
<a href="{% url ride_info %}">View Your Ride</a>
{% else %}
{% if user_ride_request %}
<a href="{% url ride_info %}" >View Your Ride Request</a>
{% else %}
<a href="{% url ride_create %}">Add a ride</a>
{% endif %}
{% endif %}
<div style="border-style:solid; border-width:1px; padding:3px; width:220px">
<b>Map Key</b><br>
Click on a line to view the ride and request a seat.<br><br>
Blue markers stand as starting points for rides.
</td><td width="600">
<div style="width: 600px; height: 500px" id="map"></div>
<h2>Full Carpool Listing</h2>
<table id="carpool_listing">
<th>Start Location</th>
{% for ride in rides %}
<td><a href="{% url ride_info %}" >{{ride.title}}</a></td>
<td>{{|slice:":29"}}{% if|length > 30 %}...{% endif %}</td>
<td>{% if ride.ride_direction == "round" %} {{ride.return_time|date:"SHORT_DATE_FORMAT"}} {% endif %}</td>
{% endfor %}
{% endblock ride_content %}
Jump to Line
Something went wrong with that request. Please try again.