commit 655d2cbcf4715b00955530c5d4055df77b3138bc Author: Pili Guerra pili@piliguerra.com Date: Mon Mar 23 17:18:36 2020 +0000
Add Tools section to Onion Services landing page. Fixes #66. --- assets/static/images/onions/png/globaleaks.png | Bin 0 -> 52806 bytes assets/static/images/onions/png/onionshare.png | Bin 0 -> 16103 bytes assets/static/images/onions/png/securedrop.png | Bin 0 -> 17483 bytes databags/onion-tools.ini | 17 +++++++++++++++++ templates/onion-services.html | 17 +++++++++++++++++ 5 files changed, 34 insertions(+)
diff --git a/assets/static/images/onions/png/globaleaks.png b/assets/static/images/onions/png/globaleaks.png new file mode 100644 index 0000000..d743c43 Binary files /dev/null and b/assets/static/images/onions/png/globaleaks.png differ diff --git a/assets/static/images/onions/png/onionshare.png b/assets/static/images/onions/png/onionshare.png new file mode 100644 index 0000000..e2948b0 Binary files /dev/null and b/assets/static/images/onions/png/onionshare.png differ diff --git a/assets/static/images/onions/png/securedrop.png b/assets/static/images/onions/png/securedrop.png new file mode 100644 index 0000000..55f9b01 Binary files /dev/null and b/assets/static/images/onions/png/securedrop.png differ diff --git a/databags/onion-tools.ini b/databags/onion-tools.ini new file mode 100644 index 0000000..d37dc3b --- /dev/null +++ b/databags/onion-tools.ini @@ -0,0 +1,17 @@ +[onionshare] +link = https://onionshare.org/ +image = /static/images/onions/png/onionshare.png +label = OnionShare +active = True + +[securedrop] +link = https://securedrop.org +image = /static/images/onions/png/securedrop.png +label = SecureDrop +active = True + +[globaleaks] +link = https://www.globaleaks.org/ +image =/static/images/onions/png/globaleaks.png +label= GlobaLeaks +active = True diff --git a/templates/onion-services.html b/templates/onion-services.html index a4a7ed6..2362213 100644 --- a/templates/onion-services.html +++ b/templates/onion-services.html @@ -51,6 +51,23 @@ </div> {% endfor %} </div> + <div class="row py-5 text-center mx-auto"> + <h2 class="display-4 text-primary text-center mx-auto">{{ _('Tools') }}</h2> + </div> + <div class="row mx-auto d-flex flex-wrap align-items-center"> + {% for id, item in bag('onion-tools').items() %} + {% if item.active == "True" %} + <div class="col-4"> + <div class="card h-50 border-0"> + <a href="{{ item.link }}"><img class="card-img-top h-100 w-50 mx-auto d-block" src="{{ item.image|asseturl }}"></a> + <div class="card-body"> + <p class="card-text text-primary text-center"><a href="{{ item.link }}">{{ item.label }}</a></p> + </div> + </div> + </div> + {% endif %} + {% endfor %} + </div> <div class="row py-5 text-center mx-auto"> <h2 class="display-4 text-primary text-center mx-auto my-3">{{ _('Learn More') }}</h2> <p class="text-center">
tor-commits@lists.torproject.org