]>
Commit | Line | Data |
---|---|---|
55b162d6 MT |
1 | {% extends "base.html" %} |
2 | ||
3 | {% block title %}{{ _("IPFire Planet") }}{% end block %} | |
4 | ||
5 | {% block body %} | |
cc3b928d MT |
6 | <p class="lead ac"> |
7 | The <strong>IPFire Planet</strong> is a place for the people | |
8 | who are involved in the project to tell the community about | |
9 | new progress in the development or make some minor announcements. | |
10 | </p> | |
11 | <br> | |
55b162d6 | 12 | |
cc3b928d | 13 | <div class="row"> |
b3202856 | 14 | <div class="col-lg-6 col-md-6 col-lg-offset-3 ac"> |
cc3b928d | 15 | <form class="form-inline" action="/search" method="GET"> |
b3202856 MT |
16 | <div class="form-group"> |
17 | <label class="sr-only" for="searchBox">{{ _("Search") }}</label> | |
18 | <input type="text" class="form-control planet-search-autocomplete" name="q" id="searchBox" | |
a3e3c96d | 19 | placeholder="{{ _("Search") }}" autocomplete="off"> |
b3202856 MT |
20 | <button type="submit" class="btn btn-default"> |
21 | <i class="glyphicon glyphicon-search"></i> | |
22 | </button> | |
2bdd073f | 23 | |
b3202856 MT |
24 | <div class="btn-group"> |
25 | <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> | |
26 | {{ _("All posts from") }} | |
27 | <span class="caret"></span> | |
28 | </a> | |
29 | <ul class="dropdown-menu"> | |
30 | {% for y in years %} | |
31 | <li><a href="/year/{{ y }}">{{ y }}</a></li> | |
32 | {% end %} | |
33 | </ul> | |
34 | </div> | |
cc3b928d MT |
35 | </div> |
36 | </form> | |
37 | </div> | |
55b162d6 MT |
38 | </div> |
39 | ||
40 | <hr class="separator"> | |
41 | ||
42 | {% for entry in entries %} | |
43 | {% module PlanetEntry(entry) %} | |
44 | {% end %} | |
45 | ||
cc3b928d MT |
46 | <ul class="pager"> |
47 | <li class="previous"> | |
48 | <a href="?offset={{ offset }}">← {{ _("Older posts") }}</a> | |
49 | </li> | |
50 | {% if offset - limit %} | |
51 | <li class="next"> | |
52 | <a href="?offset={{ offset - (2 * limit) }}">{{ _("Newer posts") }} →</a> | |
53 | </li> | |
54 | {% end %} | |
55 | </ul> | |
55b162d6 | 56 | {% end block %} |