Changeset - d6232077c929
[Not reviewed]
version_5
0 3 0
Dennis Fink - 10 years ago 2015-10-13 19:55:54
dennis.fink@c3l.lu
Use alternative addresses for wiki and globe if connecting to the hidden service
3 files changed with 22 insertions and 2 deletions:
0 comments (0 inline, 0 general)
ennstatus/templates/base.html
Show inline comments
 
@@ -52,7 +52,7 @@
 
              </ul>
 
            </li>
 
            <li><a href="{{ url_for('root.mirrors') }}">Mirrors</a></li>
 
            <li><a href="https://wiki.enn.lu">Wiki</a></li>
 
            <li><a href="{{ get_wiki_address() }}">Wiki</a></li>
 
            <li><a href="{{ url_for('root.disclaimer') }}">About Ennstatus</a></li>
 
          </ul>
 
        </li>
ennstatus/templates/macros.html
Show inline comments
 
@@ -16,3 +16,13 @@
 
    {{ message }}
 
  </div>
 
{% endmacro %}
 

	
 
{% macro get_wiki_address() %}
 
  {% if '.onion' in request.url_root %}
 
    {{ config['ENNSTATUS_WIKI_ONION_ADDRESS'] }}
 
  {% elif '.bit' in request.url_root %}
 
    {{ config['ENNSTATUS_WIKI_BIT_ADDRESS'] }}
 
  {% else %}
 
    //wiki.enn.lu
 
  {% endif %}
 
{% endmacro %}
ennstatus/templates/root/mirrors.html
Show inline comments
 
@@ -2,6 +2,16 @@
 

	
 
{% set title = "Partners" %}
 

	
 
{% macro get_globe_address() %}
 
  {% if '.onion' in request.url_root %}
 
    {{ config['ENNSTATUS_GLOBE_ONION_ADDRESS'] }}
 
  {% elif '.bit' in request.url_root %}
 
    {{ config['ENNSTATUS_GLOBE_BIT_ADDRESS'] }}
 
  {% else %}
 
    //globe.enn.lu
 
  {% endif %}
 
{% endmacro %}
 

	
 
{% block content %}
 
  <div class="col-md-4 text-center">
 
    <img src="{{ url_for('static', filename='images/Services.png') }}" class="img-rounded" alt="Partners" width="160"></img>
 
@@ -17,7 +27,7 @@
 
      <dt><a href="http://tails.c3l.lu/" target="_blank">tails.enn.lu</a></dt>
 
      <dd>A Tails Download mirror. Tails is a live operating system, that you can start on almost any computer from a DVD, USB stick, or SD card. It aims at preserving your privacy and anonymity. <a href="https://tails.boum.org/" target="blank">Learn more about Tails</a></dd>
 
      <br>
 
      <dt><a href="https://globe.enn.lu/" target="_blank">globe.enn.lu</a></dt>
 
      <dt><a href="{{ get_globe_address() }}" target="_blank">globe.enn.lu</a></dt>
 
      <dd>Globe is a Tor relay and bridge explorer.</dd>
 
    </dl>
 
  </div>
0 comments (0 inline, 0 general)