From a5796265013443c349797508ef8066541c1a3a02 Mon Sep 17 00:00:00 2001 From: Dhiru Date: Fri, 3 Aug 2012 13:41:57 +0530 Subject: Changes done in image,video&document library --- gstudio/templates/gstudio/image.html | 189 +++++++++++++++++++++++------------ 1 file changed, 127 insertions(+), 62 deletions(-) (limited to 'gstudio/templates/gstudio/image.html') diff --git a/gstudio/templates/gstudio/image.html b/gstudio/templates/gstudio/image.html index f70a24b..293b7ec 100644 --- a/gstudio/templates/gstudio/image.html +++ b/gstudio/templates/gstudio/image.html @@ -1,29 +1,69 @@ {% extends "gstudio/base.html" %} +{% load pagination_tags %} {% load adminmedia grp_tags %} {% load i18n %} {% block content %} + + + {% if user.is_authenticated %} -

Welcome to the ImageNation

-

{{ image.title }}

-

Logged in as: {{user.username}}

-
+{% autopaginate images 10 %} + +

Image Library

+
{% csrf_token %} -

Post Image:

-

Title:


-

- - + +

Post Image:

+Title:             

+Image:         

+Description:   +

+                     
-
+
+ +
{% csrf_token %} -

Search Image

+

Search Image:

-

Sort images by:

-

+
+

+

+ +

IMAGES

{% for image in images %} -
-
-

-{{ image.title }} + + +

+ +

{{image.title}}

+
{% csrf_token %} + + + + + -

-
-
- -
-
-

{{image.title}} - -{% csrf_token %} - - - -

-Posted By : -{% for author in image.authors.all %} - {{author}} -{% endfor %} -
-Posted At : {{image.creation_date}} -
+ + + + + + + + + + + + + + + + + + + + + + + {% for author in image.authors.all %} - {% ifequal author.username user.username %} -
-{% csrf_token %} + {% ifequal author.username user.username %} - +
+ {% endifequal %} {% endfor %} -
-Current rating is

{{ image.rating.get_rating }}

-
-
-{% csrf_token %} - - - - - -
- - -
-
-
-
-{% endfor %}
-

+ + + + + + + + + + + + + + + + + +
+ +{% endfor %} +
{% else %}

Sorry you need to log in to see this content !

{% endif %} - - +

+{% paginate %}

+ {% endblock %} -- cgit v1.1