diff options
Diffstat (limited to 'views/default/image.html')
-rw-r--r-- | views/default/image.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/views/default/image.html b/views/default/image.html new file mode 100644 index 0000000..7af062f --- /dev/null +++ b/views/default/image.html @@ -0,0 +1,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}} |