Changeset 380:1d49a0460392
- Timestamp:
- Oct 11, 2011 2:35:07 PM (21 months ago)
- Branch:
- default
- Files:
-
- 3 edited
-
djangobb_forum/templates/djangobb_forum/search_posts.html (modified) (2 diffs)
-
djangobb_forum/views.py (modified) (1 diff)
-
extras/requirements.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
djangobb_forum/templates/djangobb_forum/search_posts.html
r372 r380 15 15 {% for post in results %} 16 16 <div class="blockpost searchposts roweven"> 17 <h2>{% link post. instance.topic.forum %} » {% link post.instance.topic %} » <a href="{{ post.instance.get_absolute_url }}">{% forum_time post.instance.created %}</a></h2>17 <h2>{% link post.object.topic.forum %} » {% link post.object.topic %} » <a href="{{ post.object.get_absolute_url }}">{% forum_time post.object.created %}</a></h2> 18 18 19 19 <div class="box"> … … 21 21 <div class="postleft"> 22 22 <dl> 23 <dt><strong><a href="{% url djangobb:forum_profile post. instance.user %}">{{ post.instance.user }}</a></strong></dt>24 <dd>{% trans "Replies:" %} {{ post. instance.topic.post_count }}</dd>23 <dt><strong><a href="{% url djangobb:forum_profile post.object.user %}">{{ post.object.user }}</a></strong></dt> 24 <dd>{% trans "Replies:" %} {{ post.object.topic.post_count }}</dd> 25 25 <dd><div class="icon"><div class="nosize"><!-- --></div></div> 26 26 </dd> 27 27 28 <dd><p class="clearb"><a href="{{ post. instance.get_absolute_url }}">{% trans "Go to post" %}</a></p></dd>28 <dd><p class="clearb"><a href="{{ post.object.get_absolute_url }}">{% trans "Go to post" %}</a></p></dd> 29 29 </dl> 30 30 </div> 31 31 <div class="postright"> 32 32 <div class="postmsg"> 33 {{ post. instance.body_html|safe }}33 {{ post.object.body_html|safe }} 34 34 35 35 </div> -
djangobb_forum/views.py
r378 r380 179 179 if 'topics' in request.GET['show_as']: 180 180 topics = [] 181 topics_to_exclude = []181 topics_to_exclude = SQ() 182 182 for post in posts: 183 183 if post.object.topic not in topics: -
extras/requirements.txt
r373 r380 1 1 Django>=1.2 2 2 PIL>=1.1.7 3 django-haystack>=1. 1.03 django-haystack>=1.2.5 4 4 south 5 5 django-messages==0.4.4
Note: See TracChangeset
for help on using the changeset viewer.
