From 11b4650894021919a60da396de6bf4dd00b68551 Mon Sep 17 00:00:00 2001 From: Dhiru Date: Fri, 24 Aug 2012 14:59:49 +0530 Subject: Change in image,video and document library and also in home page --- gstudio/templates/gstudio/fullscreen.html | 75 ++++++++++++++++++++++++------- 1 file changed, 59 insertions(+), 16 deletions(-) (limited to 'gstudio/templates/gstudio/fullscreen.html') diff --git a/gstudio/templates/gstudio/fullscreen.html b/gstudio/templates/gstudio/fullscreen.html index 8c3efed..e08a09d 100644 --- a/gstudio/templates/gstudio/fullscreen.html +++ b/gstudio/templates/gstudio/fullscreen.html @@ -1,17 +1,47 @@ +{% extends "gstudio/base.html" %} {% load adminmedia grp_tags %} {% load i18n comments gstudio_tags %} {% load tagging_tags comments i18n %} - - - +{% block content %} + + + + + - -
+
{% csrf_token %} Name : {{image.title}}
Posted By : @@ -22,14 +52,34 @@ Posted At : {{image.creation_date}}
-Description:{{ image.content }} -
+Description: +{%autoescape on%} +{% with image.html_content|safe as image_content %} + {{image_content}} +{% endwith %} +{% endautoescape%} + + +{% for author in image.authors.all %} + {% ifequal author.username user.username %} + + + + + + + {% endifequal %} +{% endfor %} +
+ +
{% ifequal image.rating.get_rating 0 %} Current rating is:   No rating yet {% else %} -Current rating is:   {{ image.rating.get_rating }} +Average Current rating is:   {{ image.rating.get_rating }}
+Total Number of votes is:  {{ image.rating_votes }} {% endifequal %}
@@ -42,13 +92,6 @@
- -

@@ -124,4 +167,4 @@ function myFunction()

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