summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'python/templates/includes')
-rw-r--r--python/templates/includes/container/end3
-rw-r--r--python/templates/includes/container/start3
-rw-r--r--python/templates/includes/downloads/alpha.html17
-rw-r--r--python/templates/includes/downloads/amd64.html6
-rw-r--r--python/templates/includes/downloads/arch-default.html33
-rw-r--r--python/templates/includes/downloads/arch-main.html29
-rw-r--r--python/templates/includes/downloads/arm.html17
-rw-r--r--python/templates/includes/downloads/experimental.html12
-rw-r--r--python/templates/includes/downloads/hppa.html18
-rw-r--r--python/templates/includes/downloads/ia64.html25
-rw-r--r--python/templates/includes/downloads/ppc.html12
-rw-r--r--python/templates/includes/downloads/s390.html7
-rw-r--r--python/templates/includes/downloads/sh.html7
-rw-r--r--python/templates/includes/downloads/sparc.html11
-rw-r--r--python/templates/includes/downloads/warnings.html11
-rw-r--r--python/templates/includes/downloads/x86-default.html17
-rw-r--r--python/templates/includes/downloads/x86.html7
-rw-r--r--python/templates/includes/frontpage/glsa17
-rw-r--r--python/templates/includes/frontpage/news6
-rw-r--r--python/templates/includes/frontpage/packages8
-rw-r--r--python/templates/includes/frontpage/planet8
-rw-r--r--python/templates/includes/frontpage/wiki8
-rw-r--r--python/templates/includes/hero-section/end3
-rw-r--r--python/templates/includes/hero-section/start3
-rw-r--r--python/templates/includes/layout/footer.html38
-rw-r--r--python/templates/includes/layout/footer_sitemap.html12
-rw-r--r--python/templates/includes/layout/head.html25
-rw-r--r--python/templates/includes/layout/header.html86
-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
-rw-r--r--python/templates/includes/partials/download-link-raw.html5
-rw-r--r--python/templates/includes/partials/download-link.html4
-rw-r--r--python/templates/includes/partials/irc-channel.html8
-rw-r--r--python/templates/includes/partials/mailinglist.html21
-rw-r--r--python/templates/includes/partials/sponsor.html14
37 files changed, 539 insertions, 0 deletions
diff --git a/python/templates/includes/container/end b/python/templates/includes/container/end
new file mode 100644
index 0000000..492b151
--- /dev/null
+++ b/python/templates/includes/container/end
@@ -0,0 +1,3 @@
+ </div>
+</div>
+<div class="container"><div class="row"><div class="col-md-12"> \ No newline at end of file
diff --git a/python/templates/includes/container/start b/python/templates/includes/container/start
new file mode 100644
index 0000000..2ec1951
--- /dev/null
+++ b/python/templates/includes/container/start
@@ -0,0 +1,3 @@
+</div></div></div>
+<div class="{{ class_include }}">
+ <div class="container"> \ No newline at end of file
diff --git a/python/templates/includes/downloads/alpha.html b/python/templates/includes/downloads/alpha.html
new file mode 100644
index 0000000..15d2d27
--- /dev/null
+++ b/python/templates/includes/downloads/alpha.html
@@ -0,0 +1,17 @@
+<div class="col-xs-12 col-md-6">
+ <h4>Boot Media</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="iso" arch="alpha" id="minimal" title="Minimal Installation CD" %}
+ </div>
+ <h4>Stage Archives</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="stage3" arch="alpha" id="alpha" title="Stage 3" %}
+ </div>
+</div>
+<div class="col-xs-12 col-md-6">
+ <h4>Details (Contents, Hashes, and Signatures)</h4>
+ <ul>
+ <li><a href="http://distfiles.gentoo.org/releases/alpha/autobuilds/current-install-alpha-minimal/">Minimal Installation CD</a></li>
+ <li><a href="http://distfiles.gentoo.org/releases/alpha/autobuilds/current-stage3-alpha/">Stage 3</a></li>
+ </ul>
+</div> \ No newline at end of file
diff --git a/python/templates/includes/downloads/amd64.html b/python/templates/includes/downloads/amd64.html
new file mode 100644
index 0000000..556519f
--- /dev/null
+++ b/python/templates/includes/downloads/amd64.html
@@ -0,0 +1,6 @@
+<div class="alert alert-info">
+ <strong><span class="fa fa-fw fa-info-circle"></span> Processor Compatibility</strong>
+ <p>
+ The <em>amd64</em> architecture is intended for use on AMD 64-bit CPUs as well as 64-bit <strong>Intel Pentium/Core/Xeon</strong> processors.
+ </p>
+</div>
diff --git a/python/templates/includes/downloads/arch-default.html b/python/templates/includes/downloads/arch-default.html
new file mode 100644
index 0000000..529abbf
--- /dev/null
+++ b/python/templates/includes/downloads/arch-default.html
@@ -0,0 +1,33 @@
+<h4>Boot Media</h4>
+<div class="list-group">
+ {% for iso in download.isos %}
+ {% if iso.id == 'minimal' %}
+ {% include "includes/partials/download-link-raw.html" with arch=download.arch id=iso.id title=iso.title tag=iso.tag link=iso.link date=iso.date size=iso.size urlprefix=site.download_url %}
+ {% endif %}
+ {% endfor %}
+ {% if download.arch == 'amd64' %}
+ {% include "includes/partials/download-link-raw.html" with urlprefix='http://bouncer.gentoo.org/fetch/gentoo-20140826-livedvd/' link='amd64/' title='Hybrid ISO (LiveDVD)' size='2800000000' date='2014-08-26' %}
+ {% elif download.arch == 'x86' %}
+ {% include "includes/partials/download-link-raw.html" with urlprefix='http://bouncer.gentoo.org/fetch/gentoo-20140826-livedvd/' link='x86/' title='Hybrid ISO (LiveDVD)' size='2800000000' date='2014-08-26' %}
+ {% endif %}
+</div>
+
+<h4>Stage Archives</h4>
+<div class="list-group">
+ {% for stage3 in download.stage3s %}
+ {% if stage3.defaultstage %}
+ {% include "includes/partials/download-link-raw.html" with arch=download.arch id=stage3.id title=stage3.title tag=stage3.tag link=stage3.link date=stage3.date size=stage3.size urlprefix=site.download_url %}
+ {% endif %}
+ {% endfor %}
+</div>
+
+<h4>Details (Contents, Hashes, and Signatures)</h4>
+<p>
+ <a href="{{site.download_url }}/{{ download.arch }}/autobuilds/current-install-{{ download.arch }}-minimal/">Minimal Installation CD</a>,
+ <a href="http://bouncer.gentoo.org/fetch/gentoo-20140826-livedvd/{{ download.arch }}/">Hybrid ISO</a>,
+ {% for stage3 in download.stage3s %}
+ {% if stage3.defaultstage %}
+ <a href="{{site.download_url }}/{{ download.arch }}/autobuilds/current-stage3-{% if stage3.tag %}{{ stage3.tag }}{% else %}{{ download.arch }}{% endif %}/">Stage 3</a>
+ {% endif %}
+ {% endfor %}
+</p> \ No newline at end of file
diff --git a/python/templates/includes/downloads/arch-main.html b/python/templates/includes/downloads/arch-main.html
new file mode 100644
index 0000000..f4cecd0
--- /dev/null
+++ b/python/templates/includes/downloads/arch-main.html
@@ -0,0 +1,29 @@
+<div class="col-xs-12 col-md-6">
+ <h4>Boot Media</h4>
+ <div class="list-group">
+ {% for iso in download.isos %}
+ {% include "includes/partials/download-link-raw.html" with arch=key id=iso.id title=iso.title urlprefix=site.download_url tag=iso.tag link=iso.link date=iso.date size=iso.size %}
+ {% endfor %}
+ </div>
+
+
+ <h4>Stage Archives</h4>
+ <div class="list-group">
+ {% for stage3 in download.stage3s %}
+ {% include "includes/partials/download-link-raw.html" with arch=key id=stage3.id title=stage3.title urlprefix=site.download_url tag=stage3.tag link=stage3.link date=stage3.date size=stage3.size %}
+ {% endfor %}
+ </div>
+</div>
+<div class="col-xs-12 col-md-6">
+ <h4>Details (Contents, Hashes, and Signatures)</h4>
+ <ul>
+ <li><a href="{{site.download_url }}{{ key }}/autobuilds/current-install-{{ key }}-minimal/">Minimal Installation CD</a></li>
+ {% for stage3 in download.stage3s %}
+ {% if stage3.defaultstage %}
+ <li><a href="{{site.download_url }}{{ key }}/autobuilds/current-stage3-{% if stage3.tag %}{{ stage3.tag }}{% else %}{{ key }}{% endif %}/">Stage 3</a></li>
+ {% endif %}
+ {% endfor %}
+ <li><a href="{{site.download_url }}{{ key }}/autobuilds/">All Stages</a></li>
+ </ul>
+ {% include "includes/downloads/warnings.html" with key=key %}
+</div> \ No newline at end of file
diff --git a/python/templates/includes/downloads/arm.html b/python/templates/includes/downloads/arm.html
new file mode 100644
index 0000000..a2bf23e
--- /dev/null
+++ b/python/templates/includes/downloads/arm.html
@@ -0,0 +1,17 @@
+<div class="col-xs-12 col-md-6">
+ <h4>Stage Archives</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="stage3" arch="arm" id="armv4tl" title="Stage 3" tag="ARMv4tl" %}
+ {% include partials/download-link.html type="stage3" arch="arm" id="armv5tel" title="Stage 3" tag="ARMv5tel" %}
+ {% include partials/download-link.html type="stage3" arch="arm" id="armv6j" title="Stage 3" tag="ARMv6j" %}
+ {% include partials/download-link.html type="stage3" arch="arm" id="armv6j_hardfp" title="Stage 3" tag="ARMv6j | HardFP" %}
+ {% include partials/download-link.html type="stage3" arch="arm" id="armv7a" title="Stage 3" tag="ARMv7a" %}
+ {% include partials/download-link.html type="stage3" arch="arm" id="armv7a_hardfp" title="Stage 3" tag="ARMv7a | HardFP" %}
+ </div>
+</div>
+<div class="col-xs-12 col-md-6">
+ <h4>Details (Contents, Hashes, and Signatures)</h4>
+ <ul>
+ <li><a href="http://distfiles.gentoo.org/releases/arm/autobuilds/">Stage 3</a></li>
+ </ul>
+</div> \ No newline at end of file
diff --git a/python/templates/includes/downloads/experimental.html b/python/templates/includes/downloads/experimental.html
new file mode 100644
index 0000000..e6fc030
--- /dev/null
+++ b/python/templates/includes/downloads/experimental.html
@@ -0,0 +1,12 @@
+<div class="col-xs-12 col-md-6">
+ <h4>mips</h4>
+ <div class="list-group">
+ <a href="http://distfiles.gentoo.org/experimental/mips/stages/" data-relurl="../experimental/mips/stages/" class="list-group-item download-link download-link-mirrorable">
+ <span class="fa fa-download fa-fw"></span>
+ <strong>MIPS stages</strong>
+ </a>
+ </div>
+</div>
+<div class="col-xs-12 col-md-6">
+
+</div> \ No newline at end of file
diff --git a/python/templates/includes/downloads/hppa.html b/python/templates/includes/downloads/hppa.html
new file mode 100644
index 0000000..908eb7a
--- /dev/null
+++ b/python/templates/includes/downloads/hppa.html
@@ -0,0 +1,18 @@
+<div class="col-xs-12 col-md-6">
+ <h4>Boot Media</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="iso" arch="hppa" id="minimal" title="Minimal Installation CD" %}
+ </div>
+ <h4>Stage Archives</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="stage3" arch="hppa" id="hppa1.1" title="Stage 3" tag="HPPA 1.1" %}
+ {% include partials/download-link.html type="stage3" arch="hppa" id="hppa2.0" title="Stage 3" tag="HPPA 2.0" %}
+ </div>
+</div>
+<div class="col-xs-12 col-md-6">
+ <h4>Details (Contents, Hashes, and Signatures)</h4>
+ <ul>
+ <li><a href="http://distfiles.gentoo.org/releases/hppa/autobuilds/current-install-hppa-minimal/">Minimal Installation CD</a></li>
+ <li><a href="http://distfiles.gentoo.org/releases/hppa/autobuilds/">Stage 3</a></li>
+ </ul>
+</div> \ No newline at end of file
diff --git a/python/templates/includes/downloads/ia64.html b/python/templates/includes/downloads/ia64.html
new file mode 100644
index 0000000..46aee26
--- /dev/null
+++ b/python/templates/includes/downloads/ia64.html
@@ -0,0 +1,25 @@
+<div class="col-xs-12 col-md-6">
+ <h4>Boot Media</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="iso" arch="ia64" id="minimal" title="Minimal Installation CD" %}
+ </div>
+ <h4>Stage Archives</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="stage3" arch="ia64" id="ia64" title="Stage 3" %}
+ </div>
+</div>
+<div class="col-xs-12 col-md-6">
+ <h4>Details (Contents, Hashes, and Signatures)</h4>
+ <ul>
+ <li><a href="http://distfiles.gentoo.org/releases/ia64/autobuilds/current-iso/">Minimal Installation CD</a></li>
+ <li><a href="http://distfiles.gentoo.org/releases/ia64/autobuilds/current-stage3/">Stage 3</a></li>
+ </ul>
+
+ <div class="alert alert-warning">
+ <strong><i class="fa fa-fw fa-warning"></i> Confirm Processor Compatibility</strong>
+ <p>
+ The <em>ia64</em> architecture is intended for use on <strong>Intel Itanium</strong> processors only.<br />
+ If you have a 64-bit <strong>Intel Pentium/Core/Xeon</strong> processor, you need to use the <a href="#amd64" class="alert-link"><em>amd64</em></a> architecture.
+ </p>
+ </div>
+</div> \ No newline at end of file
diff --git a/python/templates/includes/downloads/ppc.html b/python/templates/includes/downloads/ppc.html
new file mode 100644
index 0000000..1880dde
--- /dev/null
+++ b/python/templates/includes/downloads/ppc.html
@@ -0,0 +1,12 @@
+<div class="col-xs-12 col-md-6">
+ <h4>Boot Media</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="iso" arch="ppc" id="minimal" title="Minimal Installation CD" %}
+ </div>
+ <h4>Stage Archives</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="stage3" arch="ppc" id="ppc" title="PPC Stage 3" %}
+ {% include partials/download-link.html type="stage3" arch="ppc" id="ppc64-32ul" title="PPC64 Stage 3" tag="32ul" %}
+ {% include partials/download-link.html type="stage3" arch="ppc" id="ppc64-64ul" title="PPC64 Stage 3" tag="64ul" %}
+ </div>
+</div> \ No newline at end of file
diff --git a/python/templates/includes/downloads/s390.html b/python/templates/includes/downloads/s390.html
new file mode 100644
index 0000000..a93064b
--- /dev/null
+++ b/python/templates/includes/downloads/s390.html
@@ -0,0 +1,7 @@
+<div class="col-xs-12 col-md-6">
+ <h4>Stage Archives</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="stage3" arch="s390" id="s390" title="Stage 3" tag="S390" %}
+ {% include partials/download-link.html type="stage3" arch="s390" id="s390x" title="Stage 3" tag="S390X" %}
+ </div>
+</div> \ No newline at end of file
diff --git a/python/templates/includes/downloads/sh.html b/python/templates/includes/downloads/sh.html
new file mode 100644
index 0000000..8bd2b03
--- /dev/null
+++ b/python/templates/includes/downloads/sh.html
@@ -0,0 +1,7 @@
+<div class="col-xs-12 col-md-6">
+ <h4>Stage Archives</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="stage3" arch="sh" id="sh4" title="Stage 3" tag="SH4" %}
+ {% include partials/download-link.html type="stage3" arch="sh" id="sh4a" title="Stage 3" tag="SH4A" %}
+ </div>
+</div> \ No newline at end of file
diff --git a/python/templates/includes/downloads/sparc.html b/python/templates/includes/downloads/sparc.html
new file mode 100644
index 0000000..7e91ad3
--- /dev/null
+++ b/python/templates/includes/downloads/sparc.html
@@ -0,0 +1,11 @@
+<div class="col-xs-12 col-md-6">
+ <h4>Boot Media</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="iso" arch="sparc" id="minimal" title="Minimal Installation CD" %}
+ </div>
+ <h4>Stage Archives</h4>
+ <div class="list-group">
+ {% include partials/download-link.html type="stage3" arch="sparc" id="sparc64" title="Stage 3" %}
+ {% include partials/download-link.html type="stage3" arch="sparc" id="sparc64-multilib" title="Stage 3" tag="multilib" %}
+ </div>
+</div> \ No newline at end of file
diff --git a/python/templates/includes/downloads/warnings.html b/python/templates/includes/downloads/warnings.html
new file mode 100644
index 0000000..38a1eb5
--- /dev/null
+++ b/python/templates/includes/downloads/warnings.html
@@ -0,0 +1,11 @@
+<div class="alert alert-info">
+ <strong><span class="fa fa-fw fa-info-circle"></span> Processor Compatibility</strong>
+ <p>
+ {% if key == 'amd64' %}
+ The <em>amd64</em> architecture is intended for use on AMD 64-bit CPUs as well as 64-bit <strong>Intel Pentium/Core/Xeon</strong> processors.
+ {% elif key == 'x86' %}
+ There are two builds of the <em>x86</em> architecture: <em>i486</em> and <em>i686</em>.<br />
+ Processors prior to the <strong>Intel Pentium Pro</strong> or <strong>Pentium II</strong> require the <em>i486</em> variant to be used.
+ {% endif %}
+ </p>
+</div> \ No newline at end of file
diff --git a/python/templates/includes/downloads/x86-default.html b/python/templates/includes/downloads/x86-default.html
new file mode 100644
index 0000000..03fc9b5
--- /dev/null
+++ b/python/templates/includes/downloads/x86-default.html
@@ -0,0 +1,17 @@
+<h4>Boot Media</h4>
+<div class="list-group">
+ {% include partials/download-link.html type="iso" arch="x86" id="minimal" title="Minimal Installation CD" %}
+ {% include partials/download-link-raw.html url='http://bouncer.gentoo.org/fetch/gentoo-20140826-livedvd/x86/' title='Hybrid ISO (LiveDVD)' size='2800000000' date='2014-08-26' %}
+</div>
+
+<h4>Stage Archives</h4>
+<div class="list-group">
+ {% include partials/download-link.html type="stage3" arch="x86" id="i686" title="Stage 3" tag="i686" %}
+</div>
+
+<h4>Details (Contents, Hashes, and Signatures)</h4>
+<p>
+ <a href="http://distfiles.gentoo.org/releases/x86/autobuilds/current-install-x86-minimal/">Minimal Installation CD</a>,
+ <a href="http://bouncer.gentoo.org/fetch/gentoo-20140826-livedvd/x86/">Hybrid ISO</a>,
+ <a href="http://distfiles.gentoo.org/releases/x86/autobuilds/current-stage3-i686/">Stage 3</a>
+</p> \ No newline at end of file
diff --git a/python/templates/includes/downloads/x86.html b/python/templates/includes/downloads/x86.html
new file mode 100644
index 0000000..f1a04c9
--- /dev/null
+++ b/python/templates/includes/downloads/x86.html
@@ -0,0 +1,7 @@
+<div class="alert alert-warning">
+ <strong><i class="fa fa-fw fa-warning"></i> Confirm Processor Compatibility</strong>
+ <p>
+ There are two builds of the <em>x86</em> architecture: <em>i486</em> and <em>i686</em>.<br />
+ Processors prior to the <strong>Intel Pentium Pro</strong> or <strong>Pentium II</strong> require the <em>i486</em> variant to be used.
+ </p>
+</div>
diff --git a/python/templates/includes/frontpage/glsa b/python/templates/includes/frontpage/glsa
new file mode 100644
index 0000000..a2ed049
--- /dev/null
+++ b/python/templates/includes/frontpage/glsa
@@ -0,0 +1,17 @@
+<table class="table table-striped">
+ {% for advisory in glsaposts %}
+ <tr>
+ <td>GLSA {{ advisory.id }}</td>
+ <td><a href="{{ advisory.url }}">{{ advisory.title }}</a></td>
+ <td class="text-right">
+ {% if advisory.severity == 'high' %}
+ <span class="label label-danger">high</span>
+ {% elif advisory.severity == 'low' %}
+ <span class="label label-info">low</span>
+ {% else %}
+ <span class="label label-warning">normal</span>
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+</table> \ No newline at end of file
diff --git a/python/templates/includes/frontpage/news b/python/templates/includes/frontpage/news
new file mode 100644
index 0000000..27d9dc4
--- /dev/null
+++ b/python/templates/includes/frontpage/news
@@ -0,0 +1,6 @@
+{% for post in posts %}
+<article>
+ <h2><a href="{{ post.url }}">{{ post.title }}</a> <small>({{ post.TimeStamp }})</small></h2>
+ {{ post.text|safe|escape }}
+</article>
+{% endfor %} \ No newline at end of file
diff --git a/python/templates/includes/frontpage/packages b/python/templates/includes/frontpage/packages
new file mode 100644
index 0000000..710dec4
--- /dev/null
+++ b/python/templates/includes/frontpage/packages
@@ -0,0 +1,8 @@
+<table class="table table-striped frontpage-table">
+ {% for post in packageposts %}
+ <tr>
+ <td class="frontpage-table-package-atom"><a href="{{ post.url }}" title="{{ post.atom }}">{{ post.atom_p }}</a></td>
+ <td>{{ post.description }}</td>
+ </tr>
+ {% endfor %}
+</table> \ No newline at end of file
diff --git a/python/templates/includes/frontpage/planet b/python/templates/includes/frontpage/planet
new file mode 100644
index 0000000..7f884d2
--- /dev/null
+++ b/python/templates/includes/frontpage/planet
@@ -0,0 +1,8 @@
+<table class="table table-striped frontpage-table">
+ {% for post in planetposts %}
+ <tr>
+ <td class="frontpage-table-planet-author">{{ post.author }}</td>
+ <td><a href="{{ post.url }}" rel="nofollow" title="{{ post.title }}">{{ post.title }}</a></td>
+ </tr>
+ {% endfor %}
+</table> \ No newline at end of file
diff --git a/python/templates/includes/frontpage/wiki b/python/templates/includes/frontpage/wiki
new file mode 100644
index 0000000..e9efc28
--- /dev/null
+++ b/python/templates/includes/frontpage/wiki
@@ -0,0 +1,8 @@
+<table class="table table-striped frontpage-table">
+ {% for post in wikiposts %}
+ <tr>
+ <td class="frontpage-table-wiki-title"><a href="{{ post.url }}" rel="nofollow">{{ post.title }}</a></td>
+ <td>started by {{ post.author }}</td>
+ </tr>
+ {% endfor %}
+</table> \ No newline at end of file
diff --git a/python/templates/includes/hero-section/end b/python/templates/includes/hero-section/end
new file mode 100644
index 0000000..492b151
--- /dev/null
+++ b/python/templates/includes/hero-section/end
@@ -0,0 +1,3 @@
+ </div>
+</div>
+<div class="container"><div class="row"><div class="col-md-12"> \ No newline at end of file
diff --git a/python/templates/includes/hero-section/start b/python/templates/includes/hero-section/start
new file mode 100644
index 0000000..8e9d73c
--- /dev/null
+++ b/python/templates/includes/hero-section/start
@@ -0,0 +1,3 @@
+</div></div></div>
+<div class="hero-section {{ class_include }}">
+ <div class="container"> \ No newline at end of file
diff --git a/python/templates/includes/layout/footer.html b/python/templates/includes/layout/footer.html
new file mode 100644
index 0000000..a6860e6
--- /dev/null
+++ b/python/templates/includes/layout/footer.html
@@ -0,0 +1,38 @@
+<footer>
+ <div class="container">
+ <div class="row">
+ <div class="col-xs-12 col-md-offset-2 col-md-7">
+ {% if page.footer %}{{ page.footer }}{% endif %}
+ </div>
+ <div class="col-xs-12 col-md-3">
+ <h3 class="footerhead">Questions or comments?</h3>
+ Please feel free to <a href="{{ contact.PageId.nav1 }}/{{ contact.nav2}}/">contact us</a>.
+ </div>
+ </div>
+ </div>
+ <div class="container-sitemap">
+ <div class="container">
+ {% include "includes/layout/footer_sitemap.html" %}
+ </div>
+ </div>
+ <div class="container">
+ <div class="row">
+ <div class="col-xs-3 col-md-2">
+ <ul class="footerlinks three-icons">
+ <li><a href="http://twitter.com/gentoo" title="@Gentoo on Twitter"><span class="fa fa-twitter fa-fw"></span></a></li>
+ <li><a href="https://plus.google.com/+Gentoo" title="+Gentoo on Google+"><span class="fa fa-google-plus fa-fw"></span></a></li>
+ <li><a href="https://www.facebook.com/gentoo.org" title="Gentoo on Facebook"><span class="fa fa-facebook fa-fw"></span></a></li>
+ </ul>
+ </div>
+ <div class="col-xs-9 col-md-9">
+ <strong>&copy; 2001-{% now "Y" %} Gentoo Foundation, Inc.</strong><br>
+ <small>
+ Gentoo is a trademark of the Gentoo Foundation, Inc.
+ The contents of this document, unless otherwise expressly stated, are licensed under the
+ <a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license">CC-BY-SA-3.0</a> license.
+ The <a href="/inside-gentoo/foundation/name-logo-guidelines.html">Gentoo Name and Logo Usage Guidelines</a> apply.
+ </small>
+ </div>
+ </div>
+ </div>
+</footer> \ No newline at end of file
diff --git a/python/templates/includes/layout/footer_sitemap.html b/python/templates/includes/layout/footer_sitemap.html
new file mode 100644
index 0000000..3923ce3
--- /dev/null
+++ b/python/templates/includes/layout/footer_sitemap.html
@@ -0,0 +1,12 @@
+<div class="row row-sitemap hidden-xs">
+ {% for page in pages %}
+ {% if page.nav1 != 'donate' %}
+ <div class="col-xs-12 col-sm-4 col-md-2">
+ <h3 class="footerhead"><a href="{{ page.url }}">{{ page.nav_title }}</a></h3>
+ <ul class="sitemap">
+ {% include "includes/navigation/sitemap_secondary" %}
+ </ul>
+ {% endif %}
+ </div>
+ {% endfor %}
+</div> \ No newline at end of file
diff --git a/python/templates/includes/layout/head.html b/python/templates/includes/layout/head.html
new file mode 100644
index 0000000..d8ed708
--- /dev/null
+++ b/python/templates/includes/layout/head.html
@@ -0,0 +1,25 @@
+<head>
+ <title>{% if page.title %}{{ page.title }} – {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
+ {% if page.description %}<meta name="description" content="{{ page.description }}">{% endif %}
+ <meta charset="utf-8">
+ <meta name="theme-color" content="#54487a">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta property="og:title" content="{% if page.title %}{{ page.title }} – {{ site.title }}{% else %}{{ site.title }}{% endif %}">
+ <meta property="og:image" content="https://www.gentoo.org/assets/img/logo/gentoo-g.png">
+ <meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
+ <meta name="twitter:image" content="https://www.gentoo.org/assets/img/logo/gentoo-g.png">
+ <link rel="apple-touch-icon" href="https://www.gentoo.org/assets/img/logo/icon-192.png">
+ <link rel="icon" sizes="192x192" href="https://www.gentoo.org/assets/img/logo/icon-192.png">
+ <link href="{{ site.cdnurl }}/bootstrap.min.css" rel="stylesheet" media="screen">
+ <link href="{{ site.cdnurl }}/tyrian.min.css" rel="stylesheet" media="screen">
+ <link href="https://www.gentoo.org/assets/css/screen.css" rel="stylesheet" media="screen">
+ {% if page.extracss %}{% for css in page.extracss %}<link href="https://www.gentoo.org/assets/css/{{ css }}" rel="stylesheet" media="screen">{% endfor %}{% endif %}
+ <link rel="icon" href="/favicon.ico" type="image/x-icon">
+ <link rel="search" type="application/opensearchdescription+xml" href="https://www.gentoo.org/search/www-gentoo-org.xml" title="Gentoo Website">
+ <link rel="search" type="application/opensearchdescription+xml" href="https://www.gentoo.org/search/forums-gentoo-org.xml" title="Gentoo Forums">
+ <link rel="search" type="application/opensearchdescription+xml" href="https://www.gentoo.org/search/bugs-gentoo-org.xml" title="Gentoo Bugzilla">
+ <link rel="search" type="application/opensearchdescription+xml" href="https://www.gentoo.org/search/packages-gentoo-org.xml" title="Gentoo Packages">
+ <link rel="search" type="application/opensearchdescription+xml" href="https://www.gentoo.org/search/archives-gentoo-org.xml" title="Gentoo List Archives">
+ {% if page.meta %}{{ page.meta|safe|escape }}{% endif %}
+</head> \ No newline at end of file
diff --git a/python/templates/includes/layout/header.html b/python/templates/includes/layout/header.html
new file mode 100644
index 0000000..8b6bc63
--- /dev/null
+++ b/python/templates/includes/layout/header.html
@@ -0,0 +1,86 @@
+<header>
+ <div class="site-title">
+ <div class="container">
+ <div class="row">
+ <div class="site-title-buttons">
+ <div class="btn-group btn-group-sm">
+ <a href="http://get.gentoo.org/" role="button" class="btn get-gentoo"><span class="fa fa-download"></span> <strong>Get Gentoo!</strong></a>
+ <div class="btn-group btn-group-sm">
+ <button type="button" class="btn gentoo-org-sites dropdown-toggle" data-toggle="dropdown">
+ <span class="glyphicon glyphicon-globe"></span> gentoo.org sites <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu">
+ <li><a href="http://www.gentoo.org/" title="Main Gentoo website"><span class="fa fa-home fa-fw"></span> gentoo.org</a></li>
+ <li><a href="http://wiki.gentoo.org/" title="Find and contribute documentation"><span class="fa fa-file-text fa-fw"></span> Wiki</a></li>
+ <li><a href="https://bugs.gentoo.org/" title="Report issues and find common issues"><span class="fa fa-bug fa-fw"></span> Bugs</a></li>
+ <li><a href="http://forums.gentoo.org/" title="Discuss with the community"><span class="fa fa-comments-o fa-fw"></span> Forums</a></li>
+ <li><a href="http://packages.gentoo.org/" title="Find software for your Gentoo"><span class="fa fa-hdd-o fa-fw"></span> Packages</a></li>
+ <li class="divider"></li>
+ <li><a href="http://overlays.gentoo.org/" title="Collaborate on maintaining packages"><span class="fa fa-code-fork fa-fw"></span> Overlays</a></li>
+ <li><a href="http://planet.gentoo.org/" title="Find out what's going on in the developer community"><span class="fa fa-rss fa-fw"></span> Planet</a></li>
+ <li><a href="http://archives.gentoo.org/" title="Read up on past discussions"><span class="fa fa-archive fa-fw"></span> Archives</a></li>
+ <li><a href="http://sources.gentoo.org/" title="Browse our source code"><span class="fa fa-code fa-fw"></span> Sources</a></li>
+ <li class="divider"></li>
+ <li><a href="http://infra-status.gentoo.org/" title="Get updates on the services provided by Gentoo"><span class="fa fa-tasks fa-fw"></span> Infra Status</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ <div class="logo">
+ <a href="/" title="Back to the homepage" class="site-logo">
+ <object data="{{ site.cdnurl }}/site-logo.svg" type="image/svg+xml">
+ <img src="{{ site.cdnurl }}/site-logo.png" alt="Gentoo Linux Logo">
+ </object>
+ </a>
+ </div>
+ </div>
+ </div>
+ </div>
+ <nav class="tyrian-navbar" role="navigation">
+ <div class="container">
+ <div class="row">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ </div>
+ <div class="collapse navbar-collapse navbar-main-collapse">
+ <ul class="nav navbar-nav">
+ {% include "includes/navigation/primary" %}
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ {% for node in pages %}
+ {% if node.nav1 == 'donate' %}
+ <li class="active"><a href="{{ node.url }}"><span class="fa fa-heart"></span>{{ node.title }}</a></li>
+ {% endif %}
+ {% endfor %}
+ </ul>
+ </div>
+ </div>
+ </div>
+ </nav>
+ {% if subpage %}
+ <nav class="navbar navbar-grey navbar-stick" role="navigation">
+ <div class="container">
+ <div class="row">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-secondary-collapse">
+ <span class="sr-only">Toggle secondary navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ </div>
+ <div class="collapse navbar-collapse navbar-secondary-collapse">
+ <ul class="nav navbar-nav">
+ {% include "includes/navigation/secondary" %}
+ </ul>
+ </div>
+ </div>
+ </div>
+ </nav>
+ {% endif %}
+</header> \ No newline at end of file
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
diff --git a/python/templates/includes/partials/download-link-raw.html b/python/templates/includes/partials/download-link-raw.html
new file mode 100644
index 0000000..0de2157
--- /dev/null
+++ b/python/templates/includes/partials/download-link-raw.html
@@ -0,0 +1,5 @@
+<a href="{{ urlprefix }}{{ link }}" data-relurl="{{ link }}" class="list-group-item download-link {% if urlprefix %} download-link-mirrorable{% endif %}">
+ <span class="fa fa-download fa-fw"></span>
+ <strong>{{ title }}</strong>{%if tag %}<span class="label label-primary download-tag"> {{ tag }}</span>{% endif %}
+ <span class="pull-right"><small class="download-date">{{ date }}</small> <span class="label label-default download-size hidden-xs">{{ size }}</span></span>
+</a> \ No newline at end of file
diff --git a/python/templates/includes/partials/download-link.html b/python/templates/includes/partials/download-link.html
new file mode 100644
index 0000000..14a2939
--- /dev/null
+++ b/python/templates/includes/partials/download-link.html
@@ -0,0 +1,4 @@
+{% capture url %}{{ include.arch }}/autobuilds/{{ site.data.downloads[include.arch][include.type][include.id].filename }}{% endcapture %}
+{% assign date = site.data.downloads[include.arch][include.type][include.id].date %}
+{% assign size = site.data.downloads[include.arch][include.type][include.id].size %}
+{% include partials/download-link-raw.html title=include.title tag=include.tag url=url urlprefix='http://distfiles.gentoo.org/releases/' date=date size=size %} \ No newline at end of file
diff --git a/python/templates/includes/partials/irc-channel.html b/python/templates/includes/partials/irc-channel.html
new file mode 100644
index 0000000..b7e6dba
--- /dev/null
+++ b/python/templates/includes/partials/irc-channel.html
@@ -0,0 +1,8 @@
+<tr>
+ <th>
+ <a href="irc://irc.gentoo.org/{{ channel.name }}"><tt>#{{ channel.name }}</tt></a>
+ </th>
+ <td>
+ {{ channel.description }}
+ </td>
+</tr> \ No newline at end of file
diff --git a/python/templates/includes/partials/mailinglist.html b/python/templates/includes/partials/mailinglist.html
new file mode 100644
index 0000000..39a9af1
--- /dev/null
+++ b/python/templates/includes/partials/mailinglist.html
@@ -0,0 +1,21 @@
+<tr>
+ <th>
+ {{ list.name }}
+ {% if list.moderated %}
+ <span class="label label-warning pull-right" title="This list is moderated"><span class="fa fa-fw fa-lock"></span></span>
+ {% endif %}
+ </th>
+ <td>
+ {{ list.description }}
+ {% if list.moderators %}
+ <br><small>Moderators: {{ list.moderators | join:', '}}</small>
+ {% endif %}
+ </td>
+ <td class="ml-actions hidden-xs">
+ <div class="btn-group btn-group-xs" role="group" aria-label="Mailing list actions for {{ list.name }}@lists.gentoo.org">
+ <a href="mailto:{{ list.name }}@lists.gentoo.org" title="Post to this list" class="btn btn-default"><span class="fa fa-fw fa-send"></span></a>
+ <a href="mailto:{{ list.name }}+subscribe@lists.gentoo.org" title="Subscribe to this list" class="btn btn-default"><span class="fa fa-fw fa-plus-square"></span></a>
+ <a href="http://archives.gentoo.org/{{ list.name }}/" title="Archives of this list" class="btn btn-default"><span class="fa fa-fw fa-archive"></span></a>
+ </div>
+ </td>
+</tr> \ No newline at end of file
diff --git a/python/templates/includes/partials/sponsor.html b/python/templates/includes/partials/sponsor.html
new file mode 100644
index 0000000..056d14e
--- /dev/null
+++ b/python/templates/includes/partials/sponsor.html
@@ -0,0 +1,14 @@
+<div class="row sponsor">
+ <div class="col-xs-12 col-md-3 sponsorlogo">
+ {% if sponsor.img and sponsor.link %}
+ <a href="{{ sponsor.link }}"><img src="/assets/img/sponsors/{{ sponsor.img }}" alt="{{ sponsor.name }}" /></a>
+ {% elsif sponsor.img %}
+ <img src="/assets/img/sponsors/{{ sponsor.img }}" alt="{{ sponsor.name }}" />
+ {% endif %}
+ </div>
+ <div class="col-xs-12 col-md-9 sponsortext text-justify">
+ <h3>{{ sponsor.name }}</h3>
+ {{ sponsor.blurb | markdownify }}
+ </div>
+</div>
+<hr /> \ No newline at end of file