~chipaca/unity-lens-video/custom-user-agent

« back to all changes in this revision

Viewing changes to templates/main/top_n.html

  • Committer: Janos Gyerik
  • Date: 2011-08-08 20:19:00 UTC
  • Revision ID: janos@axiom-20110808201900-rpq8pghds6gf8vnl
top 50 link now works

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% extends "base.html" %}
 
2
 
 
3
{% load nst %}
 
4
 
 
5
{% block pagetitle %}top 50{% endblock %}
 
6
 
 
7
{% block keywords %}{% endblock %}
 
8
 
 
9
{% block description %}{% endblock %}
 
10
 
 
11
{% block content %}
 
12
 
 
13
{% for oneliner in oneliners %}
 
14
<div class="oneliner">
 
15
    <p class="author">
 
16
        @<span>{{ oneliner.hacker.username }}</span> 
 
17
        on <span>{{ oneliner.created_dt }}</span>
 
18
        #
 
19
        {{ oneliner.get_votes_up }} <img src="/media/icons/thumbsup.png"/>
 
20
        {{ oneliner.get_votes_down }} <img src="/media/icons/thumbsdown.png"/>
 
21
    </p>
 
22
 
 
23
    <pre>{% for line in oneliner.lines %}$ {{ line }}<br/>{% endfor %}</pre>
 
24
 
 
25
    <div class="summary">
 
26
        {{ oneliner.summary }}
 
27
    </div>
 
28
 
 
29
    {% if oneliner.explanation %}
 
30
    <div class="explanation">
 
31
        <h3>Explanation</h3>
 
32
        {{ oneliner.explanation|nst|safe }}
 
33
    </div>
 
34
    {% endif %}
 
35
 
 
36
    {% if oneliner.caveats %}
 
37
    <div class="caveats">
 
38
        <h3>Caveats</h3>
 
39
        {{ oneliner.caveats|nst|safe }}
 
40
    </div>
 
41
    {% endif %}
 
42
 
 
43
    <div class="eof">### EOF ###</div>
 
44
</div>
 
45
{% endfor %}
 
46
 
 
47
{% endblock %}