Private
Public Access
1
0
Files
rowsandall/rowers/templates/show_graph.html
2017-03-03 08:23:05 +01:00

39 lines
907 B
HTML

{% extends "base.html" %}
{% load staticfiles %}
{% block title %}{{ workout.name }}{% endblock %}
{% block content %}
<h1>{{ workout.name }}</h1>
<div class="grid_2 alpha">
{% if user.is_authenticated and user == rower.user %}
<p>
<a class="button gray small" href="/rowers/workout/{{ graph.workout.id }}/edit">Edit Workout</a>
</p>
{% else %}
<p>
<a class="button gray small" href="/rowers/workout/{{ graph.workout.id }}">See Workout</a>
</p>
{% endif %}
</div>
<div class="grid_2 suffix_8 omega">
{% if user.is_authenticated and user == rower.user %}
<p>
<a class="button red small" href="/rowers/graph/{{ graph.id }}/deleteconfirm">Delete Chart</a>
</p>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
<div class="grid_12">
<p>
<a href="/{{ graph.filename }}" download="myimage">
<image src="/{{ graph.filename }}" alt="/{{ graph.filename }}" width="960"/>
</a>
</p>
</div>
{% endblock %}