summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/tags
diff options
context:
space:
mode:
authorgnowgi <nagarjun@gnowledge.org>2012-03-15 16:19:20 +0530
committergnowgi <nagarjun@gnowledge.org>2012-03-15 16:19:20 +0530
commit7a4f561e851fdc7246d804c3abb6748b8a4199a6 (patch)
treed2afc3463fd49625a9be482012f5c3bfcf7c42b9 /gstudio/templates/gstudio/tags
downloadgnowsys-7a4f561e851fdc7246d804c3abb6748b8a4199a6.tar.gz
master trunk of gnowsys-studio
Diffstat (limited to 'gstudio/templates/gstudio/tags')
-rw-r--r--gstudio/templates/gstudio/tags/archives_nodetypes.html15
-rw-r--r--gstudio/templates/gstudio/tags/archives_nodetypes_link.html3
-rw-r--r--gstudio/templates/gstudio/tags/archives_nodetypes_tree.html43
-rw-r--r--gstudio/templates/gstudio/tags/authors.html15
-rw-r--r--gstudio/templates/gstudio/tags/breadcrumbs.html7
-rw-r--r--gstudio/templates/gstudio/tags/calendar.html17
-rw-r--r--gstudio/templates/gstudio/tags/dummy.html1
-rw-r--r--gstudio/templates/gstudio/tags/featured_nodetypes.html12
-rw-r--r--gstudio/templates/gstudio/tags/metatypes.html16
-rw-r--r--gstudio/templates/gstudio/tags/nodetypes.html16
-rw-r--r--gstudio/templates/gstudio/tags/pagination.html59
-rw-r--r--gstudio/templates/gstudio/tags/popular_nodetypes.html16
-rw-r--r--gstudio/templates/gstudio/tags/random_nodetypes.html12
-rw-r--r--gstudio/templates/gstudio/tags/recent_comments.html20
-rw-r--r--gstudio/templates/gstudio/tags/recent_linkbacks.html21
-rw-r--r--gstudio/templates/gstudio/tags/recent_nodetypes.html20
-rw-r--r--gstudio/templates/gstudio/tags/similar_nodetypes.html12
-rw-r--r--gstudio/templates/gstudio/tags/slider_nodetypes.html27
-rw-r--r--gstudio/templates/gstudio/tags/tag_cloud.html13
19 files changed, 345 insertions, 0 deletions
diff --git a/gstudio/templates/gstudio/tags/archives_nodetypes.html b/gstudio/templates/gstudio/tags/archives_nodetypes.html
new file mode 100644
index 0000000..2863693
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/archives_nodetypes.html
@@ -0,0 +1,15 @@
+{% load i18n %}
+<ul>
+ {% for date in archives %}
+ <li>
+ <a title="{% trans "Archives" %} {{ date|date:"YEAR_MONTH_FORMAT" }}" rel="archives"
+ href="{% url gstudio_nodetype_archive_month date|date:"Y" date|date:"m" %}">
+ {{ date|date:"YEAR_MONTH_FORMAT" }}
+ </a>
+ </li>
+ {% empty %}
+ <li>
+ {% trans "No archives yet." %}
+ </li>
+ {% endfor %}
+</ul>
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 0000000..f82ec8e
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/archives_nodetypes_link.html
@@ -0,0 +1,3 @@
+{% load i18n %}
+{% for date in archives %}<link rel="archives" title="{% trans "Archives" %} {{ date|date:"YEAR_MONTH_FORMAT" }}" href="{% url gstudio_nodetype_archive_month date|date:"Y" date|date:"m" %}" />
+{% 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 0000000..a1eee55
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/archives_nodetypes_tree.html
@@ -0,0 +1,43 @@
+{% load i18n %}
+
+{% regroup archives by year as year_list %}
+<ul>
+ {% for year in year_list %}
+ <li>
+ <a title="{% trans "Archives" %} {{ year.grouper }}" rel="archives"
+ href="{% url gstudio_nodetype_archive_year year.grouper %}">{{ year.grouper }}</a>
+ {% regroup year.list by month as month_list %}
+ <ul>
+ {% for month in month_list %}
+ <li>
+ {% with month.list.0 as month_date %}
+ <a title="{% trans "Archives" %} {{ month_date|date:"YEAR_MONTH_FORMAT" }}" rel="archives"
+ href="{% url gstudio_nodetype_archive_month month_date|date:"Y" month_date|date:"m" %}">
+ {{ month_date|date:"F" }}
+ </a>
+ {% endwith %}
+ {% regroup month.list by day as day_list %}
+ <ul>
+ {% for day in day_list %}
+ <li>
+ {% with day.list.0 as day_date %}
+ <a title="{% trans "Archives" %} {{ day_date|date:"DATE_FORMAT" }}" rel="archives"
+ href="{% url gstudio_nodetype_archive_day day_date|date:"Y" day_date|date:"m" day_date|date:"d" %}">
+ {{ day_date|date:"MONTH_DAY_FORMAT" }}
+ </a>
+ {% endwith %}
+ </li>
+ {% endfor %}
+ </ul>
+ </li>
+ {% endfor %}
+ </ul>
+ </li>
+ {% empty %}
+ <li>
+ {% trans "No archives yet." %}
+ </li>
+ {% endfor %}
+</ul>
+
+
diff --git a/gstudio/templates/gstudio/tags/authors.html b/gstudio/templates/gstudio/tags/authors.html
new file mode 100644
index 0000000..1ce1af2
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/authors.html
@@ -0,0 +1,15 @@
+{% load i18n %}
+
+<ul>
+ {% for author in authors %}
+ <li class="vcard">
+ <a href="{% url gstudio_author_detail author.username %}"
+ title="{{ author.username }}" class="fn nickname url">{{ author.username }}</a>
+ {% blocktrans count author.nodetypes_published.count as nodetype_count %}{{ nodetype_count }} nodetype{% plural %}{{ nodetype_count }} nodetypes{% endblocktrans %}
+ </li>
+ {% empty %}
+ <li>
+ {% trans "No authors yet." %}
+ </li>
+ {% endfor %}
+</ul>
diff --git a/gstudio/templates/gstudio/tags/breadcrumbs.html b/gstudio/templates/gstudio/tags/breadcrumbs.html
new file mode 100644
index 0000000..c7a5361
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/breadcrumbs.html
@@ -0,0 +1,7 @@
+{% for crumb in breadcrumbs %}
+{% if not forloop.last %}
+<a href="{{ crumb.url }}" title="{{ crumb.name }}">{{ crumb.name }}</a> {{ 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 0000000..bf6e999
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/calendar.html
@@ -0,0 +1,17 @@
+{{ calendar|safe }}
+<div class="month-navigation">
+ <div class="month-previous">
+ {% if previous_month %}
+ <a href="{% url gstudio_nodetype_archive_month previous_month|date:"Y" previous_month|date:"m" %}">
+ &lt;&lt; {{ previous_month|date:"YEAR_MONTH_FORMAT" }}
+ </a>
+ {% endif %}
+ </div>
+ <div class="month-next">
+ {% if next_month %}
+ <a href="{% url gstudio_nodetype_archive_month next_month|date:"Y" next_month|date:"m" %}">
+ {{ next_month|date:"YEAR_MONTH_FORMAT" }} &gt;&gt;
+ </a>
+ {% endif %}
+ </div>
+</div>
diff --git a/gstudio/templates/gstudio/tags/dummy.html b/gstudio/templates/gstudio/tags/dummy.html
new file mode 100644
index 0000000..f04fcf5
--- /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 0000000..5b7806b
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/featured_nodetypes.html
@@ -0,0 +1,12 @@
+{% load i18n %}
+<ul>
+ {% for nodetype in nodetypes %}
+ <li>
+ <a href="{{ nodetype.get_absolute_url }}" title="{{ nodetype.title }}" rel="bookmark">{{ nodetype.title }}</a>
+ </li>
+ {% empty %}
+ <li>
+ {% trans "No nodetypes yet." %}
+ </li>
+ {% endfor %}
+</ul>
diff --git a/gstudio/templates/gstudio/tags/metatypes.html b/gstudio/templates/gstudio/tags/metatypes.html
new file mode 100644
index 0000000..745dce0
--- /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 %}<ul><li>{% else %}</li><li>{% endif %}
+ <a href="{{ metatype.get_absolute_url }}" title="{{ metatype.title }}">{{ metatype.title }}</a>
+ {% blocktrans count metatype.nodetypes_published.count as nodetype_count %}{{ nodetype_count }} nodetype{% plural %}{{ nodetype_count }} nodetypes{% endblocktrans %}
+ {% for level in structure.closed_levels %}</li></ul>{% endfor %}
+ {% empty %}
+<ul>
+ <li>
+ {% trans "No metatypes yet." %}
+ </li>
+</ul>
+{% endfor %}
+
+
diff --git a/gstudio/templates/gstudio/tags/nodetypes.html b/gstudio/templates/gstudio/tags/nodetypes.html
new file mode 100644
index 0000000..722c201
--- /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 %}<ul><li>{% else %}</li><li>{% endif %}
+ <a href="{{ nodetype.get_absolute_url }}" title="{{ nodetype.title }}">{{ nodetype.title }}</a>
+ {% blocktrans count nodetypes.gbobjects_published.count as gbobjects_count %}{{ gbobjects_count }} gbobject{% plural %}{{ gbobjects_count }} gbobjects{% endblocktrans %}
+
+ {% empty %}
+<ul>
+ <li>
+ {% trans "No subtypes yet." %}
+ </li>
+</ul>
+{% endfor %}
+
+
diff --git a/gstudio/templates/gstudio/tags/pagination.html b/gstudio/templates/gstudio/tags/pagination.html
new file mode 100644
index 0000000..ac54a75
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/pagination.html
@@ -0,0 +1,59 @@
+{% load i18n %}
+<div class="paginator span-16 last">
+ <span class="index">
+ {% blocktrans with page.number as current_page and page.paginator.num_pages as total_page %}Page {{ current_page }} of {{ total_page }}{% endblocktrans %}
+ </span>
+
+ {% if page.has_previous %}
+ <span class="previous">
+ <a href="?page={{ page.previous_page_number }}{{ GET_string }}"
+ title="{% trans "More recent node types" %}">&laquo;</a>
+ </span>
+ {% endif %}
+
+ {% for page_number in begin %}
+ <span class="page {% ifequal page.number page_number %}current{% endifequal %}">
+ {% ifequal page.number page_number %}
+ <strong>{{ page_number }}</strong>
+ {% else %}
+ <a href="?page={{ page_number }}{{ GET_string }}"
+ title="{% trans "Nodetypes page" %} {{ page_number }}">{{ page_number }}</a>
+ {% endifequal%}
+ </span>
+ {% endfor %}
+
+ {% if middle %}
+ <span class="ellipsis">&hellip;</span>
+ {% for page_number in middle %}
+ <span class="page {% ifequal page.number page_number %}current{% endifequal %}">
+ {% ifequal page.number page_number %}
+ <strong>{{ page_number }}</strong>
+ {% else %}
+ <a href="?page={{ page_number }}{{ GET_string }}"
+ title="{% trans "Nodetypes page" %} {{ page_number }}">{{ page_number }}</a>
+ {% endifequal%}
+ </span>
+ {% endfor %}
+ {% endif %}
+
+ {% if end %}
+ <span class="ellipsis">&hellip;</span>
+ {% for page_number in end %}
+ <span class="page {% ifequal page.number page_number %}current{% endifequal %}">
+ {% ifequal page.number page_number %}
+ <strong>{{ page_number }}</strong>
+ {% else %}
+ <a href="?page={{ page_number }}{{ GET_string }}"
+ title="{% trans "Nodetypes page" %} {{ page_number }}">{{ page_number }}</a>
+ {% endifequal%}
+ </span>
+ {% endfor %}
+ {% endif %}
+
+ {% if page.has_next %}
+ <span class="next">
+ <a href="?page={{ page.next_page_number }}{{ GET_string }}"
+ title="{% trans "More old nodetypes" %}">&raquo;</a>
+ </span>
+ {% endif %}
+</div>
diff --git a/gstudio/templates/gstudio/tags/popular_nodetypes.html b/gstudio/templates/gstudio/tags/popular_nodetypes.html
new file mode 100644
index 0000000..2b3112b
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/popular_nodetypes.html
@@ -0,0 +1,16 @@
+{% load i18n %}
+<ul>
+ {% for nodetype in nodetypes %}
+ <li>
+ <a href="{{ nodetype.get_absolute_url }}" title="{{ nodetype.title }}" rel="bookmark">{{ nodetype.title }}</a>
+ <br />
+ {% with nodetype.comments.count as comment_count %}
+ <a href="{{ nodetype.get_absolute_url }}#comments" title="{{ nodetype.title }}">{{ comment_count }} {% trans "comment" %}{{ comment_count|pluralize }}</a>
+ {% endwith %}
+ </li>
+ {% empty %}
+ <li>
+ {% trans "No nodetypes yet." %}
+ </li>
+ {% endfor %}
+</ul>
diff --git a/gstudio/templates/gstudio/tags/random_nodetypes.html b/gstudio/templates/gstudio/tags/random_nodetypes.html
new file mode 100644
index 0000000..5b7806b
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/random_nodetypes.html
@@ -0,0 +1,12 @@
+{% load i18n %}
+<ul>
+ {% for nodetype in nodetypes %}
+ <li>
+ <a href="{{ nodetype.get_absolute_url }}" title="{{ nodetype.title }}" rel="bookmark">{{ nodetype.title }}</a>
+ </li>
+ {% empty %}
+ <li>
+ {% trans "No nodetypes yet." %}
+ </li>
+ {% endfor %}
+</ul>
diff --git a/gstudio/templates/gstudio/tags/recent_comments.html b/gstudio/templates/gstudio/tags/recent_comments.html
new file mode 100644
index 0000000..9e87c6f
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/recent_comments.html
@@ -0,0 +1,20 @@
+{% load i18n %}
+
+<ul>
+ {% for comment in comments %}
+ <li>
+ {% with comment.content_object as nodetype %}
+ {{ comment.user_name }} {% trans "on" %}
+ <a href="{{ nodetype.get_absolute_url }}#comment_{{ comment.pk }}"
+ title="{% trans "Comment on" %} {{ nodetype.title }}">
+ {{ nodetype.title }}
+ </a>
+ {% endwith %}
+ </li>
+ {% empty %}
+ <li>
+ {% trans "No comments yet." %}
+ </li>
+ {% endfor %}
+</ul>
+
diff --git a/gstudio/templates/gstudio/tags/recent_linkbacks.html b/gstudio/templates/gstudio/tags/recent_linkbacks.html
new file mode 100644
index 0000000..382e53c
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/recent_linkbacks.html
@@ -0,0 +1,21 @@
+{% load i18n %}
+
+<ul>
+ {% for linkback in linkbacks %}
+ <li>
+ {% with linkback.content_object as nodetype %}
+ <a href="{{ linkback.url }}">{{ linkback.user_name }}</a>
+ {% trans "in" %}
+ <a href="{{ nodetype.get_absolute_url }}#{{ linkback.flags.all.0.flag }}_{{ linkback.pk }}"
+ title="{% trans "Linkback on" %} {{ nodetype.title }}">
+ {{ nodetype.title }}
+ </a>
+ {% endwith %}
+ </li>
+ {% empty %}
+ <li>
+ {% trans "No linkbacks yet." %}
+ </li>
+ {% endfor %}
+</ul>
+
diff --git a/gstudio/templates/gstudio/tags/recent_nodetypes.html b/gstudio/templates/gstudio/tags/recent_nodetypes.html
new file mode 100644
index 0000000..0b1bb0a
--- /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 %}
+<ul>
+ <li>{% else %}</li>
+ <li>{% endif %}
+ <a href="{{ nodetype.get_absolute_url }}" title="{{ nodetype.title }}">{{ nodetype.title }}</a>
+ {% for level in structure.closed_levels %}
+ </li>
+</ul>{% endfor %}
+{% empty %}
+<ul>
+ <li>
+ {% trans "No subtypes yet." %}
+ </li>
+</ul>
+{% endfor %}
+
diff --git a/gstudio/templates/gstudio/tags/similar_nodetypes.html b/gstudio/templates/gstudio/tags/similar_nodetypes.html
new file mode 100644
index 0000000..7e933e0
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/similar_nodetypes.html
@@ -0,0 +1,12 @@
+{% load i18n %}
+<ul>
+ {% for nodetype in nodetypes %}
+ <li>
+ <a href="{{ nodetype.get_absolute_url }}" title="{{ nodetype.title }}" rel="bookmark">{{ nodetype.title }}</a>
+ </li>
+ {% empty %}
+ <li>
+ {% trans "No similar nodetypes." %}
+ </li>
+ {% endfor %}
+</ul>
diff --git a/gstudio/templates/gstudio/tags/slider_nodetypes.html b/gstudio/templates/gstudio/tags/slider_nodetypes.html
new file mode 100644
index 0000000..ccc161a
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/slider_nodetypes.html
@@ -0,0 +1,27 @@
+{% if nodetypes %}
+<div id="slider">
+ <ul class="ui-tabs-nav">
+ {% for nodetype in nodetypes %}
+ <li class="ui-tabs-nav-item{% if forloop.first %} ui-tabs-selected{% endif %}"
+ id="nav-slider-{{ forloop.counter }}">
+ <a href="#nodetype-slider-{{ forloop.counter }}">
+ <img src="{% if nodetype.image %}{{ nodetype.image.url }}{% endif %}" alt="{{ nodetype.title }}" />
+ <span>{{ nodetype.title }}</span>
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+
+ {% for nodetype in nodetypes %}
+ <div id="nodetype-slider-{{ forloop.counter }}" class="ui-tabs-panel">
+ <img src="{% if nodetype.image %}{{ nodetype.image.url }}{% endif %}" alt="{{ nodetype.title }}" />
+ <div class="panel_info">
+ <h2>
+ <a href="{{ nodetype.get_absolute_url }}" rel="bookmark">{{ nodetype.title }}</a>
+ </h2>
+ {{ nodetype.excerpt|linebreaks|truncatewords_html:20 }}
+ </div>
+ </div>
+ {% endfor %}
+</div>
+{% endif %}
diff --git a/gstudio/templates/gstudio/tags/tag_cloud.html b/gstudio/templates/gstudio/tags/tag_cloud.html
new file mode 100644
index 0000000..a18a004
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/tag_cloud.html
@@ -0,0 +1,13 @@
+{% load i18n %}
+
+<div>
+ <ul>
+ {% for tag in tags %}
+ <li>
+ <a href="{% url gstudio_tag_detail tag.name %}"
+ title="{% blocktrans count tag.count as nodetype_count %}{{ nodetype_count }} nodetype{% plural %}{{ nodetype_count }} nodetypes{% endblocktrans %}"
+ class="tag_{{ tag.font_size }}">{{ tag }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+</div>