From b3a35bfb80d1c24b942bef9c0ce6485166329834 Mon Sep 17 00:00:00 2001 From: str4d Date: Sun, 6 Mar 2016 21:28:44 +0000 Subject: [PATCH] Replace footer with download and donate images --- i2p2www/pages/downloads/macros | 2 +- i2p2www/pages/global/footer.html | 53 ++++++------------- i2p2www/pages/global/nav.html | 2 + .../site/get-involved/develop/licenses.html | 8 +++ i2p2www/static/styles/duck/default.css | 1 + 5 files changed, 28 insertions(+), 38 deletions(-) diff --git a/i2p2www/pages/downloads/macros b/i2p2www/pages/downloads/macros index 4c1560d7..e80c484b 100644 --- a/i2p2www/pages/downloads/macros +++ b/i2p2www/pages/downloads/macros @@ -48,7 +48,7 @@ {%- set name = 'Mac OS X' -%} {%- set icon = 'images/download/mac-osx.png' -%} {%- elif type == 'unix' -%} - {%- set name = 'GNU/Linux / BSD / Solaris' -%} + {%- set name = 'Linux / BSD / Solaris' -%} {%- set icon = 'images/download/freebsd-tux.png' -%} {%- endif -%} {%- set filename = 'i2pinstall_%s.jar' -%} diff --git a/i2p2www/pages/global/footer.html b/i2p2www/pages/global/footer.html index b781efb4..cd6d268e 100644 --- a/i2p2www/pages/global/footer.html +++ b/i2p2www/pages/global/footer.html @@ -1,38 +1,17 @@ -
-

{{ _('Mirrors') }}

- -
-
-

{{ _('Secure') }}

- -
-
-

{{ _('Misc.') }}

- -
-
-

{{ _('T-Shirts!') }}

- -
-
- {{ _('Donate') }} -
-
- +{% macro footer_div(pos, url, name, icon) -%} + +{%- endmacro %} +{% macro footer_download(pos, type, name, icon) -%} +{{ footer_div(pos, '%s#%s' % (get_url('downloads_list'), type), name, icon) }} +{%- endmacro %} +{{ footer_download('first', 'windows', 'Windows', 'images/download/windows.png') }} +{{ footer_download('second', 'mac', 'Mac OS X', 'images/download/mac-osx.png') }} +{{ footer_download('third', 'unix', 'Linux / BSD / Solaris', 'images/download/freebsd-tux.png') }} +{{ footer_div('fourth', get_url('downloads_debian'), 'Debian / Ubuntu', 'images/download/debian-ubuntu.png') }} +{{ footer_download('fifth', 'android', 'Android', 'images/download/android.png') }} +{{ footer_div('sixth', site_url('get-involved/donate'), _('Donate'), 'images/itoopie.png') }} diff --git a/i2p2www/pages/global/nav.html b/i2p2www/pages/global/nav.html index e50374ae..f3a38934 100644 --- a/i2p2www/pages/global/nav.html +++ b/i2p2www/pages/global/nav.html @@ -96,6 +96,8 @@
  • +
  • +
  • diff --git a/i2p2www/pages/site/get-involved/develop/licenses.html b/i2p2www/pages/site/get-involved/develop/licenses.html index a3b3fae0..90f1f946 100644 --- a/i2p2www/pages/site/get-involved/develop/licenses.html +++ b/i2p2www/pages/site/get-involved/develop/licenses.html @@ -297,6 +297,14 @@ or source code in question for authoritative terms. Component source locations resource packaging may be changed if the repository is reorganized. {%- endtrans %}

    +

    {{ _('Website content') }}

    +Creative Commons License + +

    +Except where otherwise noted, content on this site is licensed under a +Creative Commons Attribution-ShareAlike 4.0 International License. +

    +

    {{ _('Commit privileges') }}

    {% trans monotone=site_url('get-involved/guides/monotone') -%} Developers may push changes to a distributed monotone repository if you diff --git a/i2p2www/static/styles/duck/default.css b/i2p2www/static/styles/duck/default.css index 60129146..525309a3 100644 --- a/i2p2www/static/styles/duck/default.css +++ b/i2p2www/static/styles/duck/default.css @@ -477,6 +477,7 @@ pre.literal-block { #global-footer .aside { display: inline-block; + text-align: center; vertical-align: top; }