~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/pybb/inlines/post.html

  • Committer: Holger Rapp
  • Date: 2009-03-15 20:27:12 UTC
  • mfrom: (62.1.11 widelands)
  • Revision ID: sirver@h566336-20090315202712-qb3j0trhy76bpzep
Merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
{% load humanize %}
7
7
{% load pybb_extras %}
8
8
{% load wiki %}
 
9
{% load wlprofile %}
9
10
 
10
11
   <table class="{% cycle "odd" "even" %}" width="100%">
11
12
      <tr>
12
 
         <td class="author">{{ post.user.username }}</td>
 
13
         <td class="author">{{ post.user|user_link }}</td>
13
14
         <td width="85%" class="at"><strong>Posted:</strong> {{ post.created|naturalday|title }} {{ post.created|time:"H:i" }}</td>
14
15
      </tr>
15
16
      <tr>
16
17
         <td class="userinfo">
17
18
            <div class="userinfo">
 
19
                {% if post.user.get_profile.avatar %}
 
20
                <div class="avatar">
 
21
                    <a href="{% url profile_view post.user %}">
 
22
                    <img src="{{ post.user.get_profile.avatar.url }}" />
 
23
                    </a>
 
24
                </div>
 
25
                {% endif %}
18
26
               <strong>Joined:</strong> {{ post.user.date_joined|naturalday|title }}<br />
19
27
               <strong>Posts:</strong> {{ post.user.get_profile.post_count }}<br />
20
28
               {% if post.user.get_profile.location %}