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

« back to all changes in this revision

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

  • Committer: Janos Gyerik
  • Date: 2012-04-04 13:22:47 UTC
  • Revision ID: burlyman@titan2x.com-20120404132247-2s7liq2i4e7nn8ul
minor improvement to create_user_profile signal

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
    <div class="question well question-{{question.pk}}">
 
2
        <h3 class="summary">
 
3
            <a href="{% url oneliners.views.question question.pk %}">{{ question.summary|capfirst }}</a>
 
4
            {% if user == question.user %}<a class="btn" href="{% url oneliners.views.question_edit question.pk %}"><i class="icon-pencil"></i>{% if not question.is_published %}<span class="draft">(Not published!)</span>{% endif %}</a>{% endif %}
 
5
        </h3>
 
6
        <blockquote>
 
7
            <p>{{ question.explanation }}</p>
 
8
            <small>
 
9
                by <a href="{% url oneliners.views.profile question.user.pk %}"><span>{{ question.user.hackerprofile.get_display_name }}</span> </a>
 
10
                on <span>{{ question.created_dt }}</span>
 
11
            </small>
 
12
        </blockquote>
 
13
 
 
14
        {% if user.is_answered and not question.is_answered and not nobuttons %}
 
15
        <p><a class="btn" href="{% url oneliners.views.oneliner_answer question.pk %}">Post a one-liner that answers this!</a></p>
 
16
        {% endif %}
 
17
 
 
18
        {% block related %}
 
19
        {% endblock %}
 
20
    </div>