{{ modules.NewsItem(item) }}
{% end %}
- <h4>{{ _("Recent news") }}:</h4>
- <ul class="news">
- {% for item in recent_news %}
- <li>{{ modules.NewsLine(item) }}</li>
+ <div class="line"></div>
+
+ {% for item in recent_planets %}
+ <strong>{{ _("Have you already seen?") }}</strong>
+ <a href="http://planet.ipfire.org/user/{{ item.author.uid }}">{{ item.author.cn }}</a>
+ {{ _("talks about") }}
+ <a href="http://planet.ipfire.org/post/{{ item.slug }}">{{ item.title }}</a>
+ {{ _("on the IPFire planet.") }}
{% end %}
- </ul>
+ <br class="clear" />
<br class="clear" />
<p class="right">
"See a breakdown of the CPU cores that are installed on the IPFire systems.","Hier ist eine Übersicht über die Anzahl der CPU-Kerne, die in den IPFire-Systemen installiert sind."
"CPU cores counter","CPU-Kerne"
"All together, there are <strong>%s bogomips</strong> out there.","Insgesamt bringen es alle Systeme auf <strong>%s bogomips</strong>."
+"Have you already seen?","Schon gesehen?"
+"talks about","redet über"
+"on the IPFire planet.","auf dem IPFire planet."
def get(self):
# Get a list of the most recent news items and put them on the page.
latest_news = self.news.get_latest(limit=1, locale=self.locale)
- recent_news = self.news.get_latest(limit=3, locale=self.locale, offset=1)
+ recent_planets = self.planet.get_entries(limit=1)
return self.render("index.html",
- latest_news=latest_news, recent_news=recent_news)
+ latest_news=latest_news, recent_planets=recent_planets)
class StaticHandler(BaseHandler):