Skip to content

HTTPS clone URL

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 }}
rides_init({
"map": document.getElementById("map"),
"center": new google.maps.LatLng(40.744136, -73.989487),
"zoom": 5,
"update_rides" : true,
});
$(document).ready(function() {
$('#carpool_listing').dataTable( {
"bPaginate":false,
"bFilter":false
} );
$(".dataTables_info").hide();
} );
{% endblock js_init %}
{% block ride_content %}
<table><tr><td valign="top">
<h1>
Carpool to #S17
<img id="loader" style="display:none" src="{{ MEDIA_URL }}img/ajax-loader.gif" width="16" height="16" />
</h1>
<p>Want to come to the <a href="http://occupywallst.org/article/s17-follow-money-all-roads-lead-wall-street/">#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>
<nav>
{% if user_ride %}
<a href="{% url ride_info user_ride.id %}">View Your Ride</a>
{% else %}
{% if user_ride_request %}
<a href="{% url ride_info user_ride_request.ride.id %}" >View Your Ride Request</a>
{% else %}
<a href="{% url ride_create %}">Add a ride</a>
{% endif %}
{% endif %}
</nav>
<br><br>
<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.
</div>
</div>
</td><td width="600">
<div style="width: 600px; height: 500px" id="map"></div>
</td></tr></table>
<h2>Full Carpool Listing</h2>
<table id="carpool_listing">
<thead>
<tr>
<th>Ride</th>
<th>Description</th>
<th>Start Location</th>
<th>Destination</th>
<th>Arrival&nbsp;Date</th>
<th>Return&nbsp;Date</th>
</tr>
</thead>
<tbody>
{% for ride in rides %}
<tr>
<td><a href="{% url ride_info ride.id %}" >{{ride.title}}</a></td>
<td>{{ ride.info|slice:":29"}}{% if ride.info|length > 30 %}...{% endif %}</td>
<td>{{ride.waypoint_list.0}}</td>
<td>{{ride.waypoint_list|last}}</td>
<td>{{ride.depart_time|date:"SHORT_DATE_FORMAT"}}</td>
<td>{% if ride.ride_direction == "round" %} {{ride.return_time|date:"SHORT_DATE_FORMAT"}} {% endif %}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock ride_content %}
Jump to Line
Something went wrong with that request. Please try again.