Removed useless comments, removed test page
parent
0ae27c7e9e
commit
70797b990c
@ -1,97 +0,0 @@
|
||||
{% extends 'layout/base.html' %}
|
||||
{% from '_includes.html' import render_comment with context %}
|
||||
|
||||
{% block content %}
|
||||
<div class="tag-input">
|
||||
<div class="tag-container tags-inpage">
|
||||
<a class="taginpage" data-tagname="test" href="bruh">
|
||||
<span class="tag-icon">
|
||||
<span class="fa fa-tag"></span>
|
||||
</span>
|
||||
<span class="content">
|
||||
bruuuuuuuuuuuh
|
||||
{#<!-- <span class="name">test</span> -->#}
|
||||
</span>
|
||||
<span class="count">12</span>
|
||||
<span class="tag-right">
|
||||
<!-- <span class="fa fa-plus plus"></span> -->
|
||||
<span class="fa fa-close close"></span>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a class="taginpage" data-tagname="test" href="bruh">
|
||||
<span class="tag-icon">
|
||||
<span class="fa fa-tag"></span>
|
||||
</span>
|
||||
<span class="content">
|
||||
bruuuuuuuuuuuh
|
||||
{#<!-- <span class="name">test</span> -->#}
|
||||
</span>
|
||||
<span class="count">12</span>
|
||||
<span class="tag-right">
|
||||
<span class="fa fa-plus plus"></span>
|
||||
<!-- <span class="fa fa-close close"></span> -->
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a class="taginpage" data-tagname="test" href="bruh">
|
||||
<span class="tag-icon">
|
||||
<span class="fa fa-tag"></span>
|
||||
</span>
|
||||
<span class="content">
|
||||
bruuuuuuuuuuuh
|
||||
{#<!-- <span class="name">test</span> -->#}
|
||||
</span>
|
||||
<!-- <span class="count">12</span> -->
|
||||
<span class="tag-right">
|
||||
<!-- <span class="fa fa-plus plus"></span> -->
|
||||
<span class="fa fa-close close"></span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="comment-container" style="border: 1px solid white;">
|
||||
<article class="comment editingable" style="border: 1px solid red;">
|
||||
<form action="{{ url_for('post.comment') }}" method="post">
|
||||
{{ comment.editform.csrf_token }}
|
||||
{{ comment.editform.id() }}
|
||||
<div class="comment-head">
|
||||
<h4>{{ comment.user.username or "Deleted account" }}</h4>
|
||||
<span class="controls">
|
||||
{% if current_user.is_moderator %}
|
||||
{% if not comment.deleted %}
|
||||
<a class="control-moderate"><label>ban{{ comment.editform.ban() }}</label></a>
|
||||
{% else %}
|
||||
<a class="control-moderate"><label>unban{{ comment.editform.unban() }}</label></a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if comment.is_author %}
|
||||
<a class="jsoff-show edit"><label>delete{{ comment.editform.delete() }}</label></a>
|
||||
<a class="jsoff-show edit"><label>submit{{ comment.editform.edit() }}</label></a>
|
||||
|
||||
<a class="jsoff-hide notedit control-edit"><label>edit</label></a>
|
||||
<a class="jsoff-hide edit control-edit"><label>cancel</label></a>
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="comment-editform baseform">
|
||||
{% if not comment.deleted or comment.is_author or current_user.is_moderator %}
|
||||
<p class="{%if comment.is_author%}jsoff-show {%endif%}comment-content notedit">{{ comment.content }}</p>
|
||||
{% endif %}
|
||||
{% if comment.deleted %}
|
||||
<p class="deleted">[Comment banned]</p>
|
||||
{% endif %}
|
||||
|
||||
{% if comment.is_author %}
|
||||
{{ comment.editform.content(class="jsoff-show edit") }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</form>
|
||||
</article>
|
||||
|
||||
{{ render_comment(comment2, comment2.editform) }}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue