[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 0c3c378c5ecc3857bb968d30c7ffd00dbbe178d3
Author: emma peel <emma.peel@xxxxxxxxxx>
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

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits