2022-12-09 03:35:28 +00:00
|
|
|
{% set path = request.path.replace("/@" + u.username, '') %}
|
|
|
|
<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">
|
2023-02-28 17:31:51 +00:00
|
|
|
<ul class="nav settings-nav" id="content">
|
2023-01-22 23:38:00 +00:00
|
|
|
<li class="nav-item mr-1">
|
2023-02-28 17:31:51 +00:00
|
|
|
<a class="nav-link{% if path == '' %} active{% endif %}" href="/@{{u.username}}#content">Wall</a>
|
2022-12-09 03:35:28 +00:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2023-02-28 17:54:01 +00:00
|
|
|
<a class="nav-link{% if path == '/posts' %} active{% endif %}" href="/@{{u.username}}/posts#content">Posts <span class="count">({{u.real_post_count(v)}})</span></a>
|
2022-12-09 03:35:28 +00:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2023-02-28 17:54:01 +00:00
|
|
|
<a class="nav-link{% if path == '/comments' %} active{% endif %}" href="/@{{u.username}}/comments#content">Comments <span class="count">({{u.real_comment_count(v)}})</span></a>
|
2022-12-09 03:35:28 +00:00
|
|
|
</li>
|
|
|
|
{% if u.id == v.id %}
|
|
|
|
<li class="nav-item">
|
2023-02-28 17:31:51 +00:00
|
|
|
<a class="nav-link{% if path == '/saved/posts' %} active{% endif %}" href="/@{{u.username}}/saved/posts#content">Saved Posts <span class="count">({{u.saved_count}})</span></a>
|
2022-12-09 03:35:28 +00:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2023-02-28 17:31:51 +00:00
|
|
|
<a class="nav-link{% if path == '/saved/comments' %} active{% endif %}" href="/@{{u.username}}/saved/comments#content">Saved Comments <span class="count">({{u.saved_comment_count}})</span></a>
|
2022-12-09 03:35:28 +00:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2023-02-28 17:31:51 +00:00
|
|
|
<a class="nav-link{% if path == '/subscribed/posts' %} active{% endif %}" href="/@{{u.username}}/subscribed/posts#content">Subscribed <span class="count">({{u.subscribed_count}})</span></a>
|
2022-12-09 03:35:28 +00:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-23 01:21:41 +00:00
|
|
|
{% if "/saved/" not in request.path and "/subscribed/" not in request.path and not path == '' and '/wall/comment/' not in path %}
|
2022-12-09 03:35:28 +00:00
|
|
|
<div class="d-flex justify-content-between align-items-center" style="padding-top:10px">
|
|
|
|
|
|
|
|
<div class="d-flex align-items-center">
|
|
|
|
<div class="dropdown dropdown-actions">
|
2022-12-25 02:10:56 +00:00
|
|
|
<button type="button" class="btn btn-secondary dropdown-toggle" id="dropdownMenuButton" data-bs-toggle="dropdown">
|
2022-12-09 03:35:28 +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}}
|
|
|
|
</button>
|
2022-12-25 02:10:56 +00:00
|
|
|
<div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
|
2023-02-28 17:31:51 +00:00
|
|
|
{% if t != "hour" %}<a class="dropdown-item" href="?sort={{sort}}&t=hour#content"><i class="fas fa-clock mr-2"></i>Hour</a>{% endif %}
|
|
|
|
{% if t != "day" %}<a class="dropdown-item" href="?sort={{sort}}&t=day#content"><i class="fas fa-calendar-day mr-2"></i>Day</a>{% endif %}
|
|
|
|
{% if t != "week" %}<a class="dropdown-item" href="?sort={{sort}}&t=week#content"><i class="fas fa-calendar-week mr-2"></i>Week</a>{% endif %}
|
|
|
|
{% if t != "month" %}<a class="dropdown-item" href="?sort={{sort}}&t=month#content"><i class="fas fa-calendar-alt mr-2"></i>Month</a>{% endif %}
|
|
|
|
{% if t != "year" %}<a class="dropdown-item" href="?sort={{sort}}&t=year#content"><i class="fas fa-calendar mr-2"></i>Year</a>{% endif %}
|
|
|
|
{% if t != "all" %}<a class="dropdown-item" href="?sort={{sort}}&t=all#content"><i class="fas fa-infinity mr-2"></i>All</a>{% endif %}
|
2022-12-09 03:35:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="dropdown dropdown-actions ml-3">
|
2022-12-25 02:10:56 +00:00
|
|
|
<button type="button" class="btn btn-secondary dropdown-toggle" id="dropdownMenuButton2" data-bs-toggle="dropdown">
|
2022-12-09 03:35:28 +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>
|
2022-12-25 02:10:56 +00:00
|
|
|
<div class="dropdown-menu" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 31px, 0px);">
|
2023-02-28 17:31:51 +00:00
|
|
|
{% if sort != "top" %}<a class="dropdown-item" href="?sort=top&t={{t}}#content"><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}}#content"><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}}#content"><i class="fas fa-sparkles mr-2"></i>New</a>{% endif %}
|
|
|
|
{% if sort != "old" %}<a class="dropdown-item" href="?sort=old&t={{t}}#content"><i class="fas fa-book mr-2"></i>Old</a>{% endif %}
|
|
|
|
{% if sort != "controversial" %}<a class="dropdown-item" href="?sort=controversial&t={{t}}#content"><i class="fas fa-bullhorn mr-2"></i>Controversial</a>{% endif %}
|
2022-12-09 03:35:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|