Changeset - 7f9dc38d8318
[Not reviewed]
default
0 2 0
Dennis Fink - 10 years ago 2014-12-14 12:01:47
dennis.fink@c3l.lu
Added preliminary support for .bit addresses
2 files changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
ennstatus/templates/base.html
Show inline comments
 
@@ -35,6 +35,8 @@
 
        <li>
 
          {% if '.onion' in request.url_root %}
 
            <a href="//{{ config['ENNSTATUS_WIKI_ONION_ADDRESS'] }}/doku.php?id=news">News</a>
 
          {% elif '.bit' in request.url_root %}
 
            <a href="//{{ config['ENNSTATUS_WIKI_BIT_ADDRESS'] }}/doku.php?id=news">News</a>
 
          {% else %}
 
            <a href="//wiki.enn.lu/doku.php?id=news">News</a>
 
          {% endif %}
 
@@ -75,6 +77,8 @@
 
        <li>
 
          {% if '.onion' in request.url_root %}
 
            <a href="//{{ config['ENNSTATUS_WIKI_ONION_ADDRESS'] }}">Wiki</a>
 
          {% elif '.bit' in request.url_root %}
 
            <a href="//{{ config['ENNSTATUS_WIKI_BIT_ADDRESS'] }}">Wiki</a>
 
          {% else %}
 
            <a href="//wiki.enn.lu">Wiki</a>
 
          {% endif %}
ennstatus/templates/status/macros.html
Show inline comments
 
@@ -31,6 +31,8 @@
 
  {% endif %}
 
  {% if '.onion' in request.url_root %}
 
    {% set url_root = '//%s' % config['ENNSTATUS_GLOBE_ONION_ADDRESS'] %}
 
  {% elif '.bit' in request.url_root %}
 
    {% set url_root = '//%s' % config['ENNSTATUS_GLOBE_BIT_ADDRESS'] %}
 
  {% else %}
 
    {% set url_root = '//globe.enn.lu' %}
 
  {% endif %}
0 comments (0 inline, 0 general)