diff options
Diffstat (limited to 'gstudio')
-rw-r--r-- | gstudio/static/gstudio/css/screen.css | 9 | ||||
-rw-r--r-- | gstudio/templates/gstudio/_header.html | 26 | ||||
-rw-r--r-- | gstudio/templates/gstudio/home.html | 147 | ||||
-rw-r--r-- | gstudio/templates/gstudio/more.html | 241 | ||||
-rw-r--r-- | gstudio/templates/gstudio/nodetype_detail.html | 20 | ||||
-rw-r--r-- | gstudio/templates/gstudio/skeleton.html | 9 | ||||
-rw-r--r-- | gstudio/templates/gstudio/tags/breadcrumbs.html | 17 | ||||
-rw-r--r-- | gstudio/templatetags/gstudio_tags.py | 4 |
8 files changed, 449 insertions, 24 deletions
diff --git a/gstudio/static/gstudio/css/screen.css b/gstudio/static/gstudio/css/screen.css index c1077768..b947986b 100644 --- a/gstudio/static/gstudio/css/screen.css +++ b/gstudio/static/gstudio/css/screen.css @@ -92,6 +92,7 @@ caption { background: #eeeeee; } .top { margin-top: 0; padding-top: 0; } .bottom { margin-bottom: 0; padding-bottom: 0; } +.breadcrumbsearch { position: absolute; right: 50px; margin-bottom: -8px; margin-top: -21px;} .container { width: 950px; margin: 0 auto; overflow: hidden; *zoom: 1; } @@ -399,14 +400,14 @@ fieldset { padding: 1.4em; margin: 0 0 1em 0; } legend { font-weight: bold; font-size: 1.2em; } -input.text, input.title, input[type=email], input[type=text], input[type=password] { margin: 0.5em 0; background-color: white; padding: 5px; } +input.text, input.title, input[type=email], input[type=text], input[type=password] { margin: 0em 0; background-color: white; padding: 5px; } input.title { font-size: 1.5em; } textarea { margin: 0.5em 0; padding: 5px; } select { margin: 0.5em 0; } -fieldset { border: 1px solid #cccccc; width:150px;} +fieldset { border: 1px solid #cccccc; width:230px;} input.text, input.title, input[type=email], input[type=text], input[type=password], textarea { background-color: #fff; border: 1px solid #bbbbbb; } input.text:focus, input.title:focus, input[type=email]:focus, input[type=text]:focus, input[type=password]:focus, textarea:focus { border: 1px solid #666666; } @@ -436,7 +437,7 @@ a:hover { text-decoration: underline; } #b1 {position:relative; center:5%; background-color:#43AEE7; color: white; border: 1px solid #000000; font-size:1em;} #b2 {position:relative; center:6%; background-color:#43AEE7; color: white; border: 1px solid #000000; font-size:1em;} -#body { margin-bottom: 1em; border-bottom: 1px solid #e9e9f3; width: 100%; } +#body { margin-bottom: 1em; border-bottom: 0px solid #e9e9f3; width: 100%; } #content h1, #content h2, #content h3 { margin-top: 10px; } @@ -503,7 +504,7 @@ a:hover { text-decoration: underline; } #sidebar .tags div ul .tag_4 { font-size: 2em; color: #0070a8; } #sidebar .tags div ul .tag_5 { font-size: 2.25em; color: #0099e5; } #sidebar .tags div ul .tag_6 { font-size: 3em; color: #00adff; } -#footer{position: static; top: 4px; left: -1px; margin-top: 18px;} +#footer{position: static; top: 4px; left: -1px; margin-top: 18px; border-bottom: 1px solid #e9e9f3;} th.month{padding:0cm 2.5cm;} table.month { margin-bottom: 0; } table.month th.month { text-transform: uppercase; color: #006699; background: none; } diff --git a/gstudio/templates/gstudio/_header.html b/gstudio/templates/gstudio/_header.html index 2e05c8c2..4a913e91 100644 --- a/gstudio/templates/gstudio/_header.html +++ b/gstudio/templates/gstudio/_header.html @@ -6,15 +6,17 @@ <div class="branding"> Gnowledge Studio </div> <!-- Title --> - <div class="admin-title"> {% if grappelli_admin_title %}{{ + <div class="admin-title"> + <a href="/" title="Home">Home</a> + | {% if grappelli_admin_title %}{{ grappelli_admin_title }}{% else %}{% get_admin_title %}{% endif %} - | <a href="/">Home</a> - | <a href="{{ get_absolute_url }}/objects">objects</a> + + | <a href="{{ get_absolute_url }}/objects" title="Objects">Objects</a> {% if user.is_authenticated %} {% if user.is_staff %} - | <a href="{{ get_absolute_url }}/admin">Admin Dashboard</a> + | <a href="{{ get_absolute_url }}/admin" title="Admin Dashboard">Admin Dashboard</a> {% endif %} {% endif %} @@ -26,18 +28,18 @@ <ul id="user-tools"> <!-- Username --> <li class="user-options-container collapse closed"> - <a href="javascript://" class="user-options-handler collapse-handler">{% firstof user.first_name user.username %}</a> + <a href="javascript://" class="user-options-handler collapse-handler" title="{% firstof user.first_name user.username %}">{% firstof user.first_name user.username %}</a> <ul class="user-options"> <!-- Change Password --> {% url admin:password_change as password_change_url %} {% if password_change_url %} - <li><a href="{{ password_change_url }}"> + <li><a href="{{ password_change_url }}" title="Change Password"> {% else %} <li><a href="{{ root_path }}password_change/"> {% endif %} {% trans 'Change password' %}</a></li> <!-- Logout --> - <li><a href="{{get_absoulute_url}}/accounts/logout/"> + <li><a href="{{get_absoulute_url}}/accounts/logout/" title="Log out"> {% trans 'Log out' %}</a></li> </ul> @@ -47,20 +49,20 @@ <!-- JS tests --> {% url test-index as testindexurl %} {% if testindexurl %} - <li><a href="{{ testindexurl }}">{% trans 'Tests' %}</a></li> + <li><a href="{{ testindexurl }}" title="Tests">{% trans 'Tests' %}</a></li> {% endif %} <!-- Documentation --> {% url django-admindocs-docroot as docsroot %} {% if docsroot %} - <li><a href="{{ docsroot }}">{% trans 'Documentation' %}</a></li> + <li><a href="{{ docsroot }}" title="Documentation">{% trans 'Documentation' %}</a></li> {% endif %} - <li><a href="http://github.com/gnowgi/django-gstudio">Code</a></li> + <li><a href="http://github.com/gnowgi/django-gstudio" title="Code">Code</a></li> {% endblock %} </ul> {% else %} <ul id="user-tools"> - <li><a href="{{root_path}}/accounts/login">{% trans 'Login' %}</a></li> - <li>Not registered ? <a href="{{root_path}}/accounts/register">{% trans 'Register' %}</a></li> + <li><a href="{{root_path}}/accounts/login" title="Login">{% trans 'Login' %}</a></li> + <li>Not registered ? <a href="{{root_path}}/accounts/register" title="Register">{% trans 'Register' %}</a></li> </ul> diff --git a/gstudio/templates/gstudio/home.html b/gstudio/templates/gstudio/home.html new file mode 100644 index 00000000..12689225 --- /dev/null +++ b/gstudio/templates/gstudio/home.html @@ -0,0 +1,147 @@ +{% load objectapp_tags i18n %} +{% load gstudio_tags i18n %} + +{% load adminmedia grp_tags %} +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xml:lang="{{ LANGUAGE_CODE }}" lang="{{ LANGUAGE_CODE }}" version="-//W3C//DTD XHTML 1.1//EN" xmlns="http://www.w3.org/1999/xhtml"> + <head> + <style type="text/css"> + .searchbutton{ + font-family: Arial,sans-serif; + font-size: 22px; + font-weight: bold; + vertical-align: top; + } + #homebody{ + height:100%; + background: #B3B3B3; + + } + #header { + background: none repeat scroll 0 0 #2B3959; + border-bottom: 1px solid #E9E9F3; + color: white; + margin-bottom: 1em; + } + #header a:hover, #header a:active{ + color: red; + } + + #main { + margin-top: 70px; + } + + #searchtext{ + margin-left:25%; + margin-top:10% + } + #searchidbutton{ + margin-left:39%; + margin-top:2%; + } + + #author{ + margin-left: 75%; + } + + .bottom h3 { + background-color: #C4EBF4; + padding: 0.5em; + font-size: 1em; + line-height: 1; + margin-bottom: 1em; + border-radius: 15px 15px 15px 15px; + color: #176691; + font-weight: normal; + } + + .bottom{ + margin-top:9%; + margin-left:11%; + } + .authors { + width: 20%; + position:absolute; + margin-left: 3%; + } + + .recentsnodetype{ + width:22%; + position:absolute; + margin-left:24%; + } + + + .comments{ + width:22%; + position:absolute; + margin-left:47%; + } + } + </style> + + <script src="http://code.jquery.com/jquery-latest.js"></script> + <script type="text/javascript" > + + + $(window).load(function() { + $(".searchbutton").css({"background": "#F5F5F5" ,"width":"109px" , "height":"30px" , "-moz-box-sizing":"border-box", "margin-left":"45%", "padding":"4px 13px 29px 16px" , "color": "black" , "border":"1px solid #AAAAAA" }); + + + + }); + + + </script> + + <link href="{% admin_media_prefix %}css/base.css" rel="stylesheet" type="text/css" /> + + <script src="{% admin_media_prefix %}jquery/jquery-1.6.2.min.js" type="text/javascript"></script> + + <script src="{% admin_media_prefix %}jquery/ui/js/jquery-ui-1.8.15.custom.min.js" type="text/javascript"></script> + <!-- Grappelli Main JS --> + <script src="{% admin_media_prefix %}js/grappelli/grappelli.js" type="text/javascript"></script> + <!-- Grappelli jQuery Plugins, Widgets --> + + <script src="{% admin_media_prefix %}js/grappelli/jquery.grp_collapsible.js" type="text/javascript"></script> + <link rel="shortcut icon" href="/static/gstudio/img/favicon.ico" /> + + <title>Gnowledge Studio</title> + </head> + <body id="homebody"> + + + <div id="header" > + {% include "gstudio/_header.html" %} + </div> + + <div id="main"> + <center><font size="23" color="#4d659e"><b>{{ site }}</b></font></center> + <form action="{% url gstudio_nodetype_search %}" method="get"> + <input id="searchtext" class="classtext" type="text" value="{{ pattern }}" name="pattern" onfocus="this.value=''" style="border: 5; padding: 0pt; margin: 0pt; height: 30px; width: 40%; margin-left:30%; margin-bottom:18px; margin-top:4%" /> + <input class="searchbutton" type="submit" value="Search" title="Search" /> + + <a href="{% url gstudio_nodetype_latest_feed %}" class="feeds" title="Rssfeed"><img src="/static/gstudio/img/rss.png" alt="?" width="20" height="" /></a> + </form> + </div><br/><br/><br/> +<link rel="stylesheet" type="text/css" media="screen, projection" href="/static/gstudio/css/screen.css" /> +<center><p style = " font-size : 19px ; color : #4d659e"><b>Let us collaboratively construct semantic knowledge networks with a special focus on education.<a href="/more/"><font color="red">more</font></a></b></p></center> + <div class="bottom"> + <div class="authors"> + <h3>{% trans "Recents Authors" %}</h3> + {% get_authors %} + </div> + +<div class="recentsnodetype"> +<h3>{% trans "Recent Nodes" %}</h3> +{% get_recent_nodetypes %} +</div> +<div class="comments"> + <h3>{% trans "Recent Comments" %}</h3> + {% get_recent_comments 5 %} +</div> + </div> + + </body> +</html> + diff --git a/gstudio/templates/gstudio/more.html b/gstudio/templates/gstudio/more.html new file mode 100644 index 00000000..3b4f0345 --- /dev/null +++ b/gstudio/templates/gstudio/more.html @@ -0,0 +1,241 @@ +{% load objectapp_tags i18n %} +{% load gstudio_tags i18n %} + +{% load adminmedia grp_tags %} +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xml:lang="{{ LANGUAGE_CODE }}" lang="{{ LANGUAGE_CODE }}" version="-//W3C//DTD XHTML 1.1//EN" xmlns="http://www.w3.org/1999/xhtml"> + <head> + + <style type="text/css"> + #more_body{ + background: #B3B3B3; + } + #header { + background: none repeat scroll 0 0 #2B3959; + border-bottom: 1px solid #E9E9F3; + color: white; + margin-bottom: 1em; + } + #header a:hover, #header a:active{ + color: red; + } + + + #portal-footer { + background-color: #FFE9E8; + border-bottom: 1px solid #FF0026; + border-top: 1px solid #FF0026; + float: none; + line-height: 1.2em; + margin: 2em -19px 1em; + padding: 0.5em 0 1em; + text-align: center; + } + </style> + + </head> + <body dir="ltr" id = "more_body" class="section-front-page template-document_view"> + + <link href="{% admin_media_prefix %}css/base.css" rel="stylesheet" type="text/css" /> + <script src="{% admin_media_prefix %}jquery/jquery-1.6.2.min.js" type="text/javascript"></script> + <script src="{% admin_media_prefix %}jquery/ui/js/jquery-ui-1.8.15.custom.min.js" type="text/javascript"></script> + <!-- Grappelli Main JS --> + <script src="{% admin_media_prefix %}js/grappelli/grappelli.js" type="text/javascript"></script> + <!-- Grappelli jQuery Plugins, Widgets --> + <script src="{% admin_media_prefix %}js/grappelli/jquery.grp_collapsible.js" type="text/javascript"></script> + <link rel="shortcut icon" href="/static/gstudio/img/favicon.ico" /> + <div id="header" > + {% include "gstudio/_header.html" %} + </div> + <link type="text/css" rel="stylesheet" href="more.css"> + <table id="portal-columns"> + <tbody> + <tr> + + <h1 class="documentFirstHeading"> + <center><span id="parent-fieldname-title" class=""><font size="23px"> + Welcome to Gnowledge Network! </font> + </span></center> + </h1><br/><br/><br/> + <h2><font size="6px">Introduction </font></h2><br/> + <ul><li>This site is based on a simple idea that we + can build collaboratively a road map of knowledge by specifying the + prerequisites of concepts, activities, experiences and statements. The resulting road map can be used as a scaffolding to describe each node network by linking the node to other nodes in terms of relations and attributes. + <br/> + </li> + <li>Look at <a href="http://atlas.gnowledge.org/Data/display/12675_depmap.svg" class="external-link">this map to get an idea of a dependency map based on prerequisites.</a></li> + <li>Look at this one to get an idea of how a node can be described as a map (Link required??). <br></li> + <li>You will agree that such maps will be very useful to teachers and + students. Over a period of time, with your collaboration, we can build a + complete roadmap of all knowledge which will help to generate a non-linear curriculum framework.</li> + <li>Read <a href="http://atlas.gnowledge.org/help">Help Document</a> to begin contributing.</li> + </ul> + <br/><br/><br/> + + <h2><font size="6px">What you can do?</font></h2><br/> + <ul><li>You can specify the prerequisites for any concept or an activity + at this site. Or view the existing prerequisites that are already + defined by the community. <br> + </li> + <li>We simply add a concept as a + node (if it does not exist already) and specify a semantic dependency + (meaning dependency) relation between one node and another.</li> + <li>Ask yourself the following set of questions:</li> + <ul><li>To understand a concept what do you expect the learner must already know?</li> + <li>To understand a concept what do you expect the learner must do?</li> + <li>To impart a skill what what other activities the learner must do?</li><li>To impart a skill what other concepts the learner must already know?</li></ul> + </ul> + <p>Answers to these questions can be specified in this community portal by establishing links between concepts and activities.</p> + <br/><br/><br/> + <h2><font size="6px">What we will get out of this?</font></h2><br/> + <ul><li>a globally useful resource for teachers and students to know the learning track (learning path) for any concept or skill. <br></li> + <li>teachers and authors of textbooks can use these maps to prepare course materials or sequence their curriculum.</li> + <li>students get to know what they need to know in order to learn something.</li><li>researchers can use the data for analyzing the properties of knowledge structures.<br></li> + <li>a network of concepts and activities that can be used, modified, published and shared by the entire community.</li><li>a visual map of knowledge and a road map for learning and teaching.</li> + <li>a knowledge base that can be used to profile different domains of knowledge.</li><li>the + resulting map will show us, as it were, the 'cities' (on which we + depend on most), 'towns' (on which we depend but not as much as the + cities), 'villages' (on which we depend least), continents (domains that + contain inter-related cities, towns and villages), etc. <br></li><li>a sequence to automatically guide learners in a machine guided online tutoring system, for example.</li> + <li>a + network analysis linking the number of nodes and links, plots, + analyses, statistics, distribution properties etc. (very soon as the + data set increases, we will publish the results on this site. You can access the data dumps (sans privacy information) very soon, so that you can analyze the data yourself.)<br></li> + <li>and we are sure it will have many other uses as well. If you foresee some please discuss with us in the list community@gnowledge.org. Or write or upload a document in the sandbox fodler (follow the link) and send us an email in the list.<br></li></ul> + <br/><br/><br/> + <h2><font size="6px">Yes! You do not have to write essays here.</font></h2><br/> + <ul><li>We can get all the above mentioned goodies without writing any + essays or do so much of research. We do not define concepts either! Just + ask yourself the questions mentioned above and provide the answer if + you have them. We simply make the dependency relations explicit for all + concepts that all of us know. Soon we will be able to do this in all + languages of the world (Our software developers are working on this.).</li></ul> + <br/><br/><br/> + <h2><font size="6px">So, how to get it going? </font></h2><br/> + <ol><li>Join as a member. Use the join link on the right corner of the site.<br></li> + <li>Use the 'Login' link if you are already a member.<br></li> + <li>Search for a concept or activity using the search form present on the right side of the header or the "<a href="http://localhost:8081/depmap/viewall?val=1">view or edit</a>" + link. (We started this site recently and data set is very small, so + don't be surprised if your favorite concepts and activities are not + found here.)<br></li> + <li>Add a non-existing node. By default it will be + taken as a concept, but if you want it to be an activity, use the check + box. If a node already exists, you will see a message: "Object already + exists". Then you can visit that node and then decide what more you can + do. <br></li> + <li>Then add appropriate dependency links. For adding + dependency link, click on the "Add" button below the relation names + "Depends on" or its inverse name "Required for".</li> + <li>If you think + that the existing relation is not accurate, you can remove the link + using the "Delete" tab. Or discuss in the mailing list on the issue and + resolve the conflict.<br></li> + <li>Remember! You cannot add a relation + unless a concept node already exists. So, if you don't find the node + you are looking for, add one and link it.<br></li> + <li>Remember, all of + us are making only one single map collaboratively. All contributions + are recorded against your login name with date and time of contribution. + <br></li> + <li>Please see below the ownership and license information to know who owns the data made by you.</li></ol> + + <br/><br/><br/> + <h2><font size="6px">Spread the word around the world! </font></h2><br/> + <ul><li>Well! The site is meant for you. We made this simplest web + application so that the whole world gets the benefit. The outcome of + this simplest exercise will be a very useful semantic dependency map for + learning and teaching any topic. The knowledge base built on this site + is available for every one. For making the maps in other languages we + have to only add translations to each node. We will soon add this + function to have the map in all languages. However, if you want to add + concepts in your own language, you can build them right away, and may + add the translation links latter when the feature is made available.<br></li></ul> + <br/><br/><br/> + <h2><font size="6px">License</font></h2><br/> + The network and the content produced is published under <a href="http://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License" class="external-link">Creative Commons Attribution ShareAlike 3.0</a> + <p> </p> + <ul><li> What does this license imply?</li> + <ul><li>you have the freedom to use the maps for any purpose.</li> + <li>you can make modifications to them.<br></li><li>you + can distribute or publish or sell them provided you grant the same + freedoms to others as well, i.e., release them again under the terms of + the same license. Please write to us if you have any query on your rights to use them. + </li></ul> + </ul> + <br/><br/><br/> + <h2><font size="6px">We are slowly adding more features!</font></h2><br/> + <p>After depMap (dependency map) we will soon have other kinds of maps as follows:</p> + <ul><li>typeMap (what is a type of what, what is a sub-type of what) for taxonomy<br></li> + <li>partMap (what is a part of what, and what consists of what) for part-whole relation<br></li> + <li>reactionMap (what is a product of what, and what is a reactant of what) for how matter changes<br></li> + <li>causeMap (what is a cause of what, and what is an effect of what) for cause-effect map<br></li> + <li>testsMap (what is a preTest and what is a postTest of each node in the map) for assessment<br></li> + <li>and so on. If you have another good suggestion tell us, we will try to add that in future. So, write to us or upload your suggestion in the sandbox (you need to register to do this.).<br></li></ul> + <br/><br/><br/> + <h2><font size="6px">Tell us if you have any feedback!</font></h2><br/> + <ul><li>We will make improvements to the user interface to make the + process easy. If you have good ideas you can tell us, or if you have + skills or willing to contribute you can collaborate in building the + software of this portal as well. If you know how to help us build the site, you are welcome. Send us + a patch and if it works and gels with the rest of the site your + contribution will be in.<br></li></ul> + <blockquote> + <blockquote>join the room glab@conference.jabber.org to talk to other developers.</blockquote> + </blockquote> + <ul><li> + <div id="text-6"> + <ul><li> + join the mailing list atlas-dev@gnowledge.org at + <a href="http://gnowledge.org/cgi-bin/mailman/listinfo/atlas-dev">http://gnowledge.org/cgi-bin/mailman/listinfo/atlas-dev</a> + </li> + <li> + see our code at svn co <a href="https://svn.gnowledge.org/svn/repo/labcode/atlasv2/atlas">https://svn.gnowledge.org/svn/repo/labcode/atlasv2/atlas</a></li></ul> + </div> + <p>The site uses <a href="http://www.gnu.org/software/gnowsys/" class="external-link">GNOWSYS (Gnowledge Networking and Organizing System)</a> + as a backend. GNOWSYS uses gnowql (gnowledge query library) as API. + Some documentation about how you can learn gnowql is available <a href="http://lab.gnowledge.org/Software/gnowsys_rc1/documentation-of-new-gnowql" class="external-link">here</a>.</p> + </li><li>Use the 'contact' link above to write to us. If you have any feature request, we will try to add the feature. </li><li><a href="http://gnowledge.org/cgi-bin/mailman/listinfo/community" class="external-link">Join the mailing list here </a> to be in touch with other contributors where you can<br></li> + <ul><li>discuss with them pertaining to the activities on this portal<br></li><li>resolve conflicts if any</li><li>schedule periodic online workshops though collaborative online conferences</li><li>share your experiences <br></li><li>and so on.</li></ul> + </ul> + This site is made and maintained by the <a href="http://trac.gnowledge.org/trac">gnowledge.org lab</a> of Homi Bhabha Centre for Science Educatioin, TIFR.<a href="http://localhost:8081/depmap/" class="external-link"><br></a> + <p> </p> + + + + + </tr> + </tbody> + </table> + + <div id="portal-footer"> + + <p>A project of <a href="http://www.hbcse.tifr.res.in" target="_blank">Homi Bhabha Centre for Science Education</a>, + <a href="http://www.tifr.res.in" target="_blank">TIFR</a><br> + <!--Plone and its visual design is Copyright 2000 - 2006 by Alexander Limi, Alan Runyan, Vidar Andersen.--> + + </p> + + <p> + All text is available under the terms of the <a href="http://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License" class="external-link">Creative Commons Attribution ShareAlike 3.0</a>. + </p> + + <p> + <a href="http://atlas.gnowledge.org/dedication" target="_blank">Dedication</a>,<a href="http://atlas.gnowledge.org/credits" target="_blank">Credits</a> and <a href="http://atlas.gnowledge.org/source" target="_blank">Source</a> + </p> + </div> + + + <div > + <ul> + <li><center> + <a href="http://atlas.gnowledge.org/softwares"><img src="/static/gstudio/img/community.png" /></a></center> + </li> + </ul> + + + </div> + + + </body> + </html> + diff --git a/gstudio/templates/gstudio/nodetype_detail.html b/gstudio/templates/gstudio/nodetype_detail.html index e016108a..ee7cfcb1 100644 --- a/gstudio/templates/gstudio/nodetype_detail.html +++ b/gstudio/templates/gstudio/nodetype_detail.html @@ -41,6 +41,21 @@ <a href="{{ object.ref.get_edit_url }}" target="_blank" title = "edit">[edit]</a> </h2> +<div class="History"> + + + <table border="1" cellspacing="0"> + + {% for sid in object.ref.get_ssid %} + + + <a href="{{ object.get_version_url }}{{ sid }}/{{ forloop.counter }}" title= "{{ object.title }} {{ object.id }}.{{ forloop.counter }}" style="color:#FFA500"><b>+</b></a> + + {% endfor %} + + </table> + +</div> {% with object.html_content|safe as object_content %} <!-- Neighbourhood listing starts --> <!--Name,Plural Name , Alternate Name ,Type of --> @@ -185,6 +200,9 @@ <a href="{{atvalue}}" title = "{{atkey}}">{{atkey}}</a>; {% endfor %} <br/> {% endif %} + + + <!-- Content --> {% if object.content %} <b> @@ -350,6 +368,8 @@ {% endif %} </div> {% endblock %} +<br/> + {% block nodetype-comments %} <div id="comments" class="span-16 last"> diff --git a/gstudio/templates/gstudio/skeleton.html b/gstudio/templates/gstudio/skeleton.html index 192edb3e..1570e772 100644 --- a/gstudio/templates/gstudio/skeleton.html +++ b/gstudio/templates/gstudio/skeleton.html @@ -172,7 +172,7 @@ {% include "gstudio/_header.html" %} - <div id="breadcrumbs" class="span-24 last"> + <div id="breadcrumbs" class=""> / {% block breadcrumbs %}{% endblock %} </div> <div id="body" class="span-24 last"> @@ -624,10 +624,7 @@ return relations; </script> </div> - <div id="sidebar"> - {% block sidebar %} - {% endblock %} - </div> + </div> <div id="footer"> @@ -643,6 +640,6 @@ return relations; </p> </div> - </div> + </body> </html> diff --git a/gstudio/templates/gstudio/tags/breadcrumbs.html b/gstudio/templates/gstudio/tags/breadcrumbs.html index 57f9ad99..0a33b7b4 100644 --- a/gstudio/templates/gstudio/tags/breadcrumbs.html +++ b/gstudio/templates/gstudio/tags/breadcrumbs.html @@ -1,3 +1,6 @@ + +{% load gstudio_tags i18n %} +{% get_tags as nodetype_tags %} {% for crumb in breadcrumbs %} {% if not forloop.last %} {% if crumb.name %} @@ -7,3 +10,17 @@ {{ crumb.name }} {% endif %} {% endfor %} + +<div class="breadcrumbsearch"> + <form method="get" id="searchform" action="{% url nodes_search %}"> + <p> + <input type="text" value="{% trans "Keywords..." %}" name="pattern" id="searchbox" onfocus="this.value=''" /> + <input type="submit" class="submitbutton" value="OK" /> + <a title="{% trans 'You can use - to exclude words or phrases, "double quotes" for exact phrases and the AND/OR boolean operators combined with parenthesis for complex searchs.' %}"> + <img src="/static/objectapp/img/help.png" alt="?" width="14" height="14" /> + + <a href="{% url gstudio_nodetype_latest_feed %}" class="feeds" title="Rssfeed"><img src="/static/gstudio/img/rss.png" alt="?" width="20" height="" /></a> + </a> + </p> + </form> +</div> diff --git a/gstudio/templatetags/gstudio_tags.py b/gstudio/templatetags/gstudio_tags.py index a22715ee..47dbbff7 100644 --- a/gstudio/templatetags/gstudio_tags.py +++ b/gstudio/templatetags/gstudio_tags.py @@ -68,10 +68,10 @@ def get_metatypes(template='gstudio/tags/metatypes.html'): @register.inclusion_tag('gstudio/tags/dummy.html') -def get_authors(template='gstudio/tags/authors.html'): +def get_authors(number=5, template='gstudio/tags/authors.html'): """Return the published authors""" return {'template': template, - 'authors': Author.published.all()} + 'authors': Author.published.all()[:number]} @register.inclusion_tag('gstudio/tags/dummy.html') |