[tor-commits] [community/develop] add edit button to two colum pages

hiro at torproject.org hiro at torproject.org
Wed Sep 18 09:38:29 UTC 2019


commit a9a844885df994a3b6127a51fe55f03bcfb62ed9
Author: emma peel <emma.peel at riseup.net>
Date:   Thu Aug 22 16:42:27 2019 +0200

    add edit button to two colum pages
---
 templates/two-columns-page.html | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/templates/two-columns-page.html b/templates/two-columns-page.html
index 0bd9569..4ccb30e 100644
--- a/templates/two-columns-page.html
+++ b/templates/two-columns-page.html
@@ -14,6 +14,13 @@
         </div>
     {% endfor %}
     </div>
-    <a href="{{ this.parent|url }}">Back to {{ this.parent.title }}</a>
+    <div class="card mt-5">
+      <ul class="list-group list-group-flush">
+        <!--li class="list-group-item"><a><span class="card-text text-muted">{{ _("Contributors to this page:") }} <a href="#" title="#">cypherpunk</a></span></li-->
+        <li class="list-group-item">
+                <a href="{{ this.parent|url }}">{{ _("Back to previous page: ") }}{{ this.parent.title }}</a> - <a href="https://github.com/torproject/community/edit/master/content{{ this.path }}/contents.lr">{{ _("Edit this page") }}</a>
+        </li>
+      </ul>
+    </div>
   </div>
 </div>
\ No newline at end of file





More information about the tor-commits mailing list