added LP 2017 banner to top of base gmg template

master
Andrew Engelbrecht 7 years ago
parent a990cd9228
commit 2b91cd6341
  1. 3
      mediagoblin_libreplanet/__init__.py
  2. 29
      mediagoblin_libreplanet/templates/libreplanet/banner.html
  3. 3
      mediagoblin_libreplanet/templates/libreplanet/join.html

@ -111,6 +111,7 @@ hooks = {
}
register_template_hooks(
{'header_extra': "libreplanet/join.html"}
{'header_left': "libreplanet/banner.html",
'header_extra': "libreplanet/join.html"}
)

@ -0,0 +1,29 @@
{#
# MediaGoblin for LibrePlanet
# Copyright (C) 2017 Andrew Engelbrecht <andrew@fsf.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
<div style="position: absolute; margin-left: -30px; width: 1000px;">
<iframe src="//static.fsf.org/nosvn/banners/libreplanet/libreplanet-banner.html" width="100%" height="64px" frameborder="0" scrolling="no"></iframe>
</div>
{# for spacing below the banner
also update the join.html template file when adding/removing/changing
the spacing of this div.
-- sudoman 2017-03-09
#}
<div style="margin-top: 64px;"></div>

@ -16,6 +16,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
{# for spacing below the banner; see banner.html template. -- sudoman 2017-03-09 #}
<div style="margin-top: 64px;"></div>
<a href="http://fsf.org/jfb">
<img id="join-button" src="//static.fsf.org/nosvn/join.en.png" alt="Join now" style="margin-right: 40px" />
</a>

Loading…
Cancel
Save