{% extends "base.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block scripts %}
{% include "monitorjobs.html" %}
{% endblock %}

{% block title %}{{ course.name }} {% endblock %}
{% block og_title %}{{ course.name }} {% endblock %}
{% block content %}
<div class="grid_12 alpha">
  <div class="grid_2 alpha">
  {% if nosessions %}
    <a class="button small red" href="/rowers/courses/{{ course.id }}/delete">Delete</a>
  {% else %}
  &nbsp;
  {% endif %}
  </div>
  <div class="grid_2">
    {% if course.manager == rower %}
    <a class="button small gray" href="/rowers/courses/{{ course.id }}/edit">Edit</a>
    {% else %}
    &nbsp;
    {% endif %}
  </div>
  <div class="grid_2">
    <a class="button small gray" href="/rowers/list-courses">Courses</a>
  </div>
  <div class="grid_2">
    <a class="button small gray" href="/rowers/courses/{{ course.id }}/emailkml">Export to KML</a>
  </div>
</div>
<div class="grid_12 alpha">

  <h1>{{ course.name }}</h1>

  <div class="grid_6 alpha">
    <table class="listtable shortpadded" width="100%">
      <tr>
        <th>Name</th><td>{{ course.name }}</td>
      </tr>
      <tr>
        <th>Country</th><td>{{ course.country }}</td>
      </tr>
      <tr>
        <th>Notes</th><td>{{ course.notes|linebreaks }}</td>
      </tr>
    </table>
  </div>
  <div class="grid_6 omega">
  {{ mapdiv|safe }}

    
  {{ mapscript|safe }}
  </div>
  
</div>

{% endblock %}
