Fockin better comments BRUH, testpage now VC
parent
bbe2ba4cfa
commit
ae1e616d06
File diff suppressed because one or more lines are too long
@ -0,0 +1,97 @@
|
|||||||
|
{% 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