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

« back to all changes in this revision

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

  • Committer: Janos Gyerik
  • Date: 2012-04-03 20:38:05 UTC
  • Revision ID: janos@axiom-20120403203805-d2e6j78xee1dhttx
renamed "main" module to "oneliners"

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% load markup %}
 
2
<div class="comment well">
 
3
<blockquote>
 
4
    <p>{{ comment.comment|markdown:"safe" }}</p>
 
5
    <small>
 
6
        by <a href="{% url oneliners.views.profile comment.user.pk %}"><span>{{ comment.user.hackerprofile.get_display_name }}</span> </a>
 
7
        on <span>{{ comment.submit_date }}</span>
 
8
    </small>
 
9
 
 
10
    {% with comment.content_type.model as model %}
 
11
    {% if model == 'oneliner' %}
 
12
    {% with comment.content_object as oneliner %}
 
13
    <div class="{{ model }}">
 
14
        <h3 class="summary"><a href="{% url oneliners.views.oneliner oneliner.pk %}">{{ oneliner.summary|capfirst }}</a></h3>
 
15
        <pre><span class="add-on">bash$ </span>{{ oneliner.line }}</pre>
 
16
    </div>
 
17
    {% endwith %}
 
18
    {% endif %}
 
19
    {% endwith %}
 
20
</blockquote>
 
21
</div>