mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-23 16:22:08 +00:00
52 lines
1.9 KiB
HTML
52 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
|
|
{% block title %}{% trans "Boost Libraries by Category" %}{% endblock %}
|
|
{% block description %}{% trans "Browse Boost C++ Libraries by category and discover tools for multithreading, image processing, testing, and more." %}{% endblock %}
|
|
|
|
|
|
{% block content %}
|
|
<main class="content">
|
|
{% include "libraries/includes/library_preferences.html" %}
|
|
|
|
{# alert for non-current Boost versions #}
|
|
{% include "libraries/includes/version_alert.html" %}
|
|
|
|
{# Libraries list #}
|
|
<div class="space-y-3">
|
|
{% for result in library_versions_by_category %}
|
|
<div class="relative content-between p-3 w-full bg-white md:rounded-lg md:shadow-lg md:p-5 dark:bg-charcoal">
|
|
<h5 class="mb-2 pb-2 text-xl md:text-2xl leading-tight text-orange border-b border-gray-300 dark:border-slate">{{ result.category }}</h5>
|
|
<table class="table-auto w-full">
|
|
<tbody>
|
|
{% for library_version in result.library_version_list %}
|
|
{% include "libraries/_library_categorized_list_item.html" %}
|
|
{% empty %}
|
|
<p class="text-gray-600 dark:text-gray-400">No libraries in this category yet.</p>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{# end libraries list #}
|
|
|
|
{% if page_obj.paginator %}
|
|
{# Pagination #}
|
|
<div class="space-x-3 text-center">
|
|
{% if page_obj.has_previous %}
|
|
<a href="?page=1" class="text-orange"><small> << First</small></a>
|
|
<a href="?page={{ page_obj.previous_page_number }}" class="text-orange"><small> < Previous</small> </a>
|
|
{% endif %}
|
|
{% if page_obj.has_next %}
|
|
<a href="?page={{ page_obj.next_page_number }}" class="text-orange"><small>Next <small> > </small></a>
|
|
<a href="?page={{ page_obj.paginator.num_pages }}" class="text-orange">Last <small> >></small></a>
|
|
{% endif %}
|
|
</div>
|
|
{# end pagination #}
|
|
{% endif %}
|
|
|
|
</main>
|
|
{% endblock %}
|