Common header/footer templates and CSS for Django-based Mozilla sites.
Перейти к файлу
Wil Clouser 898e061271 add olympia 2014-12-17 08:50:27 -08:00
mobile Added inline SVG feature detection and use it for webkit fallbacks. 2011-02-28 18:38:40 -05:00
README.rst add olympia 2014-12-17 08:50:27 -08:00
background.png Footer and header images included from SUMO. Paths set such that this submodule works from media/global 2010-12-08 11:45:08 -08:00
copyright.html Fixed Privacy policy link 2014-04-18 13:25:43 +05:30
footer.css Separated header and footer styles into their own files. Added RTL tweaks. 2011-10-03 13:26:52 -04:00
footer.html bug 683312 removed footer links 2014-01-08 11:09:08 -08:00
header-logos.png Update Firefox wordmark. 2011-09-19 16:22:03 -04:00
header.css Separated header and footer styles into their own files. Added RTL tweaks. 2011-10-03 13:26:52 -04:00
header.html Cleanup HTML; add more links 2011-10-18 12:38:28 -03:00
menu.js [bug 615889] Add hover delay and decrease hide delay. 2011-01-24 13:04:33 -08:00
menu_links.html updated careers link to work with new site url 2012-01-11 17:21:29 -05:00
minimal-header.html Cleanup HTML; add more links 2011-10-18 12:38:28 -03:00
mobile.css Added inline SVG feature detection and use it for webkit fallbacks. 2011-02-28 18:38:40 -05:00
mobilefeatures.js Added inline SVG feature detection and use it for webkit fallbacks. 2011-02-28 18:38:40 -05:00
wordmark-slim.png slim header style. opt in with body.moz-slim-header 2011-01-24 15:55:42 -08:00

README.rst

Django-moz-header
^^^^^^^^^^^^^^^^^
Because ``{% include "http://mozilla.org/footer.html" %}`` would be naughty
---------------------------------------------------------------------------

Global header/footer templates and css shared between Django-powered sites
at Mozilla.

Out of the box, you get:

* Header/footer images, CSS set such that these image paths work if the CSS is
  served from media/global, both minified and not
* Fluid width for both header and footer
* JS that adds a hide delay on header drop downs


Requirements
^^^^^^^^^^^^

* Jinja 2.

* A jinja ``|f`` filter, used to interpolate parameters, like so::

    'visit {0}'|f('<span>mozilla</span>')

* The JS is optional, but using it requires jQuery; tested with 1.3 or later.


In Use By
^^^^^^^^^

The following projects are currently using this code:

* Kitsune_
* Nocturnal_
* Olympia_
* Zamboni_

Please add your project to this list if you're using django-moz-header!

.. _Kitsune: https://github.com/jsocol/kitsune
.. _Nocturnal: https://github.com/mozilla/nocturnal
.. _Olympia: https://github.com/mozilla/olympia
.. _Zamboni: https://github.com/mozilla/zamboni