From 7a4f561e851fdc7246d804c3abb6748b8a4199a6 Mon Sep 17 00:00:00 2001 From: gnowgi Date: Thu, 15 Mar 2012 16:19:20 +0530 Subject: master trunk of gnowsys-studio --- gstudio/templates/gstudio/_header.html | 79 ++++ gstudio/templates/gstudio/_narrative_detail.html | 200 +++++++++ gstudio/templates/gstudio/_nodetype_detail.html | 32 ++ .../templates/gstudio/_nodetype_neighbourhood.html | 18 + gstudio/templates/gstudio/_subtype_detail.html | 1 + .../templates/gstudio/attributetype_detail.html | 281 +++++++++++++ .../templates/gstudio/author/nodetype_list.html | 1 + gstudio/templates/gstudio/author_list.html | 27 ++ gstudio/templates/gstudio/base.html | 107 +++++ gstudio/templates/gstudio/cms/nodetype_detail.html | 8 + gstudio/templates/gstudio/cms/nodetype_list.html | 12 + .../templates/gstudio/cms/random_nodetypes.html | 4 + gstudio/templates/gstudio/graph1.html | 347 ++++++++++++++++ gstudio/templates/gstudio/login.html | 40 ++ .../templates/gstudio/metatype/nodetype_list.html | 1 + gstudio/templates/gstudio/metatype_list.html | 25 ++ gstudio/templates/gstudio/nodetype_archive.html | 30 ++ .../templates/gstudio/nodetype_archive_day.html | 23 ++ .../templates/gstudio/nodetype_archive_month.html | 31 ++ .../templates/gstudio/nodetype_archive_year.html | 21 + gstudio/templates/gstudio/nodetype_detail.html | 357 ++++++++++++++++ gstudio/templates/gstudio/nodetype_list.html | 143 +++++++ gstudio/templates/gstudio/nodetype_search.html | 49 +++ gstudio/templates/gstudio/nodetype_trackback.xml | 9 + gstudio/templates/gstudio/opensearch.xml | 24 ++ gstudio/templates/gstudio/password.html | 35 ++ gstudio/templates/gstudio/rsd.xml | 16 + gstudio/templates/gstudio/sitemap.html | 70 ++++ gstudio/templates/gstudio/skeleton.html | 451 +++++++++++++++++++++ gstudio/templates/gstudio/tag/nodetype_list.html | 1 + gstudio/templates/gstudio/tag_list.html | 24 ++ .../templates/gstudio/tags/archives_nodetypes.html | 15 + .../gstudio/tags/archives_nodetypes_link.html | 3 + .../gstudio/tags/archives_nodetypes_tree.html | 43 ++ gstudio/templates/gstudio/tags/authors.html | 15 + gstudio/templates/gstudio/tags/breadcrumbs.html | 7 + gstudio/templates/gstudio/tags/calendar.html | 17 + gstudio/templates/gstudio/tags/dummy.html | 1 + .../templates/gstudio/tags/featured_nodetypes.html | 12 + gstudio/templates/gstudio/tags/metatypes.html | 16 + gstudio/templates/gstudio/tags/nodetypes.html | 16 + gstudio/templates/gstudio/tags/pagination.html | 59 +++ .../templates/gstudio/tags/popular_nodetypes.html | 16 + .../templates/gstudio/tags/random_nodetypes.html | 12 + .../templates/gstudio/tags/recent_comments.html | 20 + .../templates/gstudio/tags/recent_linkbacks.html | 21 + .../templates/gstudio/tags/recent_nodetypes.html | 20 + .../templates/gstudio/tags/similar_nodetypes.html | 12 + .../templates/gstudio/tags/slider_nodetypes.html | 27 ++ gstudio/templates/gstudio/tags/tag_cloud.html | 13 + gstudio/templates/gstudio/wlwmanifest.xml | 63 +++ gstudio/templates/gstudio/wxr.xml | 125 ++++++ 52 files changed, 3000 insertions(+) create mode 100644 gstudio/templates/gstudio/_header.html create mode 100644 gstudio/templates/gstudio/_narrative_detail.html create mode 100644 gstudio/templates/gstudio/_nodetype_detail.html create mode 100644 gstudio/templates/gstudio/_nodetype_neighbourhood.html create mode 100644 gstudio/templates/gstudio/_subtype_detail.html create mode 100644 gstudio/templates/gstudio/attributetype_detail.html create mode 100644 gstudio/templates/gstudio/author/nodetype_list.html create mode 100644 gstudio/templates/gstudio/author_list.html create mode 100644 gstudio/templates/gstudio/base.html create mode 100644 gstudio/templates/gstudio/cms/nodetype_detail.html create mode 100644 gstudio/templates/gstudio/cms/nodetype_list.html create mode 100644 gstudio/templates/gstudio/cms/random_nodetypes.html create mode 100644 gstudio/templates/gstudio/graph1.html create mode 100644 gstudio/templates/gstudio/login.html create mode 100644 gstudio/templates/gstudio/metatype/nodetype_list.html create mode 100644 gstudio/templates/gstudio/metatype_list.html create mode 100644 gstudio/templates/gstudio/nodetype_archive.html create mode 100644 gstudio/templates/gstudio/nodetype_archive_day.html create mode 100644 gstudio/templates/gstudio/nodetype_archive_month.html create mode 100644 gstudio/templates/gstudio/nodetype_archive_year.html create mode 100644 gstudio/templates/gstudio/nodetype_detail.html create mode 100644 gstudio/templates/gstudio/nodetype_list.html create mode 100644 gstudio/templates/gstudio/nodetype_search.html create mode 100644 gstudio/templates/gstudio/nodetype_trackback.xml create mode 100644 gstudio/templates/gstudio/opensearch.xml create mode 100644 gstudio/templates/gstudio/password.html create mode 100644 gstudio/templates/gstudio/rsd.xml create mode 100644 gstudio/templates/gstudio/sitemap.html create mode 100644 gstudio/templates/gstudio/skeleton.html create mode 100644 gstudio/templates/gstudio/tag/nodetype_list.html create mode 100644 gstudio/templates/gstudio/tag_list.html create mode 100644 gstudio/templates/gstudio/tags/archives_nodetypes.html create mode 100644 gstudio/templates/gstudio/tags/archives_nodetypes_link.html create mode 100644 gstudio/templates/gstudio/tags/archives_nodetypes_tree.html create mode 100644 gstudio/templates/gstudio/tags/authors.html create mode 100644 gstudio/templates/gstudio/tags/breadcrumbs.html create mode 100644 gstudio/templates/gstudio/tags/calendar.html create mode 100644 gstudio/templates/gstudio/tags/dummy.html create mode 100644 gstudio/templates/gstudio/tags/featured_nodetypes.html create mode 100644 gstudio/templates/gstudio/tags/metatypes.html create mode 100644 gstudio/templates/gstudio/tags/nodetypes.html create mode 100644 gstudio/templates/gstudio/tags/pagination.html create mode 100644 gstudio/templates/gstudio/tags/popular_nodetypes.html create mode 100644 gstudio/templates/gstudio/tags/random_nodetypes.html create mode 100644 gstudio/templates/gstudio/tags/recent_comments.html create mode 100644 gstudio/templates/gstudio/tags/recent_linkbacks.html create mode 100644 gstudio/templates/gstudio/tags/recent_nodetypes.html create mode 100644 gstudio/templates/gstudio/tags/similar_nodetypes.html create mode 100644 gstudio/templates/gstudio/tags/slider_nodetypes.html create mode 100644 gstudio/templates/gstudio/tags/tag_cloud.html create mode 100644 gstudio/templates/gstudio/wlwmanifest.xml create mode 100644 gstudio/templates/gstudio/wxr.xml (limited to 'gstudio/templates/gstudio') diff --git a/gstudio/templates/gstudio/_header.html b/gstudio/templates/gstudio/_header.html new file mode 100644 index 00000000..51061794 --- /dev/null +++ b/gstudio/templates/gstudio/_header.html @@ -0,0 +1,79 @@ +{% load i18n grp_tags %} + + + + + diff --git a/gstudio/templates/gstudio/_narrative_detail.html b/gstudio/templates/gstudio/_narrative_detail.html new file mode 100644 index 00000000..53e62eae --- /dev/null +++ b/gstudio/templates/gstudio/_narrative_detail.html @@ -0,0 +1,200 @@ + +

