annotate gpp/templates/smiley/smiley_farm.html @ 117:a3633f39f3ce

Forums: pre-select all the user profiles when displaying a topic. As it was, the template was calling get_user_profile which was causing a db hit on every post in the topic.
author Brian Neal <bgneal@gmail.com>
date Fri, 23 Oct 2009 03:09:33 +0000
parents dbd703f7d63a
children 3ae999b0c53b
rev   line source
gremmie@1 1 <div class="smiley_farm">
gremmie@1 2 {% for s in smilies %}
gremmie@1 3 <img src="{{ s.image.url }}" alt="{{ s.code }}" title="{{ s.title }} {{ s.code }}"
gremmie@1 4 onclick="sb_smiley_click(' {{ s.code }} ');" />
gremmie@1 5 {% endfor %}
gremmie@1 6 </div>