text-align: center;
}
+.clear {
+ clear: both;
+}
+
+.separator {
+ margin: 40px 0 39px;
+}
+
+.img-padding {
+ padding: 10px;
+}
+
table.table-fireinfo td.bar {
width: 70%;
}
-<div class="row">
- <div class="span9">
- {% if show_avatar %}
- <a class="pull-right" href="/user/{{ entry.author.uid }}">
- <img class="img-polaroid" src="{{ entry.author.gravatar_icon(96) }}" alt="{{ entry.author.cn }}" />
- </a>
- {% end %}
+{% if show_avatar %}
+ <a class="pull-right" href="/user/{{ entry.author.uid }}">
+ <img class="img-rounded img-padding" src="{{ entry.author.gravatar_icon(96) }}" alt="{{ entry.author.cn }}" />
+ </a>
+{% end %}
- <h2>
- <a href="/post/{{ entry.slug }}">{{ entry.title }}</a>
- </h2>
+<h2>
+ <a href="/post/{{ entry.slug }}">{{ entry.title }}</a>
+</h2>
- {% raw entry.text %}
+{% raw entry.text %}
- <p class="pull-right" style="clear: both;">
- {{ _("Posted by") }} <a href="/user/{{ entry.author.uid }}">{{ entry.author.cn }}</a>
- {{ _("on") }} {{ locale.format_date(entry.published, shorter=True) }}
- </p>
- </div>
-</div>
+<p class="pull-right clear">
+ {{ _("Posted by") }} <a href="/user/{{ entry.author.uid }}">{{ entry.author.cn }}</a>
+ {{ _("on") }} {{ locale.format_date(entry.published, shorter=True) }}
+</p>
-<hr>
+<hr class="separator clear">
+++ /dev/null
-{% extends "base-2.html" %}
-
-{% block title %}{{ _("IPFire Planet") }}{% end block %}
-
-{% block bodyA %}
- <div class="page-header">
- <h1>{{ _("IPFire Planet") }}</h1>
- </div>
-
- <div class="row">
- <div class="span9">
- {% if lang == "de" %}
- <p>
- Der <strong>IPFire Planet</strong> ist eine Plattform für alle
- Personen, die in das Projekt involviert sind um mit der
- Community in Kontakt zu bleiben und sie über neue Entwicklungen
- zu informieren.
- </p>
- <p>
- Um den Aufwand für die Entwickler in Maßen zu halten sind
- alle Einträge nur auf Englisch verfügbar.
- </p>
- {% else %}
- <p>
- The <strong>IPFire Planet</strong> is a place for the people
- who are involved in the project to tell the community about
- new progress in the development or make some minor announcements.
- </p>
- {% end %}
-
- <hr>
- </div>
- </div>
-
- {% for entry in entries %}
- {% module PlanetEntry(entry) %}
- {% end %}
-
- <div class="row">
- <div class="span9">
- <ul class="pager">
- <li class="previous">
- <a href="?offset={{ offset }}">← {{ _("Older posts") }}</a>
- </li>
- {% if offset - limit %}
- <li class="next">
- <a href="?offset={{ offset - (2 * limit) }}">{{ _("Newer posts") }} →</a>
- </li>
- {% end %}
- </ul>
- </div>
- </div>
-{% end block %}
-
-{% block bodyB %}
- <div class="row">
- <div class="span3">
- <h3>{{ _("Subscribe") }}</h3>
-
- {% if lang == "de" %}
- XXX GERMAN TEXT MISSING
- {% else %}
- <p>
- Click on the button below to subscribe to the IPFire planet feed.
- Add it to you favourite news reader and you will see new
- posts immediately.
- </p>
- {% end %}
-
- <p style="text-align: center;">
- <a class="btn" href="http://planet.ipfire.org/rss">
- <i class="icon-globe"></i> {{ _("Feed") }}
- </a>
- </p>
-
- <hr>
- </div>
- </div>
-
- <div class="row">
- <div class="span3">
- <h4>{{ _("People on the IPFire planet") }}</h4>
- <ul>
- {% for author in authors %}
- <li>
- <a href="/user/{{ author.uid }}">{{ author.cn }}</a>
- </li>
- {% end %}
- </ul>
- </div>
- </div>
-{% end %}
+++ /dev/null
-{% extends "base-2.html" %}
-
-{% block title %}{{ _("IPFire Planet") }} - {{ author.cn }}{% end block %}
-
-{% block bodyA %}
- <div class="page-header">
- <h1>{{ author.cn }}'s posts</h1>
- </div>
-
- {% if entries %}
- {% for entry in entries %}
- {% module PlanetEntry(entry, show_avatar=False) %}
- {% end %}
-
- <div class="row">
- <div class="span9">
- <ul class="pager">
- <li class="previous">
- <a href="?offset={{ offset }}">← {{ _("Older posts") }}</a>
- </li>
- {% if offset - limit %}
- <li class="next">
- <a href="?offset={{ offset - (2 * limit) }}">{{ _("Newer posts") }} →</a>
- </li>
- {% end %}
- </ul>
- </div>
- </div>
- {% else %}
- <p>{{ _("%s did not write any posts, yet.") % author.cn }}</p>
- {% end %}
-{% end block %}
-
-{% block bodyB %}
- <div class="well">
- <img class="img-rounded" src="{{ author.gravatar_icon(232) }}" alt="{{ author.cn }}" />
- <hr>
- <a href="/user/{{ author.uid }}">
- <i class="icon-user"></i>
- {{ escape(author.cn) }}
- </a>
- <hr>
- <a href="mailto:{{ author.email }}">
- <i class="icon-envelope"></i> {{ _("Mail") }}
- </a>
- </div>
-{% end block %}
--- /dev/null
+{% extends "../base.html" %}
+
+{% block header %}
+ <header class="jumbotron subhead" id="overview">
+ <div class="container">
+ <h1>{{ _("IPFire Planet") }}</h1>
+ <p class="lead">{{ _("The official blog of the IPFire team") }}</p>
+ </div>
+ </header>
+{% end header %}
--- /dev/null
+{% extends "base.html" %}
+
+{% block title %}{{ _("IPFire Planet") }}{% end block %}
+
+{% block body %}
+ <div class="ac">
+ <p class="lead">
+ The <strong>IPFire Planet</strong> is a place for the people
+ who are involved in the project to tell the community about
+ new progress in the development or make some minor announcements.
+ </p>
+
+ <p>
+ <a class="btn btn-primary btn-large" href="http://planet.ipfire.org/rss">
+ Subscribe to our RSS feed to stay up to date.
+ </a>
+ </p>
+ </div>
+
+ <hr class="separator">
+
+ {% for entry in entries %}
+ {% module PlanetEntry(entry) %}
+ {% end %}
+
+ <div class="row">
+ <div class="span9">
+ <ul class="pager">
+ <li class="previous">
+ <a href="?offset={{ offset }}">← {{ _("Older posts") }}</a>
+ </li>
+ {% if offset - limit %}
+ <li class="next">
+ <a href="?offset={{ offset - (2 * limit) }}">{{ _("Newer posts") }} →</a>
+ </li>
+ {% end %}
+ </ul>
+ </div>
+ </div>
+{% end block %}
-{% extends "planet-user.html" %}
+{% extends "user.html" %}
{% block title %}{{ _("IPFire Planet") }} - {{ entry.title }}{% end block %}
{% block bodyA %}
<div class="page-header">
- <h2>
+ <h1>
<a href="/post/{{ entry.slug }}">{{ entry.title }}</a>
- </h2>
+ </h1>
</div>
<div class="row">
--- /dev/null
+{% extends "base.html" %}
+
+{% block title %}{{ _("IPFire Planet") }} - {{ author.cn }}{% end block %}
+
+{% block body %}
+ <div class="row">
+ <div class="span9">
+ {% block bodyA %}
+ <div class="page-header">
+ <h1>{{ author.cn }}'s posts</h1>
+ </div>
+
+ {% if entries %}
+ {% for entry in entries %}
+ {% module PlanetEntry(entry, show_avatar=False) %}
+ {% end %}
+
+ <div class="row">
+ <div class="span9">
+ <ul class="pager">
+ <li class="previous">
+ <a href="?offset={{ offset }}">← {{ _("Older posts") }}</a>
+ </li>
+ {% if offset - limit %}
+ <li class="next">
+ <a href="?offset={{ offset - (2 * limit) }}">{{ _("Newer posts") }} →</a>
+ </li>
+ {% end %}
+ </ul>
+ </div>
+ </div>
+ {% else %}
+ <p>{{ _("%s did not write any posts, yet.") % author.cn }}</p>
+ {% end %}
+ {% end block %}
+ </div>
+
+ <div class="span3">
+ <div class="well">
+ <img class="img-rounded" src="{{ author.gravatar_icon(232) }}" alt="{{ author.cn }}" />
+ <hr>
+ <a href="/user/{{ author.uid }}">
+ <i class="icon-user"></i>
+ {{ escape(author.cn) }}
+ </a>
+ <hr>
+ <a href="mailto:{{ author.email }}">
+ <i class="icon-envelope"></i> {{ _("Mail") }}
+ </a>
+ </div>
+ </div>
+ </div>
+{% end block %}
<pubDate>{{ item.date.strftime("%a, %d %b %Y %H:%M:%S +0200") }}</pubDate>
<description>
<![CDATA[
- {{ item.text }}
+ {% raw item.text %}
]]>
</description>
</item>
entries = self.planet.get_entries(offset=offset, limit=limit)
- self.render("planet-main.html", entries=entries,
- authors=self.planet.get_authors(),
+ self.render("planet/index.html", entries=entries,
offset=offset + limit, limit=limit)
entries = self.planet.get_entries_by_author(author.uid,
offset=offset, limit=limit)
- self.render("planet-user.html", author=author, entries=entries,
+ self.render("planet/user.html", author=author, entries=entries,
offset=offset + limit, limit=limit, rss_url="/user/%s/rss" % author.uid)
if not entry:
raise tornado.web.HTTPError(404)
- self.render("planet-posting.html",
+ self.render("planet/posting.html",
author=entry.author, entry=entry)