+ + + {% if object.get_rendered_nbh.plural %} + Its plural form is: + {{object.get_rendered_nbh.plural}}; + {% endif %} + {% if object.get_rendered_nbh.altnames %} + It is known by other names: + {{object.get_rendered_nbh.altnames}} ; + {% endif %} + + {% if object.get_rendered_nbh.member_of_metatypes %} + + {% if object.get_rendered_nbh.type_of %} + is a kind of: + {% for typekey,typevalue in object.get_rendered_nbh.type_of.items %} + {{typekey}}; + {% endfor %}; + {% endif %} + + member of metatype/s: + {% for mkey,mvalue in object.get_rendered_nbh.member_of_metatypes.items %} + {{mkey}}; + {% endfor %}; + {% endif %} + + {% if object.get_rendered_nbh.contains_subtypes %} + contains subtypes: + {% for stkey,stvalue in object.get_rendered_nbh.contains_subtypes.items %} + {{stkey}}; + {% endfor %}; + {% endif %} + + + {% if object.get_rendered_nbh.contains_members %} + + + has members: + {% for mkey,mvalue in object.get_rendered_nbh.contains_members.items %} + {{mkey}}; + {% endfor %}; + {% endif %} + + + + + {% if object.get_rendered_nbh.relations %} + + + {% for relkey,relvalue in object.get_rendered_nbh.relations.items %} + {{relkey}}: + {% for relk, relv in relvalue.items %} + {{relk}}; + {% endfor %}; + {% endfor %} + {% endif %} + + {% if object.get_rendered_nbh.attributes %} + + + + It has some more properties: + + {% for items in object.get_rendered_nbh.attributes.items %} + {{items}}; + {% endfor %} ; + {% endif %} + + + {% if object.get_rendered_nbh.leftroles %} + + + + it is used as a subject-type for the relation: + + {% for lrkey,lrvalue in object.get_rendered_nbh.leftroles.items %} + {{lrkey}}; + {% endfor %} ; + {% endif %} + + + {% if object.get_rendered_nbh.rightroles %} + + it is used as an object in the predicate position for the relation: + + {% for rrkey,rrvalue in object.get_rendered_nbh.rightroles.items %} + {{rrkey}}; + {% endfor %} ; + {% endif %} + + + {% if object.get_rendered_nbh.ats %} + + + it is subject-type for the property: + + {% for atkey,atvalue in object.get_rendered_nbh.ats.items %} + {{atkey}}; + {% endfor %} ; + {% endif %} + +

+ {% if object.get_rendered_nbh.priornodes %} + + + It has prerequisites: + {% for mkey,mvalue in object.get_rendered_nbh.priornodes.items %} + {{mkey}}; + {% endfor %}; + {% endif %} + + {% if object.get_rendered_nbh.posteriornodes %} + + + It is a prerequisite for: + {% for mkey,mvalue in object.get_rendered_nbh.posteriornodes.items %} + {{mkey}}; + {% endfor %}; + {% endif %} + + + + +

+ +
+ {% if object.image %} +
+

+ + {{ object.title }} + +

+
+ {% endif %} +
+
+ {{ object_content }} +
+ + + +
+ + + diff --git a/gstudio/templates/gstudio/_nodetype_detail.html b/gstudio/templates/gstudio/_nodetype_detail.html new file mode 100644 index 00000000..7f56f407 --- /dev/null +++ b/gstudio/templates/gstudio/_nodetype_detail.html @@ -0,0 +1,32 @@ +{% load tagging_tags comments i18n %} +
+
+

+ + {{ object.title }} + + [edit] + +

+ +

+ + + {% if object.authors.count %} + {% trans "Contributed by" %} + {% for author in object.authors.all %} + + + {% if not forloop.last %}, {% endif %} + {% endfor %} + {% trans "on" %} + {% else %} + {% trans "Contributed by" %} + {% endif %} + {{ object.creation_date|date:"DATE_FORMAT" }} + + + +

+
diff --git a/gstudio/templates/gstudio/_nodetype_neighbourhood.html b/gstudio/templates/gstudio/_nodetype_neighbourhood.html new file mode 100644 index 00000000..9941b861 --- /dev/null +++ b/gstudio/templates/gstudio/_nodetype_neighbourhood.html @@ -0,0 +1,18 @@ +{% load tagging_tags comments i18n %} + +{% block neighbourhood %} + + {% for key,value in object.get_nbh.items %} + +

{{key}}: + {% if key == 'title'%} + {{value}} + {% endif %} + {% for key,value in value.items %} + {{value}}, + {% endfor %} +

+ + + {% endfor %} +{% endblock %} diff --git a/gstudio/templates/gstudio/_subtype_detail.html b/gstudio/templates/gstudio/_subtype_detail.html new file mode 100644 index 00000000..e77ced8b --- /dev/null +++ b/gstudio/templates/gstudio/_subtype_detail.html @@ -0,0 +1 @@ +nothing as yet diff --git a/gstudio/templates/gstudio/attributetype_detail.html b/gstudio/templates/gstudio/attributetype_detail.html new file mode 100644 index 00000000..a09f561e --- /dev/null +++ b/gstudio/templates/gstudio/attributetype_detail.html @@ -0,0 +1,281 @@ +{% extends "gstudio/base.html" %} +{% load i18n comments gstudio_tags %} + +{% block title %}{{ object.title }}{% endblock %} + +{% block meta-description %}{% if object.excerpt %}{{ object.excerpt|striptags }}{% else %}{{ object.content|striptags|truncatewords:100 }}{% endif %}{% endblock %} + +{% block meta-keywords %}{% if object.tags %}{{ object.tags }}{% else %}{{ block.super }}{% endif %}{% endblock %} + + +{% block link %} + {{ block.super }} + {% with object.previous_attributetype as previous_attributetype %}{% if previous_attributetype %} + + {% endif %}{% endwith %} + {% with object.next_attributetype as next_attributetype %}{% if next_attributetype %} + + {% endif %}{% endwith %} + + + {% with year=object.creation_date|date:"Y" month=object.creation_date|date:"m" day=object.creation_date|date:"d" %} + + + + + {% endwith %} +{% endblock %} + + +{% block content %} + + +{% block attributetype-content %} + {% with object.html_content|safe as object_content %} + + + Test successful : {{ object.title }}
+ + {% for key,value in object.get_rendered_nbh.items %} + + {% if value %} + {% if key == "altnames" %} + Alternate names : + {{value}}
+ {% endif %} + {% if key == "plural" %} + Plural Name : + {{value}}
+ {% endif %} + {% if key == "type_of" %} + Type of : + {{value}}
+ {% endif %} + {% if key == "contains_subtypes" %} + SubTypes : + {{value}}
+ {% endif %} + {% if key == "siblings" %} + {% if value %} + Siblings: + {% endif %} + {% for sibkey,sibvalue in value.items %} + {{sibkey}}; + {% endfor %}
+ {% endif %} + {% if key == "member_of_metatypes" %} + Member of Metatypes : + {% for mkey,mvalue in value.items %} + {{mkey}}; + {% endfor %}
+ {% endif %} + {% if key == "contains_members" %} + Contains Member objects : + {% for mkey,mvalue in value.items %} + {{mkey}}; + {% endfor %}
+ {% endif %} + {% if key == "leftroles" %} + Left role of Relation types : + {% for lftkey, lftvalue in value.items %} + {{lftkey}}; + {% endfor %}
+ {% endif %} + {% if key == "rightroles" %} + Right role of Relation types : + {% for rghtkey, rghtvalue in value.items %} + {{rghtkey}}; + {% endfor %}
+ {% endif %} + {% if key == "posteriornodes" %} + Posterior nodes : + {% for mkey,mvalue in value.items %} + {{mkey}}; + {% endfor %}
+ {% endif %} + {% if key == "priornodes" %} + Priornodes : + {% for mkey,mvalue in value.items %} + {{mkey}}; + {% endfor %}
+ {% endif %} + + + + {% endif %} + {% endfor %} + + + + {% endwith %} + {% endblock %} + + + +{% block attributetype-widgets %} +
{% with object.next_attributetype as next_attributetype %} + {% if object.posteriornodes.all %} +
+
{% trans "Posterior node" %}
+ {% for items in object.posteriornodes.all %} + {{ items.title }}; + {% endfor %} +
+ {% endif %} + {% endwith %} + + {% if object.priornodes.all %} +
+
{% trans "Prior node" %}
+ {% for items in object.priornodes.all %} + {{ items.title }}; + {% endfor %} +
+ {% endif %} + {% endwith %} + {% if object.related_published %} + + {% endif %} +
+{% endblock %} + +{% block attributetype-comments %} +
+
{% trans "Comments" %}
+ {% with object.comments as comment_list %} + {% if comment_list.count %} +
    + {% for comment in comment_list %} + + {% endfor %} +
