forked from I2P_Developers/i2p.www
Removed duplicate links from footer, and added theme changing links
This commit is contained in:
@@ -153,8 +153,15 @@ def utility_processor():
|
||||
args['page'] = page
|
||||
return url_for(request.endpoint, **args)
|
||||
|
||||
# Change the theme of the current page
|
||||
def change_theme(theme):
|
||||
args = request.view_args.copy()
|
||||
args['theme'] = theme
|
||||
return url_for(request.endpoint, **args)
|
||||
|
||||
return dict(i2pconv=convert_url_to_clearnet,
|
||||
url_for_other_page=url_for_other_page)
|
||||
url_for_other_page=url_for_other_page,
|
||||
change_theme=change_theme)
|
||||
|
||||
|
||||
################
|
||||
|
@@ -1,18 +1,14 @@
|
||||
<div class='aside first'>
|
||||
<h1>{{ _('News') }}</h1>
|
||||
<h1>{{ _('Themes') }}</h1>
|
||||
<ul>
|
||||
<li><a href="{{ url_for('blog_index', lang=g.lang) }}">{{ _('Blog') }}</a></li>
|
||||
<li><a href="{{ url_for('meetings_index', lang=g.lang) }}">{{ _('Meetings') }}</a></li>
|
||||
<li><a href="{{ change_theme('duck') }}">{{ _('Duck') }}</a></li>
|
||||
<li><a href="{{ change_theme('light') }}">{{ _('Light') }}</a></li>
|
||||
<li><a href="{{ change_theme('dark') }}">{{ _('Dark') }}</a></li>
|
||||
<li><a href="{{ change_theme('default') }}">{{ _('Barebones styling') }}</a></li>
|
||||
<li><a href="{{ change_theme('mainmenu') }}">{{ _('Dropdown menu only') }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class='aside second'>
|
||||
<h1>{{ _('About I2P') }}</h1>
|
||||
<ul>
|
||||
<li><a href="{{ site_url('about/team') }}">{{ _('I2P Team') }}</a></li>
|
||||
<li><a href="{{ site_url('about/halloffame') }}">{{ _('Hall of Fame') }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class='aside third'>
|
||||
<h1>{{ _('Mirrors') }}</h1>
|
||||
<ul>
|
||||
<li><a rel="nofollow" href="http://www.geti2p.net/">http://www.geti2p.net</a></li>
|
||||
@@ -20,13 +16,13 @@
|
||||
<li><a rel="nofollow" href="http://i2p-projekt.de/">http://i2p-projeckt.de</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class='aside fourth'>
|
||||
<div class='aside third'>
|
||||
<h1>{{ _('Secure') }}</h1>
|
||||
<ul>
|
||||
<li><a rel="nofollow" href="https://www.i2p2.de/">https://www.i2p2.de</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class='aside fifth'>
|
||||
<div class='aside fourth'>
|
||||
<h1>{{ _('Misc.') }}</h1>
|
||||
<ul>
|
||||
<li><a href="http://syndie.i2p2.de/">Syndie</a></li>
|
||||
@@ -34,11 +30,13 @@
|
||||
<li><a href="{{ site_url('impressum') }}">{{ _('Impressum') }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class='aside sixth'>
|
||||
<div class='aside fifth'>
|
||||
<h1>{{ _('T-Shirts!') }}</h1>
|
||||
<ul>
|
||||
<li><a rel="nofollow" href="http://www.getdigital.de/products/I2P_Fanshirt/lng/en">{{ _('Europe') }}</a></li>
|
||||
<li><a rel="nofollow" href="https://i2pshop.spreadshirt.com/">{{ _('USA') }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class='aside sixth'>
|
||||
<a class='button' href="{{ site_url('volunteer/donate') }}">{{ _('Donate') }}</a>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user