diff options
author | James Boisture <jboisture@jboisture-laptop.(none)> | 2010-07-20 03:15:23 (GMT) |
---|---|---|
committer | James Boisture <jboisture@jboisture-laptop.(none)> | 2010-07-20 03:15:23 (GMT) |
commit | b817158f554f7b3342ecfe3ce24d04e91abed3c3 (patch) | |
tree | 632bc4515e4feb5440714acb3b893aaa9b22a91d /views/default/image.html |
The initial commit of the turtleartsite
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}} |