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/docu.html | 101 +++++++++-- gstudio/templates/gstudio/fullscreen.html | 127 +++++++++++++- gstudio/templates/gstudio/home.html | 10 +- gstudio/templates/gstudio/image.html | 189 ++++++++++++++------- gstudio/templates/gstudio/transcript.html | 118 ++++++++++++- gstudio/templates/gstudio/video.html | 270 ++++++++++++++++-------------- 6 files changed, 598 insertions(+), 217 deletions(-) (limited to 'gstudio/templates') diff --git a/gstudio/templates/gstudio/docu.html b/gstudio/templates/gstudio/docu.html index 7be5aa7..dc9f151 100644 --- a/gstudio/templates/gstudio/docu.html +++ b/gstudio/templates/gstudio/docu.html @@ -1,37 +1,77 @@ + + {% extends "gstudio/base.html" %} -{% load i18n %} +{% load pagination_tags %} {% load adminmedia grp_tags %} +{% load i18n comments gstudio_tags %} +{% load i18n objectapp_tags %} {% block content %} +{% load tagging_tags comments i18n %} + + + {% if user.is_authenticated %} -

Welcome to the DocZilla

-

{{ image.title }}

-

Logged in as: {{user.username}}

+{% autopaginate documents 8 %} +

Document Library


-
-{% csrf_token %} -

Post File:

-

- +
+{% csrf_token %} +
+Post File:       +

+Description:   +

+                         -
+
+ +
{% csrf_token %} +

Search File

-

-

Sort files by:

-

-  +
+
+ -
+
+
+
+
+

-

SHARE

+
+

Documents Listing

{% for document in documents %} @@ -46,6 +86,8 @@
Posted At : {{document.creation_date}}
+Description:{{ document.content }} +
Download now!!
{% for author in document.authors.all %} @@ -89,8 +131,26 @@
+
+
{% csrf_token %} + + +

+
+

+ {% trans "Tags" %} : + {% tags_for_object document as tag_list %} + {% for tag in tag_list %} + + {% empty %} + {% trans "No tags" %} + {% endfor %} +

+
+



{% endfor %}
@@ -102,6 +162,13 @@ {% endif %} - +

+{% paginate %}

+ + + + + {% endblock %} + diff --git a/gstudio/templates/gstudio/fullscreen.html b/gstudio/templates/gstudio/fullscreen.html index afc3746..8c3efed 100644 --- a/gstudio/templates/gstudio/fullscreen.html +++ b/gstudio/templates/gstudio/fullscreen.html @@ -1,4 +1,127 @@ - {% load adminmedia grp_tags %} - +{% load i18n comments gstudio_tags %} +{% load tagging_tags comments i18n %} + + + + + + + + + + +
+Name : {{image.title}} +
+Posted By : +{% for author in image.authors.all %} + {{author}} +{% endfor %} +
+ +Posted At : {{image.creation_date}} +
+Description:{{ image.content }} +
+ +{% ifequal image.rating.get_rating 0 %} + +Current rating is:   No rating yet +{% else %} +Current rating is:   {{ image.rating.get_rating }} +{% endifequal %} +
+
+{% csrf_token %} + + + + + +
+ + + + +
+
+ +
{% csrf_token %} + + + +
+
+
+

+ {% trans "Tags" %} : + {% tags_for_object image as tag_list %} + {% for tag in tag_list %} + + {% empty %} + {% trans "No tags" %} + {% endfor %} +

+
+

+{% block nodetype-comments %} +
+
{% trans "Comments" %}
+ {% with image.comments as comment_list %} + {% if comment_list.count %} +
    + {% for comment in comment_list %} + + {% endfor %} +
+ {% if not image.comments_are_open %} +

{% trans "Comments are closed." %}

+ {% endif %} + {% else %} + {% if image.comments_are_open %} +

{% trans "No comments yet." %}

+ {% else %} +

{% trans "Comments are closed." %}

+ {% endif %} + {% endif %} + {% endwith %} +
+{% endblock %} + + +
+ {% render_comment_form for image %} +
+ + + + +
+
+
+ diff --git a/gstudio/templates/gstudio/home.html b/gstudio/templates/gstudio/home.html index aec372d..8859bca 100644 --- a/gstudio/templates/gstudio/home.html +++ b/gstudio/templates/gstudio/home.html @@ -1,6 +1,6 @@ -{% load objectapp_tags i18n %} -{% load gstudio_tags i18n %} +{% load gstudio_tags i18n %} +{% load objectapp_tags i18n %} {% load adminmedia grp_tags %} @@ -114,6 +114,10 @@ +
+

