master
Aevann 2024-11-13 03:32:47 +02:00
parent 7bca5b0fb2
commit df1744d542
9 changed files with 11 additions and 11 deletions

View File

@ -2,7 +2,7 @@
{% block pagetype %}search{% endblock %} {% block pagetype %}search{% endblock %}
{% block pagetitle %}Search for "{{query}}"{% endblock %} {% block pagetitle %}Search for "{{query}}"{% endblock %}
{% block head_final %} {% block head_final %}
<meta name="description" content="{{total}} result{{'s' if total != 1 else ''}}"> <meta name="description" content="{{total | commas}} result{{'s' if total != 1 else ''}}">
{% endblock %} {% endblock %}
{% block PseudoSubmitForm %} {% block PseudoSubmitForm %}
@ -98,7 +98,7 @@
<br> <br>
<script defer src="{{'js/search.js' | asset}}"></script> <script defer src="{{'js/search.js' | asset}}"></script>
<div class="text-muted text-small mb-1">Showing {% block listinglength %}{{listing | length}}{% endblock %} of {{total}} result{{'s' if total != 1 else ''}} for</div> <div class="text-muted text-small mb-1">Showing {% block listinglength %}{{listing | length | commas}}{% endblock %} of {{total | commas}} result{{'s' if total != 1 else ''}} for</div>
<h4 class=" mb-0">{{query}}</h4> <h4 class=" mb-0">{{query}}</h4>
{% if not '/users' in request.path %} {% if not '/users' in request.path %}

View File

@ -1,7 +1,7 @@
{% extends "default.html" %} {% extends "default.html" %}
{% block pagetitle %}@{{u.username}}'s blockers{% endblock %} {% block pagetitle %}@{{u.username}}'s blockers{% endblock %}
{% block content %} {% block content %}
<h5 class="my-3">@{{u.username}}'s blockers ({{total}} user{{macros.plural(total)}})</h5> <h5 class="my-3">@{{u.username}}'s blockers ({{total | commas}} user{{macros.plural(total)}})</h5>
<div class="overflow-x-auto mt-1"> <div class="overflow-x-auto mt-1">
<table> <table>
<thead> <thead>
@ -28,4 +28,4 @@
{{macros.pagination()}} {{macros.pagination()}}
{% endblock %} {% endblock %}
({{total}} user{{macros.plural(total)}}) ({{total | commas}} user{{macros.plural(total)}})

View File

@ -1,7 +1,7 @@
{% extends "default.html" %} {% extends "default.html" %}
{% block pagetitle %}Users blocked by @{{u.username}}{% endblock %} {% block pagetitle %}Users blocked by @{{u.username}}{% endblock %}
{% block content %} {% block content %}
<h5 class="my-3">Users blocked by @{{u.username}} ({{total}} user{{macros.plural(total)}})</h5> <h5 class="my-3">Users blocked by @{{u.username}} ({{total | commas}} user{{macros.plural(total)}})</h5>
<div class="overflow-x-auto mt-1"> <div class="overflow-x-auto mt-1">
<table> <table>

View File

@ -2,7 +2,7 @@
{% block pagetitle %}@{{u.username}}'s Chats{% endblock %} {% block pagetitle %}@{{u.username}}'s Chats{% endblock %}
{% block content %} {% block content %}
<h5 class="pt-4 pl-2 pb-3">@{{u.username}}'s Chats ({{total}} chat{{macros.plural(total)}})</h5> <h5 class="pt-4 pl-2 pb-3">@{{u.username}}'s Chats ({{total | commas}} chat{{macros.plural(total)}})</h5>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table> <table>
<thead> <thead>

View File

@ -1,7 +1,7 @@
{% extends "default.html" %} {% extends "default.html" %}
{% block pagetitle %}@{{u.username}}'s followers{% endblock %} {% block pagetitle %}@{{u.username}}'s followers{% endblock %}
{% block content %} {% block content %}
<h5 class="my-3">@{{u.username}}'s followers ({{total}} user{{macros.plural(total)}})</h5> <h5 class="my-3">@{{u.username}}'s followers ({{total | commas}} user{{macros.plural(total)}})</h5>
<div class="overflow-x-auto mt-1"> <div class="overflow-x-auto mt-1">
<table> <table>
<thead> <thead>

View File

@ -1,7 +1,7 @@
{% extends "default.html" %} {% extends "default.html" %}
{% block pagetitle %}Users followed by @{{u.username}}{% endblock %} {% block pagetitle %}Users followed by @{{u.username}}{% endblock %}
{% block content %} {% block content %}
<h5 class="my-3">Users followed by @{{u.username}} ({{total}} user{{macros.plural(total)}})</h5> <h5 class="my-3">Users followed by @{{u.username}} ({{total | commas}} user{{macros.plural(total)}})</h5>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table> <table>
<thead> <thead>

View File

@ -1,7 +1,7 @@
{% extends "default.html" %} {% extends "default.html" %}
{% block pagetitle %}@{{u.username}}'s notification muters{% endblock %} {% block pagetitle %}@{{u.username}}'s notification muters{% endblock %}
{% block content %} {% block content %}
<h5 class="my-3">@{{u.username}}'s notification muters ({{total}} user{{macros.plural(total)}})</h5> <h5 class="my-3">@{{u.username}}'s notification muters ({{total | commas}} user{{macros.plural(total)}})</h5>
<div class="overflow-x-auto mt-1"> <div class="overflow-x-auto mt-1">
<table> <table>
<thead> <thead>

View File

@ -1,7 +1,7 @@
{% extends "default.html" %} {% extends "default.html" %}
{% block pagetitle %}Users whose notifications are muted by @{{u.username}}{% endblock %} {% block pagetitle %}Users whose notifications are muted by @{{u.username}}{% endblock %}
{% block content %} {% block content %}
<h5 class="my-3">Users whose notifications are muted by @{{u.username}} ({{total}} user{{macros.plural(total)}})</h5> <h5 class="my-3">Users whose notifications are muted by @{{u.username}} ({{total | commas}} user{{macros.plural(total)}})</h5>
<div class="overflow-x-auto mt-1"> <div class="overflow-x-auto mt-1">
<table> <table>
<thead> <thead>

View File

@ -2,7 +2,7 @@
{% block pagetitle %}@{{u.username}}'s Profile Views{% endblock %} {% block pagetitle %}@{{u.username}}'s Profile Views{% endblock %}
{% block content %} {% block content %}
<h5 class="pt-4 pl-2 pb-3">Users who viewed @{{u.username}}'s profile ({{total}} user{{macros.plural(total)}})</h5> <h5 class="pt-4 pl-2 pb-3">Users who viewed @{{u.username}}'s profile ({{total | commas}} user{{macros.plural(total)}})</h5>
<div class="overflow-x-auto"> <div class="overflow-x-auto">
<table> <table>
<thead> <thead>