Root/
| Source at commit fa902960fca081160395f623edf2d9727c83aaf6 created 9 months 12 days ago. By Jordan Bracco, I *really* need to sleep. Or Django *really* need to have more sexy templatings. Like HAML. | |
|---|---|
| 1 | {% extends "base.html" %} |
| 2 | {% block title %} — le top !{% endblock %} |
| 3 | {% block content %} |
| 4 | <h1>Le top des commandes !</h1> |
| 5 | |
| 6 | <ul class="top_duration"> |
| 7 | <li><a href="?dur=all">Depuis le début</a></li> |
| 8 | <li><a href="?dur=month">Depuis un mois</a></li> |
| 9 | <li><a href="?dur=week">Depuis une semaine</a></li> |
| 10 | <li><a href="?dur=day">Depuis 24 heures</a></li> |
| 11 | </ul> |
| 12 | |
| 13 | <ul class="search_listing"> |
| 14 | {% load truncate %} |
| 15 | {% for hit in hits %} |
| 16 | <li> |
| 17 | <div class="pos"><span class="nb">{{ forloop.counter }}</span><br />x{{ hit.count }}</div> |
| 18 | <h2><samp class="cmd">{{ hit.command.name }}</samp><samp class="synopsis">{{ hit.command.synopsis }}</samp><a class="man" href="/man {{ hit.command.name }}"><img class="desc" src="/medias/images/description.png" alt="manuel" title="Manuel de la commande {{ hit.command.name }}" /></a></h2> |
| 19 | <p>{{ hit.command.description|truncate_to_first_line }}</p> |
| 20 | </li> |
| 21 | {% endfor %} |
| 22 | </ul> |
| 23 | <div style="clear:both;"> </div> |
| 24 | {% endblock %} |
| 25 | |
