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

« back to all changes in this revision

Viewing changes to templates/main/elements/oneliner.html

  • Committer: Janos Gyerik
  • Date: 2012-02-10 19:27:51 UTC
  • Revision ID: janos@axiom-20120210192751-dnxf02l4jt55y3rc
added comment templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% load markup %}
 
2
{% load comments %}
2
3
 
3
4
    <div class="oneliner well oneliner-{{oneliner.pk}}">
4
5
        <h3 class="summary">
29
30
        </div>
30
31
        {% endif %}
31
32
 
32
 
        {% if user != oneliner.user and not nobuttons %}
 
33
        {% if not nobuttons %}
33
34
        <p><a href="{% url bashoneliners.main.views.oneliner_alternative oneliner.pk %}" class="btn">Post an alternative one-liner</a></p>
34
35
        {% endif %}
35
36
 
36
37
        {% block related %}
37
38
        {% endblock %}
38
39
 
 
40
        {% get_comment_count for oneliner as comment_count %}
 
41
        <div class="related">
 
42
            <h3 class="">Comments ({{ comment_count }})</h3>
 
43
            <div class="comments">
 
44
            {% render_comment_list for oneliner %}
 
45
            {% if not nobuttons %}
 
46
            <p><a href="{% url bashoneliners.main.views.oneliner_comment oneliner.pk %}" class="btn">Post a comment on this one-liner</a></p>
 
47
            {% endif %}
 
48
            </div>
 
49
        </div>
 
50
 
39
51
        {% if user == question.user and not question.is_answered %}
40
52
        <p><a href="{% url bashoneliners.main.ajax.question_answered question.pk oneliner.pk %}" class="btn btn-primary question-answered" data-parent="question-{{ question.pk }}">Accept this answer</a></p>
41
53
        {% endif %}