diff gpp/templates/forums/display_post.html @ 285:8fd4984d5c3b

This is a first rough commit for #95, adding the ability to embed YouTube videos in forum posts. Some more polish and testing needs to happen at this point. I wanted to get all these changes off my hard drive and into the repository.
author Brian Neal <bgneal@gmail.com>
date Thu, 14 Oct 2010 02:39:35 +0000
parents fe900598f81c
children daa2916f5b34
line wrap: on
line diff
--- a/gpp/templates/forums/display_post.html	Mon Oct 04 01:01:29 2010 +0000
+++ b/gpp/templates/forums/display_post.html	Thu Oct 14 02:39:35 2010 +0000
@@ -38,6 +38,13 @@
          <p class="small quiet">Last edited: {{ post.update_date|date:"M d, Y H:i:s" }}</p>
          {% endif %}
       </div>
+      {% if post.attach_list %}
+      <div>
+         {% for item in post.attach_list %}
+         <div class="forum-attachment">{{ item.html|safe }}</div>
+         {% endfor %}
+      </div>
+      {% endif %}
       <div class="forum-post-info-tools">
       {% if can_reply %}
          <a href="{% url forums-new_post topic_id=post.topic.id %}?quote={{ post.id }}"><img src="{{ MEDIA_URL }}icons/comment.png" alt="Reply with quote" title="Reply with quote" /></a>