[tor-commits] [community/develop] Proposed layout

pili at torproject.org pili at torproject.org
Thu Jan 23 10:16:38 UTC 2020


commit 229a747f897f90469dd74169dd0445bf420348e9
Author: Pili Guerra <pili at piliguerra.com>
Date:   Wed Jan 22 16:31:54 2020 +0100

    Proposed layout
---
 content/gsoc/privacy-friendly-web/contents.lr |  2 +-
 templates/project.html                        | 34 ++++++++++++++++++++++++++-
 2 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/content/gsoc/privacy-friendly-web/contents.lr b/content/gsoc/privacy-friendly-web/contents.lr
index 4aa6016..c37fbbe 100644
--- a/content/gsoc/privacy-friendly-web/contents.lr
+++ b/content/gsoc/privacy-friendly-web/contents.lr
@@ -1,6 +1,6 @@
 _model: project
 ---
-_template: layout.html
+_template: project.html
 ---
 active: True
 ---
diff --git a/templates/project.html b/templates/project.html
index eae2c56..7d16334 100644
--- a/templates/project.html
+++ b/templates/project.html
@@ -1 +1,33 @@
-{{ this.title }}
\ No newline at end of file
+<!doctype html>
+{% include 'meta.html' %}
+<body class="no-gutters">
+  <header>
+    {% include 'navbar.html' %}
+  </header>
+  <div class="page">
+    {% include 'header.html' %}
+    {% include 'pagenav.html' %}
+    <div class="container-fluid">
+      <div class="row flex-xl-nowrap">
+        <main role="main" class="mx-auto col-12 {{ bag('alternatives', this.alt, 'order') }}">
+         <div class="container py-3 mt-5">
+          {{ this.summary }}
+        </div>
+        <div class="container py-3">
+          {{ this.description }}
+        </div>
+      </main>
+    </div>
+    <div class="card mt-5">
+      <ul class="list-group list-group-flush">
+        <li class="list-group-item">
+          <a href="{{ this.parent|url }}">{{ _("Back to ") }}{{ this.parent.title }}</a>
+        </li>
+      </ul>
+    </div>
+  </div>
+</div>
+<footer>
+  {% include 'footer.html' %}
+</footer>
+</body>





More information about the tor-commits mailing list