+ {% if not object.comments_are_open %} +

{% trans "Comments are closed." %}

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

{% trans "No comments yet." %}

+ {% else %} +

{% trans "Comments are closed." %}

+ {% endif %} + {% endif %} + {% endwith %} +
+{% endblock %} + +{% block attributetype-pingbacks %} +
+
{% trans "Pingbacks" %}
+ {% with object.pingbacks as pingback_list %} + {% if pingback_list.count %} +
    + {% for pingback in pingback_list %} +
  1. +
    +
    + {{ pingback.user_name }} + {% trans "on" %} {{ pingback.submit_date|date:"SHORT_DATETIME_FORMAT" }} +
    +
    + + {{ pingback.comment }} + +
    +
    +
  2. + {% endfor %} +
+ {% endif %} + {% if object.pingback_enabled %} +

{% trans "Pingbacks are open." %}

+ {% else %} +

{% trans "Pingbacks are closed." %}

+ {% endif %} + {% endwith %} +
+{% endblock %} + +{% block attributetype-trackbacks %} +{% with object.trackbacks as trackback_list %} +{% if trackback_list.count or object.pingback_enabled %} +
+
{% trans "Trackbacks" %}
+ {% if trackback_list.count %} +
    + {% for trackback in trackback_list %} +
  1. +
    +
    + {{ trackback.user_name }} + {% trans "on" %} {{ trackback.submit_date|date:"SHORT_DATETIME_FORMAT" }} +
    +
    + + {{ trackback.comment }} + +
    +
    +
  2. + {% endfor %} +
+ {% endif %} + {% if object.pingback_enabled %} +

+ + {% trans "Trackback URL" %} +

