From: Michael Tremer Date: Mon, 12 Nov 2012 20:32:17 +0000 (+0100) Subject: Update frontpage. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5955628de4fa17b9890c01b2c99c409527e3aaa;p=pbs.git Update frontpage. Remove silly slogans. --- diff --git a/data/templates/index.html b/data/templates/index.html index e1e47f82..51de3c0e 100644 --- a/data/templates/index.html +++ b/data/templates/index.html @@ -3,28 +3,26 @@ {% block title %}{{ _("Welcome to the Pakfire Build Service") }}{% end block %} {% block body %} -
-

- {{ _("Pakfire Build Service") }} - {{ random_slogan() }} -

+ {% if current_user %} + - {% if current_user %} -

- {{ _("Welcome %s! Great to see you again.") % current_user.firstname }} -

- {% else %} -

- {{ _("This is a service that organizes development and packaging for the IPFire distribution.") }} -
- {{ _("It is used to build and track packages as well as assembling images.") }} -

- {% end %} - - {{ _("Documentation") }} - -
+ {% else %} +
+

+ {{ _("Pakfire Build Service") }}
+ {{ _("Development powered by community!") }} +

+ +

+ + {{ _("Learn more") }} » +
+ +
+ {% end %} {% if updates %}
diff --git a/web/handlers_base.py b/web/handlers_base.py index 1091efb0..9b8c5ae4 100644 --- a/web/handlers_base.py +++ b/web/handlers_base.py @@ -67,11 +67,6 @@ class BaseHandler(tornado.web.RequestHandler): # If no one of the cases above worked we use our default locale return DEFAULT_LOCALE - def random_slogan(self): - slogan = self.pakfire.db.get("SELECT message FROM slogans ORDER BY RAND() LIMIT 1") - if slogan: - return slogan.message - @property def remote_address(self): """ @@ -108,7 +103,6 @@ class BaseHandler(tornado.web.RequestHandler): "format_filemode" : backend.misc.format_filemode, "lang" : self.locale.code[:2], "pakfire_version" : pakfire.__version__, - "random_slogan" : self.random_slogan, "year" : time.strftime("%Y"), }