summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2015-07-14 19:02:11 +0200
committerMagnus Granberg <zorry@gentoo.org>2015-07-14 19:02:11 +0200
commit9fcbdba5877a0858d5dcfc3aec939ccd23347353 (patch)
treeebbacda8184f46eeb43b47f8bd474ab53fa1d71a /python/templates/includes/navigation
parentadd __init__.py to gentoo_www (diff)
downloadtinderbox-cluster-www-9fcbdba5877a0858d5dcfc3aec939ccd23347353.tar.gz
tinderbox-cluster-www-9fcbdba5877a0858d5dcfc3aec939ccd23347353.tar.bz2
tinderbox-cluster-www-9fcbdba5877a0858d5dcfc3aec939ccd23347353.zip
renname tamplates to templates
Diffstat (limited to 'python/templates/includes/navigation')
-rw-r--r--python/templates/includes/navigation/primary9
-rw-r--r--python/templates/includes/navigation/secondary12
-rw-r--r--python/templates/includes/navigation/sitemap_secondary5
-rw-r--r--python/templates/includes/navigation/tertiary12
4 files changed, 38 insertions, 0 deletions
diff --git a/python/templates/includes/navigation/primary b/python/templates/includes/navigation/primary
new file mode 100644
index 0000000..c5d86e6
--- /dev/null
+++ b/python/templates/includes/navigation/primary
@@ -0,0 +1,9 @@
+{% for node in pages %}
+ {% if node.nav1_show %}{% if node.nav1 != 'donate' %}
+ {% if page.nav1 == node.nav1 %}
+ <li class="active"><a href="/{{ node.url }}/" class="active">{% if node.nav_title %}{{ node.nav_title }}{% else %}{{node.title}}{% endif %}</a></li>
+ {% else %}
+ <li><a href="/{{ node.url }}/">{% if node.nav_title %}{{ node.nav_title }}{% else %}{{node.title}}{% endif %}</a></li>
+ {% endif %}
+ {% endif %}{% endif %}
+{% endfor %}
diff --git a/python/templates/includes/navigation/secondary b/python/templates/includes/navigation/secondary
new file mode 100644
index 0000000..a8cdfbd
--- /dev/null
+++ b/python/templates/includes/navigation/secondary
@@ -0,0 +1,12 @@
+{% assign pages_list2 = pages_list | sort:"nav2-weight" %}
+{% for node in pages_list2 %}
+ {% if page.nav1 == node.nav1 and node.nav1-show != true and node.nav2-show == true %}
+ {% if page.nav2 == node.nav2 %}
+ <li class="active"><a href="{{node.url | replace:'index.html',''}}" class="active">{% if node.navtitle %}{{ node.navtitle }}{% else %}{{node.title}}{% endif %}</a></li>
+ {% else %}
+ <li><a href="{{node.url | replace:'index.html',''}}">{% if node.navtitle %}{{ node.navtitle }}{% else %}{{node.title}}{% endif %}</a></li>
+ {% endif %}
+ {% endif %}
+{% endfor %}
+{% assign pages_list = nil %}
+{% assign pages_list2 = nil %} \ No newline at end of file
diff --git a/python/templates/includes/navigation/sitemap_secondary b/python/templates/includes/navigation/sitemap_secondary
new file mode 100644
index 0000000..f7b5379
--- /dev/null
+++ b/python/templates/includes/navigation/sitemap_secondary
@@ -0,0 +1,5 @@
+{% for node in smappages %}
+ {% if page.PageId == node.PageId.PageId %}
+ <li><a href="{{node.url }}">{% if node.nav_title %}{{ node.nav_title }}{% else %}{{node.title}}{% endif %}</a></li>
+ {% endif %}
+{% endfor %}
diff --git a/python/templates/includes/navigation/tertiary b/python/templates/includes/navigation/tertiary
new file mode 100644
index 0000000..500c358
--- /dev/null
+++ b/python/templates/includes/navigation/tertiary
@@ -0,0 +1,12 @@
+{% assign pages_list2 = pages_list | sort:"nav3-weight" %}
+{% for node in pages_list2 %}
+ {% if page.nav1 == node.nav1 and page.nav2 == node.nav2 and node.nav3-show == true %}
+ {% if page.nav3 == node.nav3 %}
+ <li class="active"><a href="{{node.url | replace:'index.html',''}}" class="active">{% if node.navtitle %}{{ node.navtitle }}{% else %}{{node.title}}{% endif %}</a></li>
+ {% else %}
+ <li><a href="{{node.url | replace:'index.html',''}}">{% if node.navtitle %}{{ node.navtitle }}{% else %}{{node.title}}{% endif %}</a></li>
+ {% endif %}
+ {% endif %}
+{% endfor %}
+{% assign pages_list = nil %}
+{% assign pages_list2 = nil %} \ No newline at end of file