rDrama/files/templates/userpage_comments.html

122 lines
6.4 KiB
HTML
Raw Normal View History

2021-10-15 14:08:27 +00:00
{% extends "userpage.html" %}
2021-12-14 22:48:37 +00:00
{% block content %}
2021-10-15 14:08:27 +00:00
<div class="row no-gutters">
<div class="col">
<div class="flex-row box-shadow-bottom d-flex justify-content-center justify-content-md-between align-items-center">
<ul class="nav settings-nav">
<li class="nav-item">
2022-02-24 12:03:28 +00:00
<a class="nav-link" style="font-size: .9rem !important; padding: .75rem .4rem !important" href="/@{{u.username}}">Posts <span class="count">({{u.post_count}})</span></a>
2021-10-15 14:08:27 +00:00
</li>
<li class="nav-item">
2022-02-24 12:03:28 +00:00
<a class="nav-link {% if not 'saved' in request.path %}active{% endif %}" style="font-size: .9rem !important; padding: .75rem .4rem !important" href="/@{{u.username}}/comments">Comments <span class="count">({{u.comment_count}})</span></a>
2021-10-15 14:08:27 +00:00
</li>
{% if u.id == v.id %}
<li class="nav-item">
2022-02-24 12:03:28 +00:00
<a class="nav-link" style="font-size: .9rem !important; padding: .75rem .4rem !important" href="/@{{u.username}}/saved/posts">Saved Posts <span class="count">({{u.saved_count}})</span></a>
2021-10-15 14:08:27 +00:00
</li>
<li class="nav-item">
2022-02-24 12:03:28 +00:00
<a class="nav-link {% if 'saved' in request.path %}active{% endif %}" style="font-size: .9rem !important; padding: .75rem .4rem !important" href="/@{{u.username}}/saved/comments">Saved Comments <span class="count">({{u.saved_comment_count}})</span></a>
2021-10-15 14:08:27 +00:00
</li>
{% endif %}
</ul>
</div>
</div>
2021-12-14 22:48:37 +00:00
</div>
2021-10-15 14:08:27 +00:00
2021-12-14 22:48:37 +00:00
{% if not "saved" in request.full_path %}
<div class="d-flex justify-content-between align-items-center" style="padding-top:10px">
2021-10-15 14:08:27 +00:00
2022-02-22 04:40:29 +00:00
<div class="d-flex align-items-center">
2021-12-14 22:48:37 +00:00
<div class="text-small font-weight-bold mr-2">‎</div>
<div class="dropdown dropdown-actions">
2021-12-30 05:27:22 +00:00
<button class="btn btn-secondary dropdown-toggle" role="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
2021-12-15 19:30:26 +00:00
{% if t=="hour" %}<i class="fas fa-clock mr-1"></i>
{% elif t=="day" %}<i class="fas fa-calendar-day mr-1"></i>
{% elif t=="week" %}<i class="fas fa-calendar-week mr-1"></i>
{% elif t=="month" %}<i class="fas fa-calendar-alt mr-1"></i>
{% elif t=="year" %}<i class="fas fa-calendar mr-1"></i>
{% elif t=="all" %}<i class="fas fa-infinity mr-1"></i>
{% endif %}
{{t | capitalize}}
2021-12-14 22:48:37 +00:00
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
2022-01-22 09:58:22 +00:00
{% if t != "hour" %}<a class="dropdown-item" href="?sort={{sort}}&t=hour"><i class="fas fa-clock mr-2"></i>Hour</a>{% endif %}
{% if t != "day" %}<a class="dropdown-item" href="?sort={{sort}}&t=day"><i class="fas fa-calendar-day mr-2"></i>Day</a>{% endif %}
{% if t != "week" %}<a class="dropdown-item" href="?sort={{sort}}&t=week"><i class="fas fa-calendar-week mr-2"></i>Week</a>{% endif %}
{% if t != "month" %}<a class="dropdown-item" href="?sort={{sort}}&t=month"><i class="fas fa-calendar-alt mr-2"></i>Month</a>{% endif %}
{% if t != "year" %}<a class="dropdown-item" href="?sort={{sort}}&t=year"><i class="fas fa-calendar mr-2"></i>Year</a>{% endif %}
{% if t != "all" %}<a class="dropdown-item" href="?sort={{sort}}&t=all"><i class="fas fa-infinity mr-2"></i>All</a>{% endif %}
2021-12-14 22:48:37 +00:00
</div>
</div>
<div class="text-small font-weight-bold ml-3 mr-2">‎</div>
<div class="dropdown dropdown-actions">
2021-12-30 05:27:22 +00:00
<button class="btn btn-secondary dropdown-toggle" role="button" id="dropdownMenuButton2" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
2021-12-14 22:48:37 +00:00
{% if sort=="top" %}<i class="fas fa-arrow-alt-circle-up mr-1"></i>{% endif %}
{% if sort=="bottom" %}<i class="fas fa-arrow-alt-circle-down mr-1"></i>{% endif %}
{% if sort=="new" %}<i class="fas fa-sparkles mr-1"></i>{% endif %}
{% if sort=="old" %}<i class="fas fa-book mr-1"></i>{% endif %}
{% if sort=="controversial" %}<i class="fas fa-bullhorn mr-1"></i>{% endif %}
{{sort | capitalize}}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton2" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
{% if sort != "top" %}<a class="dropdown-item" href="?sort=top&t={{t}}"><i class="fas fa-arrow-alt-circle-up mr-2"></i>Top</a>{% endif %}
{% if sort != "bottom" %}<a class="dropdown-item" href="?sort=bottom&t={{t}}"><i class="fas fa-arrow-alt-circle-down mr-2"></i>Bottom</a>{% endif %}
{% if sort != "new" %}<a class="dropdown-item" href="?sort=new&t={{t}}"><i class="fas fa-sparkles mr-2"></i>New</a>{% endif %}
{% if sort != "old" %}<a class="dropdown-item" href="?sort=old&t={{t}}"><i class="fas fa-book mr-2"></i>Old</a>{% endif %}
{% if sort != "controversial" %}<a class="dropdown-item" href="?sort=controversial&t={{t}}"><i class="fas fa-bullhorn mr-2"></i>Controversial</a>{% endif %}
</div>
</div>
2021-12-09 04:13:17 +00:00
</div>
2021-12-14 22:48:37 +00:00
</div>
{% endif %}
<div class="row no-gutters {% if listing %}mt-md-3{% elif not listing %}my-md-3{% endif %}" style="margin-top: 10px;">
<div class="col">
2021-12-09 04:13:17 +00:00
{% if listing %}
2021-12-14 22:48:37 +00:00
<div class="posts p-3 p-md-0">
2021-12-09 04:13:17 +00:00
{% with comments=listing %}
2021-12-14 22:48:37 +00:00
{% include "comments.html" %}
2021-12-09 04:13:17 +00:00
{% endwith %}
2021-12-14 22:48:37 +00:00
</div>
{% else %}
<div class="text-center px-3 my-3">
<span class="fa-stack fa-2x text-muted mb-4">
<i class="fas fa-square text-gray-500 opacity-25 fa-stack-2x"></i>
<i class="fas text-gray-500 fa-scroll-old fa-stack-1x text-lg"></i>
</span>
2021-12-09 04:13:17 +00:00
{% if '/saved/' in request.path %}
2021-12-14 22:48:37 +00:00
<h2 class="h5">You haven't saved any comments yet</h2>
2021-12-09 04:13:17 +00:00
{% elif v and v.id == u.id %}
2021-12-14 22:48:37 +00:00
<h2 class="h5">You haven't made any comments yet</h2>
<p class="text-muted mb-md-5">Your commenting history will show here.</p>
2021-12-09 04:13:17 +00:00
{% else %}
2021-12-14 22:48:37 +00:00
<h2 class="h5">@{{u.username}} hasn't made any comments yet</h2>
<p class="text-muted">Their commenting history will show here.</p>
2021-12-09 04:13:17 +00:00
{% endif %}
</div>
2021-12-14 22:48:37 +00:00
{% endif %}
</div>
2021-10-15 14:08:27 +00:00
</div>
2021-12-17 07:06:25 +00:00
{% if u.song %}
2022-01-23 18:16:53 +00:00
{% if v and v.id == u.id %}
<div id="v_username" class="d-none">{{v.username}}</div>
{% else %}
<div id="u_username" class="d-none">{{u.username}}</div>
{% endif %}
2021-12-17 07:06:25 +00:00
{% endif %}
{% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
2022-03-31 16:28:53 +00:00
<script src="/assets/js/userpage_v.js?v=244"></script>
2021-12-17 07:06:25 +00:00
<div id="username" class="d-none">{{u.username}}</div>
{% endif %}
2022-03-31 16:28:53 +00:00
<script src="/assets/js/userpage.js?v=241"></script>
2021-07-21 01:12:26 +00:00
{% endblock %}