~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-02-17 20:28:35 UTC
  • Revision ID: janos@axiom-20120217202835-4j0uljdj13w5325z
simplify templates by using user.hackerprofile.get_display_name

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
        <blockquote>
7
7
            <p>{{ question.explanation }}</p>
8
8
            <small>
9
 
                by <a href="{% url bashoneliners.main.views.profile question.user.pk %}"><span>{{ question.user.hackerprofile.display_name|default:question.user.username }}</span> </a>
 
9
                by <a href="{% url bashoneliners.main.views.profile question.user.pk %}"><span>{{ question.user.hackerprofile.get_display_name }}</span> </a>
10
10
                on <span>{{ question.created_dt }}</span>
11
11
            </small>
12
12
        </blockquote>