+ {% endif %} +
+{% endif %} +{% endwith %} +{% endblock %} + +{% block attributetype-comments-form %} +{% if object.comments_are_open %} +
+ {% render_comment_form for object %} +
+{% endif %} +{% endblock %} + +{% endblock %} + +{% block admin_tools %} +{% if perms.gstudio.change_attributetype %} +
  • + + {% trans "Edit the node type" %} + +
  • +{% endif %} +{% endblock %} diff --git a/gstudio/templates/gstudio/author/nodetype_list.html b/gstudio/templates/gstudio/author/nodetype_list.html new file mode 100644 index 00000000..54b89147 --- /dev/null +++ b/gstudio/templates/gstudio/author/nodetype_list.html @@ -0,0 +1 @@ +{% extends "gstudio/nodetype_list.html" %} diff --git a/gstudio/templates/gstudio/author_list.html b/gstudio/templates/gstudio/author_list.html new file mode 100644 index 00000000..2fd02950 --- /dev/null +++ b/gstudio/templates/gstudio/author_list.html @@ -0,0 +1,27 @@ +{% extends "gstudio/base.html" %} +{% load i18n %} + +{% block meta-description %}{% trans "Author list" %}{% endblock %} + +{% block title %}{% trans "Authors" %}{% endblock %} + +{% block content %} +

    {% trans "Author list" %}

    +
    + +
    +{% endblock %} diff --git a/gstudio/templates/gstudio/base.html b/gstudio/templates/gstudio/base.html new file mode 100644 index 00000000..1d8898b4 --- /dev/null +++ b/gstudio/templates/gstudio/base.html @@ -0,0 +1,107 @@ +{% extends "gstudio/skeleton.html" %} +{% load objectapp_tags i18n %} + + {% block meta %} + +{% endblock %} + +{% block link %} + + + + + + {% get_archives_gbobjects "objectapp/tags/archives_gbobjects_link.html" %} +{% endblock %} + +{% block breadcrumbs %} + {% objectapp_breadcrumbs %} +{% endblock %} + +{% block sidebar %} + ? +

    Rssfeed

    + + +
    +

    {% trans "Objecttypes" %}

    + {% get_objecttypes %} +
    +
    +

    {% trans "Authors" %}

    + {% get_authors %} +
    +
    +

    {% trans "Calendar" %}

    + {% get_calendar_gbobjects %} +
    +
    +

    {% trans "Tags" %}

    + {% get_tag_cloud %} +
    +
    +

    {% trans "Recent gbobjects" %}

    + {% get_recent_gbobjects 5 %} +
    +
    +

    {% trans "Recent comments" %}

    + {% get_recent_comments 5 %} +
    +
    +

    {% trans "Recent linkbacks" %}

    + {% get_recent_linkbacks 5 %} +
    +
    +

    {% trans "Random gbobjects" %}

    + {% get_random_gbobjects 5 %} +
    +
    +

    {% trans "Popular gbobjects" %}

    + {% get_popular_gbobjects 5 %} +
    +
    +

    {% trans "Archives" %}

    + {% get_archives_gbobjects_tree %} +
    +{% if user.is_authenticated %} +
    +

    {% trans "Tools" %}

    + +
    +{% endif %} +{% endblock %} + + diff --git a/gstudio/templates/gstudio/cms/nodetype_detail.html b/gstudio/templates/gstudio/cms/nodetype_detail.html new file mode 100644 index 00000000..70bd8dfb --- /dev/null +++ b/gstudio/templates/gstudio/cms/nodetype_detail.html @@ -0,0 +1,8 @@ +{% load i18n %} +{% for nodetype in nodetypes %} + {% with object=nodetype object_content=nodetype.html_content|truncatewords_html:100|safe %} + {% include "gstudio/_nodetype_detail.html" %} + {% endwith %} +{% empty %} +

    {% trans "No node types yet." %}

    +{% endfor %} diff --git a/gstudio/templates/gstudio/cms/nodetype_list.html b/gstudio/templates/gstudio/cms/nodetype_list.html new file mode 100644 index 00000000..5b7806b3 --- /dev/null +++ b/gstudio/templates/gstudio/cms/nodetype_list.html @@ -0,0 +1,12 @@ +{% load i18n %} + diff --git a/gstudio/templates/gstudio/cms/random_nodetypes.html b/gstudio/templates/gstudio/cms/random_nodetypes.html new file mode 100644 index 00000000..a3ae25c1 --- /dev/null +++ b/gstudio/templates/gstudio/cms/random_nodetypes.html @@ -0,0 +1,4 @@ +{% load gstudio_tags %} + +{% get_random_nodetypes number_of_nodetypes template_to_render %} + diff --git a/gstudio/templates/gstudio/graph1.html b/gstudio/templates/gstudio/graph1.html new file mode 100644 index 00000000..587b703b --- /dev/null +++ b/gstudio/templates/gstudio/graph1.html @@ -0,0 +1,347 @@ + + + + + Objecttype Force-Directed Graph + + + + + + + + + + +
    +
    + + +
    +
    + + + + + + + + + + + + + +
    + +
    + + + diff --git a/gstudio/templates/gstudio/login.html b/gstudio/templates/gstudio/login.html new file mode 100644 index 00000000..690d0bea --- /dev/null +++ b/gstudio/templates/gstudio/login.html @@ -0,0 +1,40 @@ +{% extends "gstudio/base.html" %} +{% load i18n %} + +{% block title %}{% trans "Login required" %}{% endblock %} + +{% block content %} +

    {% trans "Login required" %}

    + +
    + {% if form.errors %} +

    + {% trans "Your username and password didn't match. Please try again." %} +

    + {% endif %} +

    + {% trans "You need to be connected to view this nodetype." %} +

    + +
    + {% csrf_token %} + + + + + + + + + + + + +
    {{ form.username.label_tag }}{{ form.username }}
    {{ form.password.label_tag }}{{ form.password }}
    + + +
    +
    +
    +{% endblock %} + diff --git a/gstudio/templates/gstudio/metatype/nodetype_list.html b/gstudio/templates/gstudio/metatype/nodetype_list.html new file mode 100644 index 00000000..54b89147 --- /dev/null +++ b/gstudio/templates/gstudio/metatype/nodetype_list.html @@ -0,0 +1 @@ +{% extends "gstudio/nodetype_list.html" %} diff --git a/gstudio/templates/gstudio/metatype_list.html b/gstudio/templates/gstudio/metatype_list.html new file mode 100644 index 00000000..bff38428 --- /dev/null +++ b/gstudio/templates/gstudio/metatype_list.html @@ -0,0 +1,25 @@ +{% extends "gstudio/base.html" %} +{% load i18n mptt_tags %} + +{% block meta-description %}{% trans "Metatype list" %}{% endblock %} + +{% block title %}{% trans "Metatypes" %}{% endblock %} + +{% block content %} +

    {% trans "Metatype list" %}

    +
    + {% for object, structure in object_list|tree_info %} + {% if structure.new_level %}{% endfor %} + {% empty %} + + {% endfor %} +
    +{% endblock %} diff --git a/gstudio/templates/gstudio/nodetype_archive.html b/gstudio/templates/gstudio/nodetype_archive.html new file mode 100644 index 00000000..2054cc4c --- /dev/null +++ b/gstudio/templates/gstudio/nodetype_archive.html @@ -0,0 +1,30 @@ +{% extends "gstudio/nodetype_list.html" %} +{% load i18n gstudio_tags %} + +{% block meta-description %}{% trans "Latest nodetypes" %}{% endblock %} + +{% block link %} + {{ block.super }} + +{% endblock %} + +{% block script %} + {{ block.super }} + + + +{% endblock %} + +{% block title %}{% trans "Latest nodetypes" %}{% endblock %} + +{% block content %} +{% get_featured_nodetypes 5 "gstudio/tags/slider_nodetypes.html" %} +{{ block.super }} +{% endblock %} diff --git a/gstudio/templates/gstudio/nodetype_archive_day.html b/gstudio/templates/gstudio/nodetype_archive_day.html new file mode 100644 index 00000000..d95391ff --- /dev/null +++ b/gstudio/templates/gstudio/nodetype_archive_day.html @@ -0,0 +1,23 @@ +{% extends "gstudio/nodetype_list.html" %} +{% load i18n %} + +{% block meta-description %}{% trans "Archives" %} {{ day|date:"DATE_FORMAT" }}{% endblock %} + +{% block title %}{% trans "Archives" %} {{ day|date:"DATE_FORMAT" }}{% endblock %} + +{% block content %} +

    {% trans "Archives" %} {{ day|date:"DATE_FORMAT" }}

    + +{{ block.super }} + + +{% endblock %} diff --git a/gstudio/templates/gstudio/nodetype_archive_month.html b/gstudio/templates/gstudio/nodetype_archive_month.html new file mode 100644 index 00000000..e09d0d7e --- /dev/null +++ b/gstudio/templates/gstudio/nodetype_archive_month.html @@ -0,0 +1,31 @@ +{% extends "gstudio/nodetype_list.html" %} +{% load i18n %} + +{% block meta-description %}{% trans "Archives" %} {{ month|date:"YEAR_MONTH_FORMAT" }}{% endblock %} + +{% block title %}{% trans "Archives" %} {{ month|date:"YEAR_MONTH_FORMAT" }}{% endblock %} + +{% block content %} +

    {% trans "Archives" %} {{ month|date:"YEAR_MONTH_FORMAT" }}

    + +{{ block.super }} + +

    {% trans "Daily archives" %}

    + + +{% endblock %} diff --git a/gstudio/templates/gstudio/nodetype_archive_year.html b/gstudio/templates/gstudio/nodetype_archive_year.html new file mode 100644 index 00000000..62e3cf98 --- /dev/null +++ b/gstudio/templates/gstudio/nodetype_archive_year.html @@ -0,0 +1,21 @@ +{% extends "gstudio/nodetype_list.html" %} +{% load i18n %} + +{% block meta-description %}{% trans "Archives" %} {{ year }}{% endblock %} + +{% block title %}{% trans "Archives" %} {{ year }}{% endblock %} + +{% block content %} +

    {% trans "Archives" %} {{ year }}

    + +{{ block.super }} + +

    {% trans "Monthly archives" %}

    + +{% endblock %} diff --git a/gstudio/templates/gstudio/nodetype_detail.html b/gstudio/templates/gstudio/nodetype_detail.html new file mode 100644 index 00000000..774b6888 --- /dev/null +++ b/gstudio/templates/gstudio/nodetype_detail.html @@ -0,0 +1,357 @@ +{% extends "gstudio/base.html" %} +{% load i18n comments gstudio_tags %} + +{% block title %}{{ object.title }}{% endblock %} + +{% block meta-description %}{% if object.excerpt %}{{ object.excerpt|striptags }}{% else %}{{ object.content|striptags|truncatewords:100 }}{% endif %}{% endblock %} + +{% block meta-keywords %}{% if object.tags %}{{ object.tags }}{% else %}{{ block.super }}{% endif %}{% endblock %} + + +{% block link %} + {{ block.super }} + {% with object.previous_nodetype as previous_nodetype %}{% if previous_nodetype %} + + {% endif %}{% endwith %} + {% with object.next_nodetype as next_nodetype %}{% if next_nodetype %} + + {% endif %}{% endwith %} + + + {% with year=object.creation_date|date:"Y" month=object.creation_date|date:"m" day=object.creation_date|date:"d" %} + + + + + {% endwith %} +{% endblock %} + + +{% block content %} + + +{% block nodetype-content %} + {% with object.html_content|safe as object_content %} + + + Name: {{ object.title }}
    + + {% if object.get_rendered_nbh.plural %} + Plural Name: + {{object.get_rendered_nbh.plural}}
    + {% endif %} + {% if object.get_rendered_nbh.altnames %} + Alternate names: + {{object.get_rendered_nbh.altnames}}
    + {% endif %} + {% if object.get_rendered_nbh.type_of %} + Type of: + {% for typekey,typevalue in object.get_rendered_nbh.type_of.items %} + {{typekey}}; + {% endfor %}
    + {% endif %} + + + {% if object.get_rendered_nbh.member_of_metatypes %} + + + Member of Metatypes: + {% for mkey,mvalue in object.get_rendered_nbh.member_of_metatypes.items %} + {{mkey}}; + {% endfor %}
    + {% endif %} + + + + {% if object.get_rendered_nbh.contains_subtypes %} + Contains SubTypes: + {% for stkey,stvalue in object.get_rendered_nbh.contains_subtypes.items %} + {{stkey}}; + {% endfor %}
    + {% endif %} + + + {% if object.get_rendered_nbh.contains_members %} + + + Contains Members: + {% for mkey,mvalue in object.get_rendered_nbh.contains_members.items %} + {{mkey}}; + {% endfor %}
    + {% endif %} + + + {% if object.get_rendered_nbh.authors %} + + + + Authors: + + + {% endif %} + + {% for author in object.authors.all %} + + + {% if not forloop.last %}, {% endif %} + {% endfor %}
    + + {% if object.get_rendered_nbh.siblings %} + + + Siblings: + + {% for sibkey,sibvalue in object.get_rendered_nbh.siblings.items %} + {{sibkey}}; + + {% endfor %}
    + {% endif %} + + {% if object.get_rendered_nbh.priornodes %} + + + Priornodes: + {% for mkey,mvalue in object.get_rendered_nbh.priornodes.items %} + {{mkey}}; + {% endfor %}
    + {% endif %} + + {% if object.get_rendered_nbh.posteriornodes %} + + + Posterior nodes: + {% for mkey,mvalue in object.get_rendered_nbh.posteriornodes.items %} + {{mkey}}; + {% endfor %}
    + {% endif %} + + {% if object.get_rendered_nbh.relations %} + + + {% for relkey,relvalue in object.get_rendered_nbh.relations.items %} + {{relkey}}: + {% for relk, relv in relvalue.items %} + {{relk}}; + {% endfor %}
    + {% endfor %} + {% endif %} + + {% if object.get_rendered_nbh.attributes %} + + + + Attributes: + + {% for items in object.get_rendered_nbh.attributes.items %} + {{items}}; + {% endfor %}
    + {% endif %} + {% if object.get_rendered_nbh.leftroles %} + + + Left roles: + + {% for lrkey,lrvalue in object.get_rendered_nbh.leftroles.items %} + {{lrkey}}; + {% endfor %}
    + {% endif %} + + {% if object.get_rendered_nbh.rightroles %} + + Right roles: + + {% for rrkey,rrvalue in object.get_rendered_nbh.rightroles.items %} + {{rrkey}}; + {% endfor %}
    + {% endif %} + + + {% if object.get_rendered_nbh.ats %} + + + Attribute Types: + + {% for atkey,atvalue in object.get_rendered_nbh.ats.items %} + {{atkey}}; + {% endfor %}
    + {% endif %} + + + + + + {% endwith %} + {% endblock %} + + + +{% block nodetype-widgets %} +
    {% with object.next_nodetype as next_nodetype %} + {% if object.posteriornodes.all %} +
    +
    {% trans "Posterior node" %}
    + {% for items in object.posteriornodes.all %} + {{ items.title }}; + {% endfor %} +
    + {% endif %} + {% endwith %} + + {% if object.priornodes.all %} +
    +
    {% trans "Prior node" %}
    + {% for items in object.priornodes.all %} + {{ items.title }}; + {% endfor %} +
    + {% endif %} + {% endwith %} + {% if object.related_published %} + + {% endif %} +
    +{% endblock %} + +{% block nodetype-comments %} +
    +
    {% trans "Comments" %}
    + {% with object.comments as comment_list %} + {% if comment_list.count %} +
      + {% for comment in comment_list %} + + {% endfor %} +
    + {% if not object.comments_are_open %} +

    {% trans "Comments are closed." %}

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

    {% trans "No comments yet." %}

    + {% else %} +

    {% trans "Comments are closed." %}

    + {% endif %} + {% endif %} + {% endwith %} +
    +{% endblock %} + +{% block nodetype-pingbacks %} +
    +
    {% trans "Pingbacks" %}
    + {% with object.pingbacks as pingback_list %} + {% if pingback_list.count %} +
      + {% for pingback in pingback_list %} +
    1. +
      +
      + {{ pingback.user_name }} + {% trans "on" %} {{ pingback.submit_date|date:"SHORT_DATETIME_FORMAT" }} +
      +
      + + {{ pingback.comment }} + +
      +
      +
    2. + {% endfor %} +
    + {% endif %} + {% if object.pingback_enabled %} +

    {% trans "Pingbacks are open." %}

    + {% else %} +

    {% trans "Pingbacks are closed." %}

    + {% endif %} + {% endwith %} +
    +{% endblock %} + +{% block nodetype-trackbacks %} +{% with object.trackbacks as trackback_list %} +{% if trackback_list.count or object.pingback_enabled %} +
    +
    {% trans "Trackbacks" %}
    + {% if trackback_list.count %} +
      + {% for trackback in trackback_list %} +
    1. +
      +
      + {{ trackback.user_name }} + {% trans "on" %} {{ trackback.submit_date|date:"SHORT_DATETIME_FORMAT" }} +
      +
      + + {{ trackback.comment }} + +
      +
      +
    2. + {% endfor %} +
    + {% endif %} + {% if object.pingback_enabled %} +

    + + {% trans "Trackback URL" %} +

    + {% endif %} +
    +{% endif %} +{% endwith %} +{% endblock %} + +{% block nodetype-comments-form %} +{% if object.comments_are_open %} +
    + {% render_comment_form for object %} +
    +{% endif %} +{% endblock %} + +{% endblock %} + +{% block admin_tools %} +{% if perms.gstudio.change_nodetype %} +
  • + + {% trans "Edit the node type" %} + +
  • +{% endif %} +{% endblock %} diff --git a/gstudio/templates/gstudio/nodetype_list.html b/gstudio/templates/gstudio/nodetype_list.html new file mode 100644 index 00000000..f4f75bd3 --- /dev/null +++ b/gstudio/templates/gstudio/nodetype_list.html @@ -0,0 +1,143 @@ +{% extends "gstudio/base.html" %} +{% load i18n gstudio_tags %} + +{% block meta-description %}{% trans "Latest nodetypes for" %} {% if metatype %}{% trans "the metatype" %} {{ metatype }}{% if metatype.description %}: {{ metatype.description|striptags|safe }}{% endif %}{% endif %}{% if tag %}{% trans "the tag" %} {{ tag }}{% endif %}{% if author %}{% trans "the author" %} {{ author }}{% endif %}{% if page_obj %}{% ifnotequal page_obj.number 1 %} {% trans "page" %} {{ page_obj.number }}{% endifnotequal %}{% endif %}{% endblock %} + +{% block link %} + {{ block.super }} + {% if metatype %} + + {% endif %} + {% if tag %} + + {% endif %} + {% if author %} + + {% endif %} +{% endblock %} + +{% block title %}{% trans "Latest nodetypes" %} {% if metatype %}| {% trans "Metatype" %} {{ metatype }}{% endif %}{% if tag %}| {% trans "Tag" %} {{ tag }}{% endif %}{% if author %}| {% trans "Author" %} {{ author }}{% endif %}{% if page_obj %}{% ifnotequal page_obj.number 1 %} | {% trans "Page" %} {{ page_obj.number }}{% endifnotequal %}{% endif %}{% endblock %} + +{% block content %} +{% if metatype %} +

    {{ metatype.title }}

    +
    {{ metatype.composed_sentence }}
    + + Name: {{ metatype.title }}
    + + {% if metatype.altnames %} + Alternate names: + {% endif %} + {{ metatype.altnames }}
    + + {% if object.plural %} + Plural Name: {{ metatype.plural }}
    + {% endif %} + + {% if object.parent %} + Type of: + {{ metatype.parent.title }}
    + {% endif %} + + {% if metatype.get_children %} + SubTypes: + {% for items in metatype.get_children %} + {{ items.title }}; + {% endfor %}
    + {% endif %} + + {% if metatype.get_siblings %} + Siblings: + {% for items in metatype.get_siblings %} + {{ items.title }}; + {% endfor %}
    + {% endif %} + + {% if metatype.metatypes.all %} + Member of Metatypes: + {% for items in metatype.metatypes.all %} + {{ items.title }}; + {% endfor %}
    + {% endif %} + + {% if metatype.nodetypes.all %} + Contains member node types: + {% for items in metatype.nodetypes.all %} + {{ items.title }}; + {% endfor %}
    + {% endif %} + + {% if metatype.subjecttypeLeft_gbnodetype.all %} + Left role of relation types: + {% for items in metatype.subjecttypeLeft_gbnodetype.all %} + {{ items.title }}; + {% endfor %}
    + {% endif %} + + {% if metatype.subjecttypeRight_gbnodetype.all %} + Right role of relation types: + {% for items in metatype.subjecttypeRight_gbnodetype.all %} + {{ items.title }}; + {% endfor %}
    + {% endif %} + + {% if metatype.subjecttype_GbnodeType.all %} + As domain of attribute types: + {% for items in metatype.subjecttype_GbnodeType.all %} + {{ items.title }}; + {% endfor %}
    + {% endif %} + + + + +{% if metatype.description %} +

    {{ metatype.description|striptags|safe }}

    +{% endif %} +{% endif %} + +{% if tag %} +

    {% trans "Tag" %} : {{ tag }}

    +{% endif %} + +{% if author %} +

    {% blocktrans with author.username as author %}Nodetypes by {{ author }}{% endblocktrans %}

    +{% endif %} + +{% for object in object_list %} + {% with object.html_content|truncatewords_html:100|safe as object_content %} + {% include "gstudio/_nodetype_detail.html" %} + {% endwith %} +{% empty %} +

    {% trans "No nodes in the network yet. Login and construct a network!" %}

    +{% endfor %} + +{% if is_paginated %} + {% gstudio_pagination page_obj %} +{% endif %} +{% endblock %} + +{% block admin_tools %} + {% if metatype and perms.gstudio.change_metatype %} +
  • + + {% trans "Edit the metatype" %} + +
  • + {% endif %} + {% if tag and perms.tagging.change_tag %} +
  • + + {% trans "Edit the tag" %} + +
  • + {% endif %} + {% if author and perms.auth.change_user %} +
  • + + {% trans "Edit the author" %} + +
  • + {% endif %} +{% endblock %} + diff --git a/gstudio/templates/gstudio/nodetype_search.html b/gstudio/templates/gstudio/nodetype_search.html new file mode 100644 index 00000000..7fbc53db --- /dev/null +++ b/gstudio/templates/gstudio/nodetype_search.html @@ -0,0 +1,49 @@ +{% extends "gstudio/nodetype_list.html" %} +{% load i18n gstudio_tags %} + +{% block title %}{% trans "Search results for" %} {% if pattern %}'{{ pattern }}'{% endif %}{% if page_obj %}{% ifnotequal page_obj.number 1 %} | {% trans "Page" %} {{ page_obj.number }}{% endifnotequal %}{% endif %}{% endblock %} + +{% block meta-description %}{% trans "Search results for" %} {% if pattern %}'{{ pattern }}'{% endif %}{% if page_obj %}{% ifnotequal page_obj.number 1 %} {% trans "page" %} {{ page_obj.number }}{% endifnotequal %}{% endif %}{% endblock %} + +{% block link %} + {{ block.super }} + +{% endblock %} + +{% block content %} +

    {% trans "Search results for" %} {% if pattern %}'{{ pattern }}'{% endif %}

    + +{% if error %} +

    {{ error }}

    +{% endif %} + +{% if object_list %} +

    + {% blocktrans count paginator.count as nodetype_count %}{{ nodetype_count }} nodetype found{% plural %}{{ nodetype_count }} nodetypes found{% endblocktrans %} +

    +{% endif %} + +{% for object in object_list %} + {% with object.html_content|truncatewords_html:100|safe as object_content %} + {% include "gstudio/_nodetype_detail.html" %} + {% endwith %} +{% empty %} +

    {% trans "Nothing found." %}

    +{% endfor %} + + + +{% if is_paginated %} + {% gstudio_pagination page_obj %} +{% endif %} +{% endblock %} diff --git a/gstudio/templates/gstudio/nodetype_trackback.xml b/gstudio/templates/gstudio/nodetype_trackback.xml new file mode 100644 index 00000000..66dbbb73 --- /dev/null +++ b/gstudio/templates/gstudio/nodetype_trackback.xml @@ -0,0 +1,9 @@ + + + {% if not error %} + 0 + {% else %} + 1 + {{ error }} + {% endif %} + diff --git a/gstudio/templates/gstudio/opensearch.xml b/gstudio/templates/gstudio/opensearch.xml new file mode 100644 index 00000000..d0d1af2a --- /dev/null +++ b/gstudio/templates/gstudio/opensearch.xml @@ -0,0 +1,24 @@ + +{% load gstudio_tags %} +{% get_tags as nodetype_tags %} + + {{ site.name }} + {{ site.name }} - web search + Make a search on {{ site.name }}. + {{ copyright }} + {{ nodetype_tags|slice:":15"|join:" " }} + + + + {{ STATIC_URL }}gstudio/img/favicon.ico + + gnowgi + nagarjun@gnowledge.org + open + false + {{ LANGUAGE_CODE }} + UTF-8 + UTF-8 + {{ protocol }}://{{ site.domain }}/ + diff --git a/gstudio/templates/gstudio/password.html b/gstudio/templates/gstudio/password.html new file mode 100644 index 00000000..a5d0d820 --- /dev/null +++ b/gstudio/templates/gstudio/password.html @@ -0,0 +1,35 @@ +{% extends "gstudio/base.html" %} +{% load i18n %} + +{% block title %}{% trans "Password required" %}{% endblock %} + +{% block content %} +

    {% trans "Password required" %}

    + +
    + {% if error %} +

    + {% trans "The password provided is not valid. Please try again." %} +

    + {% endif %} +

    + {% trans "You need to provide a password to view this nodetype." %} +

    + +
    + {% csrf_token %} + + + + + + + + +
    + +
    +
    +
    +{% endblock %} + diff --git a/gstudio/templates/gstudio/rsd.xml b/gstudio/templates/gstudio/rsd.xml new file mode 100644 index 00000000..a2df0ddd --- /dev/null +++ b/gstudio/templates/gstudio/rsd.xml @@ -0,0 +1,16 @@ + + + + Django Blog Gstudio {{ GSTUDIO_VERSION }} + http://github.com/gnowgi/django-gstudio + {{ protocol }}://{{ site.domain }}/ + + + + http://www.xmlrpc.com/metaWeblogApi + MetaWeblog API support + Blogger API partial support + + + + + diff --git a/gstudio/templates/gstudio/sitemap.html b/gstudio/templates/gstudio/sitemap.html new file mode 100644 index 00000000..05edac9e --- /dev/null +++ b/gstudio/templates/gstudio/sitemap.html @@ -0,0 +1,70 @@ +{% extends "gstudio/base.html" %} +{% load i18n gstudio_tags mptt_tags %} + +{% block title %}{% trans "Sitemap" %}{% endblock %} + +{% block content %} +

    {% trans "Sitemap" %}

    + +
    +

    {% trans "Nodetypes per metatypes" %}

    + {% for metatype in metatypes %} +

    {{ metatype }}

    + + {% endfor %} +
    + +
    +

    {% trans "All the nodetypes" %}

    + +
    + +
    +

    {% trans "Metatypes" %}

    + {% for metatype, structure in metatypes|tree_info %} + {% if structure.new_level %}{% endfor %} + {% empty %} + + {% endfor %} +
    + +
    +

    {% trans "Monthly archives" %}

    + {% get_archives_nodetypes %} +
    +{% endblock %} diff --git a/gstudio/templates/gstudio/skeleton.html b/gstudio/templates/gstudio/skeleton.html new file mode 100644 index 00000000..a54988b7 --- /dev/null +++ b/gstudio/templates/gstudio/skeleton.html @@ -0,0 +1,451 @@ +{% load gstudio_tags i18n %} +{% get_tags as nodetype_tags %} +{% load adminmedia grp_tags %} + + + + + + {% block blockbots %} + + {% endblock %} + {% block stylesheets %} + + {% if LANGUAGE_BIDI %} + + {% endif %} + + + {% endblock %} + {% block extrastyle %}{% endblock %} + {% block javascripts %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% block extrahead %}{% endblock %} + + {% endblock %} + + + + + + + + {% block meta %}{% endblock %} + + + + + + + + + {% block link %}{% endblock %} + {% block script %}{% endblock %} Gnowledge Studio - {% block title %}{% endblock %} + + +
    +
    + +
    + +
    + + + + + + + + +
    +
    +
    + {% include "gstudio/_header.html" %} + +
    +
    + {% block content %}

    The content block need to be overrided!

    + {% endblock %} +
    + + + + + + diff --git a/gstudio/templates/gstudio/tag/nodetype_list.html b/gstudio/templates/gstudio/tag/nodetype_list.html new file mode 100644 index 00000000..54b89147 --- /dev/null +++ b/gstudio/templates/gstudio/tag/nodetype_list.html @@ -0,0 +1 @@ +{% extends "gstudio/nodetype_list.html" %} diff --git a/gstudio/templates/gstudio/tag_list.html b/gstudio/templates/gstudio/tag_list.html new file mode 100644 index 00000000..eeac3eae --- /dev/null +++ b/gstudio/templates/gstudio/tag_list.html @@ -0,0 +1,24 @@ +{% extends "gstudio/base.html" %} +{% load i18n %} + +{% block meta-description %}{% trans "Tag list" %}{% endblock %} + +{% block title %}{% trans "Tags" %}{% endblock %} + +{% block content %} +

    {% trans "Tag list" %}

    +
    +
      + {% for object in object_list %} +
    • + {{ object }} + {% blocktrans count object.count as nodetype_count %}{{ nodetype_count }} nodetype{% plural %}{{ nodetype_count }} nodetypes{% endblocktrans %} +
    • + {% empty %} +
    • + {% trans "No tags yet." %} +
    • + {% endfor %} +
    +
    +{% endblock %} diff --git a/gstudio/templates/gstudio/tags/archives_nodetypes.html b/gstudio/templates/gstudio/tags/archives_nodetypes.html new file mode 100644 index 00000000..2863693f --- /dev/null +++ b/gstudio/templates/gstudio/tags/archives_nodetypes.html @@ -0,0 +1,15 @@ +{% load i18n %} + diff --git a/gstudio/templates/gstudio/tags/archives_nodetypes_link.html b/gstudio/templates/gstudio/tags/archives_nodetypes_link.html new file mode 100644 index 00000000..f82ec8e6 --- /dev/null +++ b/gstudio/templates/gstudio/tags/archives_nodetypes_link.html @@ -0,0 +1,3 @@ +{% load i18n %} +{% for date in archives %} +{% endfor %} diff --git a/gstudio/templates/gstudio/tags/archives_nodetypes_tree.html b/gstudio/templates/gstudio/tags/archives_nodetypes_tree.html new file mode 100644 index 00000000..a1eee55f --- /dev/null +++ b/gstudio/templates/gstudio/tags/archives_nodetypes_tree.html @@ -0,0 +1,43 @@ +{% load i18n %} + +{% regroup archives by year as year_list %} +
      + {% for year in year_list %} +
    • + {{ year.grouper }} + {% regroup year.list by month as month_list %} + +
    • + {% empty %} +
    • + {% trans "No archives yet." %} +
    • + {% endfor %} +
    + + diff --git a/gstudio/templates/gstudio/tags/authors.html b/gstudio/templates/gstudio/tags/authors.html new file mode 100644 index 00000000..1ce1af27 --- /dev/null +++ b/gstudio/templates/gstudio/tags/authors.html @@ -0,0 +1,15 @@ +{% load i18n %} + +
      + {% for author in authors %} +
    • + {{ author.username }} + {% blocktrans count author.nodetypes_published.count as nodetype_count %}{{ nodetype_count }} nodetype{% plural %}{{ nodetype_count }} nodetypes{% endblocktrans %} +
    • + {% empty %} +
    • + {% trans "No authors yet." %} +
    • + {% endfor %} +
    diff --git a/gstudio/templates/gstudio/tags/breadcrumbs.html b/gstudio/templates/gstudio/tags/breadcrumbs.html new file mode 100644 index 00000000..c7a5361a --- /dev/null +++ b/gstudio/templates/gstudio/tags/breadcrumbs.html @@ -0,0 +1,7 @@ +{% for crumb in breadcrumbs %} +{% if not forloop.last %} +{{ crumb.name }} {{ separator }} +{% else %} + {{ crumb.name }} +{% endif %} +{% endfor %} diff --git a/gstudio/templates/gstudio/tags/calendar.html b/gstudio/templates/gstudio/tags/calendar.html new file mode 100644 index 00000000..bf6e999f --- /dev/null +++ b/gstudio/templates/gstudio/tags/calendar.html @@ -0,0 +1,17 @@ +{{ calendar|safe }} +
    +
    + {% if previous_month %} + + << {{ previous_month|date:"YEAR_MONTH_FORMAT" }} + + {% endif %} +
    +
    + {% if next_month %} + + {{ next_month|date:"YEAR_MONTH_FORMAT" }} >> + + {% endif %} +
    +
    diff --git a/gstudio/templates/gstudio/tags/dummy.html b/gstudio/templates/gstudio/tags/dummy.html new file mode 100644 index 00000000..f04fcf55 --- /dev/null +++ b/gstudio/templates/gstudio/tags/dummy.html @@ -0,0 +1 @@ +{% extends template %} diff --git a/gstudio/templates/gstudio/tags/featured_nodetypes.html b/gstudio/templates/gstudio/tags/featured_nodetypes.html new file mode 100644 index 00000000..5b7806b3 --- /dev/null +++ b/gstudio/templates/gstudio/tags/featured_nodetypes.html @@ -0,0 +1,12 @@ +{% load i18n %} +
      + {% for nodetype in nodetypes %} +
    • + {{ nodetype.title }} +
    • + {% empty %} +
    • + {% trans "No nodetypes yet." %} +
    • + {% endfor %} +
    diff --git a/gstudio/templates/gstudio/tags/metatypes.html b/gstudio/templates/gstudio/tags/metatypes.html new file mode 100644 index 00000000..745dce0c --- /dev/null +++ b/gstudio/templates/gstudio/tags/metatypes.html @@ -0,0 +1,16 @@ +{% load i18n mptt_tags %} + +{% for metatype, structure in metatypes|tree_info %} + {% if structure.new_level %}
    • {% else %}
    • {% endif %} + {{ metatype.title }} + {% blocktrans count metatype.nodetypes_published.count as nodetype_count %}{{ nodetype_count }} nodetype{% plural %}{{ nodetype_count }} nodetypes{% endblocktrans %} + {% for level in structure.closed_levels %}
    {% endfor %} + {% empty %} +
      +
    • + {% trans "No metatypes yet." %} +
    • +
    +{% endfor %} + + diff --git a/gstudio/templates/gstudio/tags/nodetypes.html b/gstudio/templates/gstudio/tags/nodetypes.html new file mode 100644 index 00000000..722c201e --- /dev/null +++ b/gstudio/templates/gstudio/tags/nodetypes.html @@ -0,0 +1,16 @@ +{% load i18n mptt_tags %} + +{% for nodetype, structure in nodetypes|tree_info %} + {% if structure.new_level %}
    • {% else %}
    • {% endif %} + {{ nodetype.title }} + {% blocktrans count nodetypes.gbobjects_published.count as gbobjects_count %}{{ gbobjects_count }} gbobject{% plural %}{{ gbobjects_count }} gbobjects{% endblocktrans %} + + {% empty %} +
        +
      • + {% trans "No subtypes yet." %} +
      • +
      +{% endfor %} + + diff --git a/gstudio/templates/gstudio/tags/pagination.html b/gstudio/templates/gstudio/tags/pagination.html new file mode 100644 index 00000000..ac54a75e --- /dev/null +++ b/gstudio/templates/gstudio/tags/pagination.html @@ -0,0 +1,59 @@ +{% load i18n %} +
      + + {% blocktrans with page.number as current_page and page.paginator.num_pages as total_page %}Page {{ current_page }} of {{ total_page }}{% endblocktrans %} + + + {% if page.has_previous %} + + « + + {% endif %} + + {% for page_number in begin %} + + {% ifequal page.number page_number %} + {{ page_number }} + {% else %} + {{ page_number }} + {% endifequal%} + + {% endfor %} + + {% if middle %} + + {% for page_number in middle %} + + {% ifequal page.number page_number %} + {{ page_number }} + {% else %} + {{ page_number }} + {% endifequal%} + + {% endfor %} + {% endif %} + + {% if end %} + + {% for page_number in end %} + + {% ifequal page.number page_number %} + {{ page_number }} + {% else %} + {{ page_number }} + {% endifequal%} + + {% endfor %} + {% endif %} + + {% if page.has_next %} + + » + + {% endif %} +
      diff --git a/gstudio/templates/gstudio/tags/popular_nodetypes.html b/gstudio/templates/gstudio/tags/popular_nodetypes.html new file mode 100644 index 00000000..2b3112b9 --- /dev/null +++ b/gstudio/templates/gstudio/tags/popular_nodetypes.html @@ -0,0 +1,16 @@ +{% load i18n %} + diff --git a/gstudio/templates/gstudio/tags/random_nodetypes.html b/gstudio/templates/gstudio/tags/random_nodetypes.html new file mode 100644 index 00000000..5b7806b3 --- /dev/null +++ b/gstudio/templates/gstudio/tags/random_nodetypes.html @@ -0,0 +1,12 @@ +{% load i18n %} +
        + {% for nodetype in nodetypes %} +
      • + {{ nodetype.title }} +
      • + {% empty %} +
      • + {% trans "No nodetypes yet." %} +
      • + {% endfor %} +
      diff --git a/gstudio/templates/gstudio/tags/recent_comments.html b/gstudio/templates/gstudio/tags/recent_comments.html new file mode 100644 index 00000000..9e87c6fc --- /dev/null +++ b/gstudio/templates/gstudio/tags/recent_comments.html @@ -0,0 +1,20 @@ +{% load i18n %} + +
        + {% for comment in comments %} +
      • + {% with comment.content_object as nodetype %} + {{ comment.user_name }} {% trans "on" %} + + {{ nodetype.title }} + + {% endwith %} +
      • + {% empty %} +
      • + {% trans "No comments yet." %} +
      • + {% endfor %} +
      + diff --git a/gstudio/templates/gstudio/tags/recent_linkbacks.html b/gstudio/templates/gstudio/tags/recent_linkbacks.html new file mode 100644 index 00000000..382e53cc --- /dev/null +++ b/gstudio/templates/gstudio/tags/recent_linkbacks.html @@ -0,0 +1,21 @@ +{% load i18n %} + + + diff --git a/gstudio/templates/gstudio/tags/recent_nodetypes.html b/gstudio/templates/gstudio/tags/recent_nodetypes.html new file mode 100644 index 00000000..0b1bb0a7 --- /dev/null +++ b/gstudio/templates/gstudio/tags/recent_nodetypes.html @@ -0,0 +1,20 @@ + +{% load i18n mptt_tags %} + +{% for nodetype, structure in nodetypes|tree_info %} +{% if structure.new_level %} +{% endfor %} +{% empty %} +
        +
      • + {% trans "No subtypes yet." %} +
      • +
      +{% endfor %} + diff --git a/gstudio/templates/gstudio/tags/similar_nodetypes.html b/gstudio/templates/gstudio/tags/similar_nodetypes.html new file mode 100644 index 00000000..7e933e0f --- /dev/null +++ b/gstudio/templates/gstudio/tags/similar_nodetypes.html @@ -0,0 +1,12 @@ +{% load i18n %} +
        + {% for nodetype in nodetypes %} +
      • + {{ nodetype.title }} +
      • + {% empty %} +
      • + {% trans "No similar nodetypes." %} +
      • + {% endfor %} +
      diff --git a/gstudio/templates/gstudio/tags/slider_nodetypes.html b/gstudio/templates/gstudio/tags/slider_nodetypes.html new file mode 100644 index 00000000..ccc161a3 --- /dev/null +++ b/gstudio/templates/gstudio/tags/slider_nodetypes.html @@ -0,0 +1,27 @@ +{% if nodetypes %} +
      + + + {% for nodetype in nodetypes %} +
      + {{ nodetype.title }} +
      +

      + {{ nodetype.title }} +

      + {{ nodetype.excerpt|linebreaks|truncatewords_html:20 }} +
      +
      + {% endfor %} +
      +{% endif %} diff --git a/gstudio/templates/gstudio/tags/tag_cloud.html b/gstudio/templates/gstudio/tags/tag_cloud.html new file mode 100644 index 00000000..a18a004e --- /dev/null +++ b/gstudio/templates/gstudio/tags/tag_cloud.html @@ -0,0 +1,13 @@ +{% load i18n %} + +
      +
        + {% for tag in tags %} +
      • + {{ tag }} +
      • + {% endfor %} +
      +
      diff --git a/gstudio/templates/gstudio/wlwmanifest.xml b/gstudio/templates/gstudio/wlwmanifest.xml new file mode 100644 index 00000000..73fd1c20 --- /dev/null +++ b/gstudio/templates/gstudio/wlwmanifest.xml @@ -0,0 +1,63 @@ +{% load i18n %} + + + + Metaweblog + Yes + Yes + No + Yes + Yes + Yes + Yes + Yes + Yes + Yes + Yes + Yes + Yes + Yes + Yes + Yes + Yes + No + No + No + No + No + No + No + Yes + Yes + UTF-8 + 50 + + + + {{ site.name }} Blog + {{ STATIC_URL }}gstudio/img/wlw/gstudio.png + {{ STATIC_URL }}gstudio/img/wlw/watermark.png + {% trans "View site" %} + {% trans "Admin. site" %} + + + + + + + --> + + + + diff --git a/gstudio/templates/gstudio/wxr.xml b/gstudio/templates/gstudio/wxr.xml new file mode 100644 index 00000000..557eb0dd --- /dev/null +++ b/gstudio/templates/gstudio/wxr.xml @@ -0,0 +1,125 @@ + +{% load tagging_tags %} + + + + + + + + + {{ site.name }} + {{ site_url }} + {{ description }} + {% now "r" %} + Gstudio {{ version }} + {{ language }} + 1.0 + {{ site_url }} + {{ site_url }}{% url gstudio_nodetype_archive_index %} + {% for metatype in metatypes %} + + {{ metatype.slug }} + {{ metatype.parent.title }} + + + + {% endfor %}{% for tag in tags %} + + {{ tag.name }} + + + {% endfor %}{% for nodetype in nodetypes %} + + {{ nodetype.title }} + {{ site_url }}{{ nodetype.get_absolute_url }} + {{ nodetype.publication_date|date:"r" }} + + {% for metatype in nodetype.metatypes.all %} + + {% endfor %}{% tags_for_object nodetype as tag_list %}{% for tag in tag_list %} + + {% endfor %} + {{ site_url }}{{ nodetype.get_absolute_url }} + + + + {{ nodetype.pk }} + {{ nodetype.publication_date|date:"Y-m-d H:i:s"}} + 0000-00-00 00:00:00 + {% if nodetype.comment_enabled %}open{% else %}closed{% endif %} + {% if nodetype.pingback_enabled %}open{% else %}closed{% endif %} + {{ nodetype.slug }} + {% if nodetype.is_visible %}{% if nodetype.login_required %}private{% else %}publish{% endif %}{% else %}draft{% endif %} + 0 + 0 + post + {{ nodetype.password }} + {{ nodetype.featured|yesno:"1,0" }} + + _last_update + + + + _start_publication + + + + _end_publication + + + {% for comment in nodetype.comments %} + + {{ comment.id }} + + {{ comment.userinfo.email }} + {{ comment.userinfo.url }} + {{ comment.ip_address }} + {{ comment.submit_date|date:"Y-m-d H:i:s" }} + {{ comment.submit_date|date:"Y-m-d H:i:s" }} + + 1 + + 0 + 0 + + {% endfor %}{% for comment in nodetype.pingbacks %} + + {{ comment.id }} + + {{ comment.userinfo.email }} + {{ comment.userinfo.url }} + {{ comment.ip_address }} + {{ comment.submit_date|date:"Y-m-d H:i:s" }} + {{ comment.submit_date|date:"Y-m-d H:i:s" }} + + 1 + pingback + 0 + 0 + + {% endfor %}{% for comment in nodetype.trackbacks %} + + {{ comment.id }} + + {{ comment.userinfo.email }} + {{ comment.userinfo.url }} + {{ comment.ip_address }} + {{ comment.submit_date|date:"Y-m-d H:i:s" }} + {{ comment.submit_date|date:"Y-m-d H:i:s" }} + + 1 + trackback + 0 + 0 + + {% endfor %} + + {% endfor %} + + -- cgit v1.2.3-70-g09d2