]> git.ipfire.org Git - people/shoehn/ipfire.org.git/commitdiff
Fix layout of planet pages.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Mar 2014 16:48:27 +0000 (17:48 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 26 Mar 2014 16:48:27 +0000 (17:48 +0100)
templates/planet/index.html
templates/planet/posting.html
templates/planet/user.html

index e3218248e9745b9c473ff713bdcd82b1f4e88cbf..15cebd6764efb7c9fd74543d134a2aaa716b62d6 100644 (file)
        <br>
 
        <div class="row">
-               <div class="col-lg-4 col-md-4 col-lg-offset-4">
+               <div class="col-lg-6 col-md-6 col-lg-offset-3 ac">
                        <form class="form-inline" action="/search" method="GET">
-                               <div class="input-append">
-                                       <input type="text" class="form-control input-medium planet-search-autocomplete" name="q"
+                               <div class="form-group">
+                                       <label class="sr-only" for="searchBox">{{ _("Search") }}</label>
+                                       <input type="text" class="form-control planet-search-autocomplete" name="q" id="searchBox"
                                                placeholder="{{ _("Search") }}" autocomplete="off">
-                                       <button type="submit" class="btn btn-default"><i class="icon-search"></i></button>
-                               </div>
+                                       <button type="submit" class="btn btn-default">
+                                               <i class="glyphicon glyphicon-search"></i>
+                                       </button>
 
-                               <div class="btn-group">
-                                       <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
-                                               {{ _("All posts from") }}
-                                               <span class="caret"></span>
-                                       </a>
-                                       <ul class="dropdown-menu">
-                                               {% for y in years %}
-                                                       <li><a href="/year/{{ y }}">{{ y }}</a></li>
-                                               {% end %}
-                                       </ul>
+                                       <div class="btn-group">
+                                               <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">
+                                                       {{ _("All posts from") }}
+                                                       <span class="caret"></span>
+                                               </a>
+                                               <ul class="dropdown-menu">
+                                                       {% for y in years %}
+                                                               <li><a href="/year/{{ y }}">{{ y }}</a></li>
+                                                       {% end %}
+                                               </ul>
+                                       </div>
                                </div>
                        </form>
                </div>
index 4524a2abe2164ba8d580b418d1c555ca122d601f..9c622b0d48691440a539d3577afcd3f53432a98f 100644 (file)
@@ -9,27 +9,23 @@
                </h1>
        </div>
 
-       <div class="row">
-               <div class="col-lg-9 col-md-9">
-                       {% if entry.is_draft() %}
-                               <div class="alert alert-warning alert-dismissable">
-                                       <button type="button" class="close" data-dismiss="alert">&times;</button>
-                                       <strong>{{ _("Heads up!") }}</strong> {{ _("This post is a draft and has not been published, yet.") }}
-                               </div>
-                       {% end %}
-
-                       {% raw entry.text %}
+       {% if entry.is_draft() %}
+               <div class="alert alert-warning alert-dismissable">
+                       <button type="button" class="close" data-dismiss="alert">&times;</button>
+                       <strong>{{ _("Heads up!") }}</strong> {{ _("This post is a draft and has not been published, yet.") }}
                </div>
+       {% end %}
 
-               <p class="pull-right" style="clear: both;">
-                       {% if entry.tags %}
-                               {{ _("Tags") }}:
-                               {% for tag in entry.tags %}
-                                       <a href="/search?q={{ tag }}">{{ tag }}</a>
-                               {% end %} &bull;
-                       {% end %}
-                       {{ _("Posted by") }} <a href="/user/{{ entry.author.uid }}">{{ entry.author.cn }}</a>
-                       {{ _("on") }} {{ locale.format_date(entry.published, shorter=True) }}
-               </p>
-       </div>
+       {% raw entry.text %}
+
+       <p class="clear pull-right">
+               {% if entry.tags %}
+                       {{ _("Tags") }}:
+                       {% for tag in entry.tags %}
+                               <a href="/search?q={{ tag }}">{{ tag }}</a>
+                       {% end %} &bull;
+               {% end %}
+               {{ _("Posted by") }} <a href="/user/{{ entry.author.uid }}">{{ entry.author.cn }}</a>
+               {{ _("on") }} {{ locale.format_date(entry.published, shorter=True) }}
+       </p>
 {% end block %}
index 369a381db990b141a9d3fa5d9648ff22a1147274..189b5a0b168a13d172b6f140e9e7cd2189153032 100644 (file)
 
                <div class="col-lg-3 col-md-3">
                        <div class="well">
-                               <img class="img-rounded" src="{{ author.gravatar_icon(232) }}" alt="{{ author.cn }}" />
+                               <img class="img-thumbnail" src="{{ author.gravatar_icon(213) }}" alt="{{ author.cn }}" />
+
                                <hr>
+
+                               <i class="glyphicon glyphicon-user"></i>
                                <a href="/user/{{ author.uid }}">
-                                       <i class="glyphicon glyphicon-user"></i>
-                                       {{ escape(author.cn) }}
+                                       {{ author.cn }}
                                </a>
+
                                <hr>
+
+                               <i class="glyphicon glyphicon-envelope"></i>
                                <a href="mailto:{{ author.email }}">
-                                       <i class="glyphicon glyphicon-envelope"></i> {{ _("Mail") }}
+                                       {{ _("Mail") }}
                                </a>
                        </div>
                </div>