Uploading files
This commit is contained in:
27
rowers/templates/show_graph.html
Normal file
27
rowers/templates/show_graph.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{% extends "base.html" %}
|
||||
{% load staticfiles %}
|
||||
|
||||
{% block title %}{{ workout.name }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ workout.name }}</h1>
|
||||
|
||||
<div class="grid_2 suffix_10 alpha">
|
||||
{% if user.is_authenticated and user == rower.user %}
|
||||
<p>
|
||||
<a class="button red small" href="/rowers/graph/{{ graph.id }}/deleteconfirm">Delete</a>
|
||||
</p>
|
||||
{% else %}
|
||||
<p> </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 %}
|
||||
|
||||
Reference in New Issue
Block a user