summaryrefslogtreecommitdiffstats
path: root/forum/skins
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-06-11 21:39:25 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-06-11 21:39:25 -0400
commitaddfbf446b113dbff8c97165686fa19c035a2a47 (patch)
treea0a03c7521317ee9fd12b728b8d1ba98d5051a0b /forum/skins
parent3bad7a8fa7821dfe677b0a8d06c7a779a3e57483 (diff)
downloadaskbot-addfbf446b113dbff8c97165686fa19c035a2a47.tar.gz
askbot-addfbf446b113dbff8c97165686fa19c035a2a47.tar.bz2
askbot-addfbf446b113dbff8c97165686fa19c035a2a47.zip
first scratch on better responses page
Diffstat (limited to 'forum/skins')
-rw-r--r--forum/skins/default/templates/user_responses.html38
1 files changed, 20 insertions, 18 deletions
diff --git a/forum/skins/default/templates/user_responses.html b/forum/skins/default/templates/user_responses.html
index cf429465..21f08046 100644
--- a/forum/skins/default/templates/user_responses.html
+++ b/forum/skins/default/templates/user_responses.html
@@ -2,36 +2,38 @@
<!-- user_responses.html -->
{% comment %}
-This template accepts a list of response objects
+This template accepts a list of response list
they are a generalized form of any response and
-are not database objects
The following properties of response object are used:
-time - when it happened
-userlink - url to the profile of whoever gave the response
-username - name of that user
-type - type of response
-titlelink - link to the question
-title - title of the question
-content - abbreviated content of the response
+timestamp - when it happened
+user - user who gave response (database object)
+response_type - type of response
+response_url - link to the question
+response_title - title of the question
+response_snippet - abbreviated content of the response
{% endcomment %}
{% load extra_tags %}
{% load humanize %}
+{% load i18n %}
{% block usercontent %}
<div style="padding-top:5px;font-size:13px;">
{% for response in responses %}
- <div style="clear:both;line-height:18px">
- <div style="width:150px;float:left">{% diff_date response.time 3 %}</div>
- <div style="width:100px;float:left"><a href="{{ response.userlink }}">{{ response.username }}</a></div>
- <div style="float:left;overflow:hidden;width:680px">
- <strong {% ifequal response.type "question_answered" %}class="user-action-2"{% endifequal %}{% ifequal response.type "answer_accepted" %}class="user-action-8"{% endifequal %}>{{ response.type }}</strong>:
- <a href="{{ response.titlelink }}">{{ response.title }}</a><br/>
- {{ response.content|safe }}
- <div style="height:10px"></div>
+ <div style="clear:both;line-height:18px;margin-bottom:15px;">
+ <div>
+ <div style="float:left; display:inline-block; text-align: center; width: 54px; padding: 3px;overflow:hidden;">
+ {% gravatar response.user 48 %}
+ </div>
+ <a style="font-size:12px" href="{{ response.user.get_absolute_url }}">{{ response.user.username }}</a>
+ <a style="text-decoration:none;" href="{{ response.response_url }}">
+ {{ response.response_type }},
+ {% diff_date response.timestamp 3 %}:<br/>
+ <strong>"{{ response.response_title }}"</strong>&nbsp;
+ {{ response.response_snippet|safe }}
+ </a>
</div>
-
</div>
{% endfor %}
</div>