list course view
This commit is contained in:
1
rowers/templates/.#workout_view.html
Normal file
1
rowers/templates/.#workout_view.html
Normal file
@@ -0,0 +1 @@
|
||||
E408191@CZ27LT9RCGN72.9092:1519040360
|
||||
24
rowers/templates/course_view.html
Normal file
24
rowers/templates/course_view.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% 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">
|
||||
|
||||
|
||||
<h1>{{ course.name }}</h1>
|
||||
|
||||
{{ mapdiv|safe }}
|
||||
|
||||
|
||||
{{ mapscript|safe }}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
@@ -32,8 +32,14 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for course in courses %}
|
||||
<td> {{ course.country }} </td>
|
||||
<td> {{ course.name }} </td>
|
||||
<td> {{ course.country }} </td>
|
||||
<td>
|
||||
{% if course.manager.user == user %}
|
||||
<a href="/rowers/courses/{{ course.id }}/edit">{{ course.name }}</a>
|
||||
{% else %}
|
||||
<a href="/rowers/courses/{{ course.id }}">{{ course.name }}</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user