]> git.ipfire.org Git - pbs.git/commitdiff
Update frontpage.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 12 Nov 2012 20:32:17 +0000 (21:32 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 12 Nov 2012 20:32:17 +0000 (21:32 +0100)
Remove silly slogans.

data/templates/index.html
web/handlers_base.py

index e1e47f824a556387bc15f5924a3f3c425dc2e15d..51de3c0e48e4f04725b637ed892e32394b2084a1 100644 (file)
@@ -3,28 +3,26 @@
 {% block title %}{{ _("Welcome to the Pakfire Build Service") }}{% end block %}
 
 {% block body %}
-       <div class="hero-unit">
-               <h1>
-                       {{ _("Pakfire Build Service") }}
-                       <small>{{ random_slogan() }}</small>
-               </h1>
+       {% if current_user %}
+               <div class="page-header">
+                       <h2>{{ _("Welcome, %s!") % current_user.firstname }}</h2>
+               </div>
 
-               {% if current_user %}
-                       <p>
-                               {{ _("Welcome %s! Great to see you again.") % current_user.firstname }}
-                       </p>
-               {% else %}
-                       <p>
-                               {{ _("This is a service that organizes development and packaging for the IPFire distribution.") }}
-                               <br />
-                               {{ _("It is used to build and track packages as well as assembling images.") }}
-                       </p>
-               {% end %}
 
-               <a class="btn btn-large pull-right" href="/documents">
-                       {{ _("Documentation") }}
-               </a>
-       </div>
+       {% else %}
+               <div class="hero-unit ac" style="background-color: white">
+                       <h1>
+                               {{ _("Pakfire Build Service") }}<br>
+                               <small>{{ _("Development powered by community!") }}</small>
+                       </h1>
+
+                       <br><br>
+
+                       <a class="btn" href="/documents">{{ _("Learn more") }} &raquo;</a>
+               </div>
+
+               <hr>
+       {% end %}
 
        {% if updates %}
                <div class="row">
index 1091efb09750910dc7eae1dacb204dcea57843b6..9b8c5ae44081bce64670d2898bb6de431ea998b6 100644 (file)
@@ -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"),
                }