blob: 7af062f90c7ed475f3af3820fbcf3409fe0a40fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{{extend 'default/_base.html'}}
<h1>{{ = image.title}}</h1>
<img width="1000px"src="{{=URL(r=request, f='download', args=image.newimage)}}">
<br>
{{if auth.is_logged_in():}}
{{if image.creator == auth.user.username:}}
<a href={{="delete?id="+str(image.id)}}>delete image</a>
{{pass}}
{{pass}}
<p>{{ = "author: "}}<a href={{= "index?profile=" +str(image.creator)}}>{{=image.creator}} </a></p>
<a href="{{=URL(r=request, f='download', args=image.file)}}"> Download TA file</a>
<p>{{ = "description: " + str(image.description)}}</p>
<p>views: {{=image.views}}</p>
<h2>Comments</h2>
{{for comment in comments:}}
<a href={{= "profile?user=" +str(comment.author)}}>{{=comment.author}} </a>
{{=": " + comment.body}}
<br>
<br>
{{pass}}
{{if auth.is_logged_in():}}
<h2>Write a Comment</h2>
{{=form}}
|