Compare commits
No commits in common. "7716359e0beb048dd1a036c9301d57f0ac45373f" and "1a715c86d56979dccdd0c3ae18aea138e58c0464" have entirely different histories.
7716359e0b
...
1a715c86d5
2 changed files with 20 additions and 32 deletions
|
@ -70,20 +70,10 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href='{% url "sites:submission" submission.submission_hash %}' class="stretched-link"></a>
|
<a href='{% url "sites:submission" submission.submission_hash %}' class="stretched-link"></a>
|
||||||
<div class="overlay p-2 text-center">
|
<div class="overlay p-2 text-center">
|
||||||
{% if submission.content_object.title %}
|
{% if submission.content_object.description|length > 64 %}
|
||||||
{% if submission.content_object.title|length > 64 %}
|
<p>{{ submission.content_object.description|html_to_text|slice:"0:64"|add:"..." }}</p>
|
||||||
<p title="{{ submission.content_object.title }}">{{ submission.content_object.title|slice:"0:64"|add:"..." }}</p>
|
|
||||||
{% else %}
|
|
||||||
<p title="{{ submission.content_object.title }}">{{ submission.content_object.title }}</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if submission.content_object.description|length > 64 %}
|
<p>{{ submission.content_object.description|html_to_text }}</p>
|
||||||
<p>{{ submission.content_object.description|html_to_text|slice:"0:64"|add:"..." }}</p>
|
|
||||||
{% else %}
|
|
||||||
<p>{{ submission.content_object.description|html_to_text }}</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{% url 'sites:artist_profile' submission.author.user_hash %}" class="z-2">
|
<a href="{% url 'sites:artist_profile' submission.author.user_hash %}" class="z-2">
|
||||||
{% if submission.category.name == "furaffinity" %}
|
{% if submission.category.name == "furaffinity" %}
|
||||||
|
|
|
@ -5,15 +5,14 @@
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<nav aria-label="Page navigation">
|
<nav aria-label="Page navigation">
|
||||||
<ul class="pagination justify-content-center">
|
<ul class="pagination justify-content-center">
|
||||||
|
|
||||||
{% if page_obj.has_previous %}
|
{% if page_obj.has_previous %}
|
||||||
<li class="page-item">
|
<li class="page-item">
|
||||||
<a class="page-link" href="?{{ request.GET.urlencode }}&page=1" aria-label="First">
|
<a class="page-link fs-4 lh-1" href="?page=1" aria-label="First">
|
||||||
«
|
«
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="page-item">
|
<li class="page-item">
|
||||||
<a class="page-link" href="?{{ request.GET.urlencode }}&page={{ page_obj.previous_page_number }}" aria-label="Previous">
|
<a class="page-link fs-4 lh-1" href="?page={{ page_obj.previous_page_number }}" aria-label="Previous">
|
||||||
<span aria-hidden="true">
|
<span aria-hidden="true">
|
||||||
‹
|
‹
|
||||||
</span>
|
</span>
|
||||||
|
@ -22,45 +21,45 @@
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="page-item disabled">
|
<li class="page-item disabled">
|
||||||
<span class="page-link text-decoration-line-through">
|
<span class="page-link fs-4 lh-1 text-decoration-line-through">
|
||||||
«
|
«
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="page-item disabled">
|
<li class="page-item disabled">
|
||||||
<span class="page-link text-decoration-line-through">
|
<span class="page-link fs-4 lh-1 text-decoration-line-through">
|
||||||
‹
|
‹
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<li class="page-item disabled">
|
<li class="page-item disabled">
|
||||||
<span class="page-link text-nowrap">
|
<span class="page-link text-nowrap fs-4 lh-1">
|
||||||
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
|
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{% if page_obj.has_next %}
|
{% if page_obj.has_next %}
|
||||||
<li class="page-item">
|
<li class="page-item">
|
||||||
<a class="page-link" href="?{{ request.GET.urlencode }}&page={{ page_obj.next_page_number }}" aria-label="Next">
|
<a class="page-link fs-4 lh-1" href="?page={{ page_obj.next_page_number }}" aria-label="Next">
|
||||||
<span aria-hidden="true">
|
<span aria-hidden="true">
|
||||||
›
|
›
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="page-item">
|
<li class="page-item">
|
||||||
<a class="page-link" href="?{{ request.GET.urlencode }}&page={{ page_obj.paginator.num_pages }}" aria-label="Last">
|
<a class="page-link fs-4 lh-1" href="?page={{ page_obj.paginator.num_pages }}" aria-label="Last">
|
||||||
»
|
»
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="page-item disabled">
|
<li class="page-item disabled">
|
||||||
<span class="page-link text-decoration-line-through">
|
<span class="page-link fs-4 lh-1 text-decoration-line-through">
|
||||||
›
|
›
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="page-item disabled">
|
<li class="page-item disabled">
|
||||||
<span class="page-link text-decoration-line-through">
|
<span class="page-link fs-4 lh-1 text-decoration-line-through">
|
||||||
»
|
»
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
|
@ -73,15 +72,14 @@
|
||||||
|
|
||||||
<!-- Jump-to field -->
|
<!-- Jump-to field -->
|
||||||
<div class="col ">
|
<div class="col ">
|
||||||
<form method="get" class="d-flex flex-row flex-nowrap flex-grow-1 justify-content-center ">
|
<form method="get" class="d-flex flex-row flex-nowrap g-3 justify-content-center ">
|
||||||
{% for key, value in request.GET.items %}
|
<label for="jumpToPage" class="col-auto col-form-label">Jump to:</label>
|
||||||
{% if key != "page" %}
|
<div class="col-4 col-sm-3 col-md-3 col-lg-2 col-xl-1 mx-2">
|
||||||
<input type="hidden" name="{{ key }}" value="{{ value }}">
|
<input type="number" name="page" id="jumpToPage" class="form-control" min="1" max="{{ page_obj.paginator.num_pages }}" value="{{ page_obj.number }}"">
|
||||||
{% endif %}
|
</div>
|
||||||
{% endfor %}
|
<div class="col-auto">
|
||||||
<label for="jumpToPage" class="col-auto col-form-label mx-1">Jump to:</label>
|
<button type="submit" class="btn btn-primary">Go</button>
|
||||||
<input type="number" name="page" id="jumpToPage" class="form-control mx-1" min="1" max="{{ page_obj.paginator.num_pages }}" value="{{ page_obj.number }}" style="width: 5rem">
|
</div>
|
||||||
<button type="submit" class="btn btn-primary mx-1">Go</button>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<!-- Jump to field End -->
|
<!-- Jump to field End -->
|
||||||
|
|
Loading…
Reference in a new issue