Mercurial > public > sg101
annotate gpp/templates/forums/new_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 | 593fb6dbd449 |
children |
rev | line source |
---|---|
bgneal@108 | 1 {% extends 'base.html' %} |
bgneal@127 | 2 {% load forum_tags %} |
bgneal@108 | 3 {% block title %}Forums: New Post{% endblock %} |
bgneal@108 | 4 {% block custom_js %}{{ form.media }}{% endblock %} |
bgneal@108 | 5 {% block content %} |
bgneal@283 | 6 {% forum_navigation topic "New Post" %} |
bgneal@108 | 7 |
bgneal@108 | 8 {% if can_post %} |
bgneal@108 | 9 <div class="forum-block"> |
bgneal@108 | 10 <a name="forum-reply-form"></a> |
bgneal@285 | 11 {% show_form "New Post" form "Submit Post" 0 %} |
bgneal@108 | 12 {% else %} |
bgneal@108 | 13 {% if topic.locked %} |
bgneal@108 | 14 <p>This topic is locked.</p> |
bgneal@108 | 15 {% else %} |
bgneal@108 | 16 <p>You don't have permission to post to this topic.</p> |
bgneal@108 | 17 {% endif %} |
bgneal@108 | 18 {% endif %} |
bgneal@127 | 19 </div> |
bgneal@108 | 20 {% endblock %} |