{% trans "Tags" %}

+ {% get_tag_cloud %} +
{{ site }}
@@ -128,7 +132,7 @@

Let us collaboratively construct semantic knowledge networks with a special focus on education.more

-

{% trans "Recent Authors" %}

+

{% trans "Recents Authors" %}

{% get_authors %}
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 %} diff --git a/gstudio/templates/gstudio/transcript.html b/gstudio/templates/gstudio/transcript.html index ff8dfad..7860061 100644 --- a/gstudio/templates/gstudio/transcript.html +++ b/gstudio/templates/gstudio/transcript.html @@ -1,13 +1,13 @@ -{% load gstudio_tags i18n %} -{% get_tags as nodetype_tags %} {% load adminmedia grp_tags %} - - - - +{% load i18n comments gstudio_tags %} +{% load tagging_tags comments i18n %} + - + + + + @@ -22,7 +22,111 @@ $('#pandoravideo').pandoravideo();
+ + +
+Name: +{{ titlename }}
+Posted By : + + {{postedby}} +
+Posted At : + {{date}} + +
+ Location: +{{we}} +
+Description:{{ contentname }} +
+Current rating is:  {{ rateby }} +
+
+{% csrf_token %} + + + + + + + + +
+
+
+{% csrf_token %} + + + +

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

+ {% trans "Tags" %} : + {% tags_for_object video as tag_list %} + {% for tag in tag_list %} + + {% empty %} + {% trans "No tags" %} + {% endfor %} +

+
+

+{% block nodetype-comments %} +
+
{% trans "Comments" %}
+ {% with video.comments as comment_list %} + {% if comment_list.count %} +
    + {% for comment in comment_list %} + + {% endfor %} +
+ {% if not video.comments_are_open %} +

{% trans "Comments are closed." %}

+ {% endif %} + {% else %} + {% if video.comments_are_open %} +

{% trans "No comments yet." %}

+ {% else %} +

{% trans "Comments are closed." %}

+ {% endif %} + {% endif %} + {% endwith %} +
+{% endblock %} + + +
+ {% render_comment_form for video %}
+
+
diff --git a/gstudio/templates/gstudio/video.html b/gstudio/templates/gstudio/video.html index 644831a..f2ae11d 100644 --- a/gstudio/templates/gstudio/video.html +++ b/gstudio/templates/gstudio/video.html @@ -1,181 +1,199 @@ {% extends "gstudio/base.html" %} +{% load pagination_tags %} {% load i18n %} {% load adminmedia grp_tags %} +{% load i18n comments gstudio_tags %} + {% block content %} + + + + {% if user.is_authenticated %} -

Welcome to the VideoCore

-

{{ image.title }}

-

Logged in as: {{user.username}}

-
+ +{% autopaginate vids 10 %} + + +

Video Library

+
+
{% csrf_token %} -

Post Video:

+

Submit Videos:

Video: 


+Description:   - + + +

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

Search Video

+

Search Videos:

-

Sort videos by:

-

+ + -
+

-
+ {% csrf_token %}
- -

VIDEOS


- - - - - - - -
- - - - - - - -
-{% if fav %} -

Favourite Videos

-{% endif %} -
- -{% for video in vids %} - -

{{video.title}}

+{{video.title}}
{% csrf_token %} - -
-

Right click to download


-Posted By : + + +Right click to download
+ {% for author in video.get_nbh.posted_by %} - {{author}} + + {% endfor %} -
-Posted At : + + + {% for date in video.get_nbh.creation_day %} - {{date}} + {% endfor %} -
-{% for we in video.get_nbh.source %} - Location: + + + +{% for we in video.get_nbh.source %} + {% for map in video.get_nbh.map_link %} - {% ifnotequal map '' %} - {{we}} - {% endifnotequal %} + {% ifnotequal map '' %} + + + + {% endifnotequal %} {% endfor %} {% endfor %} -
-Current rating is

{{ video.rating.get_rating }}

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

-
-
-{% endfor %}
+ + + + + + + + + + + +
+ +{% endfor %} -

-Follow us on Facebook + +
{% else %}

Sorry you need to log in to see this content !

{% endif %} +

+{% paginate %}

+ {% endblock %} {% block chart %} -













- -




+

{% endblock %} -- cgit v1.1