summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/fullscreen.html
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/templates/gstudio/fullscreen.html')
-rw-r--r--gstudio/templates/gstudio/fullscreen.html26
1 files changed, 16 insertions, 10 deletions
diff --git a/gstudio/templates/gstudio/fullscreen.html b/gstudio/templates/gstudio/fullscreen.html
index e08a09d..7090c96 100644
--- a/gstudio/templates/gstudio/fullscreen.html
+++ b/gstudio/templates/gstudio/fullscreen.html
@@ -2,6 +2,7 @@
{% load adminmedia grp_tags %}
{% load i18n comments gstudio_tags %}
{% load tagging_tags comments i18n %}
+ {% block title %}{{ image.title }}{% endblock %}
{% block content %}
<script src="{% admin_media_prefix %}jquery/jquery-1.6.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{{STATIC_URL}}gstudio/js/orgitdown/orgitdown/sets/org/set.js"></script>
@@ -9,19 +10,24 @@
<script type="text/javascript" >
$(window).load(function() {
$("#content").css({
- "width": "600px",});});
+ "width": "600px",});
+ $("img").css({"max-width":"1000px",})
+ });
$(window).load(function() {
$("#chart").hide();});
$(window).load(function() {
$("#graphcss").hide();
});
+var editImage=false;
jQuery(document).ready(function($) {
$("#editcontent").click(function(){
+ editImage=true;
document.getElementById('gnoweditor').style.visibility="visible";
$("#gnoweditor").val($("#editortext").val());
$("#gnoweditor").orgitdown(mySettings);
- document.getElementById('save').style.visibility="visible";
+ $("#content img").css({"max-width":"600px",})
+ <!--document.getElementById('save').style.visibility="visible";-->
$("#editcontent").hide();
});
@@ -38,8 +44,8 @@ jQuery(document).ready(function($) {
<link href="{% admin_media_prefix %}css/base.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="{{ STATIC_URL }}gstudio/css/screen.css" />
<link rel="shortcut icon" href="{{ STATIC_URL }}gstudio/img/favicon.ico" />
-
-<img src="{% admin_media_prefix %}img/{{image.image}}" >
+<a href="{% admin_media_prefix %}img/{{image.image}}">
+<img src="{% admin_media_prefix %}img/{{image.image|cut:'.jpg'|cut:'.png'|cut:'.JPG'|cut:'.JPEG'|cut:'.svg'|cut:'.tif'|cut:'.gif'|cut:'.ogv'}}_display_1024"></a>
<br/>
<form method="post" action="">{% csrf_token %}
<font color = 'black'>Name : </font><font color = 'teal'>{{image.title}}</font>
@@ -52,25 +58,23 @@ jQuery(document).ready(function($) {
<font color = 'black'>Posted At : </font><font color = 'teal'>{{image.creation_date}}</font>
<br/>
-<font color = 'black'>Description:</font><font color = 'teal'>
+<font color = 'black'>Description:</font>
{%autoescape on%}
{% with image.html_content|safe as image_content %}
{{image_content}}
{% endwith %}
{% endautoescape%}
-</font>
-{% for author in image.authors.all %}
- {% ifequal author.username user.username %}
+
+{% if user.is_authenticated %}
<input type="hidden" name="imgid" value={{image.id}}>
<input type="button" id="editcontent" value="Edit"/>
<input type="submit" class="commentsavecontent" id="save" value="Save" style="visibility:hidden" />
<input type="hidden" name="contenttext" id="commenttext" style="visibility:hidden" />
<input type="hidden" id="editortext" style="visibility:hidden" value="{{image.content_org}}">
- {% endifequal %}
-{% endfor %}
+{% endif %}
</form>
<br/>
@@ -82,6 +86,7 @@ jQuery(document).ready(function($) {
<font color = 'black'>Total Number of votes is: &nbsp;<font color='teal'><b>{{ image.rating_votes }}</b></font> </font>
{% endifequal %}
<br>
+{% if user.is_authenticated %}
<form method="post" action="">
{% csrf_token %}
<input name="star1" type="radio" value=1 class="star"/>
@@ -100,6 +105,7 @@ jQuery(document).ready(function($) {
<input type="text" value="" name="texttags" />
<input type="submit" value="Add Tags" name="addtags" />
</form>
+{% endif %}
<br/>
<div class="tags">
<p class="gbobject-tags span-16 last">