New website design based on Bootstrap. Complete revamp of the UI
interface and of the interface paradigms. Complete rewrite of the map
creation wizard, now simpler and with less steps.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
This allows us to know if the PostGIS database is up and gets us a lag
information that is not refreshed only every minute by a cronjob.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
The GIS database lag information was directly read from the GIS
database for every web page rendered by the MapOSMatic web
server. This is very inefficient since this value changes very
slowly. Instead, read the value from a local file which gets updated
from time to time by a cronjob using a small shell script.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
We want the Paypal donation button to be translated, and the user to
be redirected to a page in his/her language when making a donation.
Unfortunately, Paypal does not seem to have translations for all the
languages we support, so we default to English when the language is
not available from Paypal.
This new mechanism requires translators to add a new entry in the
PAYPAL_LANGUAGES dictionary if Paypal provides a button and a site in
their language.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
This commit implements a new item on the right of the MapOSMatic
website, which gives users the current time delta between our GIS
database and the official OSM database.
In order to implement this, we created a small gisdb.py module which
factorizes the work of connecting to the GIS database, now used by
both the Nominatim code and our new code that fetches the last update
of the GIS database through the maposmatic_admin table.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
Remove the overhead of parsing blog entries when generating the rss
feed. This saves a lot of CPU.
Signed-off-by: Gaël Utard <gael.utard@laposte.net>
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>