Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/templates/forums/base_forum.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ <h1>{{ forum.competition.title }} Forum</h1>
Start a new topic
</button>
</a>
{% elif 'new_post' not in request.path %}
<a href="{% url 'forums:forum_new_post' forum_pk=forum.pk thread_pk=thread.pk %}">
<button class="ui button green right floated">
<i class="icon plus"></i> Add new post
</button>
</a>
{% endif %}
</div>
</div>
Expand Down
17 changes: 6 additions & 11 deletions src/templates/forums/thread_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,14 @@
<div class="markdown-content" data-content="{{ post.content }}"></div>
</div>
</div>
<!-- <div class="content">
{% if thread.forum.competition.creator == request.user or request.user in thread.forum.competition.admins.all or post.posted_by == request.user %}
<i class="remove-button glyphicon glyphicon-remove pull-right" data-submission-pk="{{ post.pk }}"></i>
{% endif %}

<div class="markdown-content" data-content="{{ post.content }}"></div>

<div class="extra">
Posted by: <a href="{% url "profiles:user_profile" username=post.posted_by.slug %}">{{ post.posted_by }}</a> @ {{ post.date_created }}
</div>
</div> -->
</div>
{% endfor %}
<!-- Add new post button -->
<a href="{% url 'forums:forum_new_post' forum_pk=forum.pk thread_pk=thread.pk %}">
<button class="ui button green left floated">
<i class="icon plus"></i> Add new post
</button>
</a>
</div>

<style>
Expand Down