{% extends "base.html" %} {% block title %}Rabbits{% endblock %} {% block page_title %}Rabbits{% endblock %} {% block topbar_actions %} {% if user.role in ('staff', 'admin') %} {% endif %} {% endblock %} {% macro sort_th(col, label, extra='') %} {% set new_order = 'desc' if sort == col and order == 'asc' else 'asc' %} {% set base = '/rabbits?sort=' ~ col ~ '&order=' ~ new_order %} {% set url = base ~ ('&status=' ~ status_filter if status_filter else '') ~ ('&search=' ~ search if search else '') %} {{ label }}{% if sort == col %} {{ '↑' if order == 'asc' else '↓' }}{% endif %} {% endmacro %} {% block content %}
{{ stat_label }}
{{ stat_count }}
Gender
{{ male_count }} / {{ female_count }}
Fixed
{{ neutered_count }} / {{ unneutered_count }}
{{ sort_th('name', 'Name') }} {{ sort_th('status', 'Status', 'hide-mobile') }} {{ sort_th('gender', 'Gender', 'hide-mobile') }} {{ sort_th('date_of_birth', 'Date of Birth', 'hide-mobile') }} {{ sort_th('neutered_spayed', 'Neutered', 'hide-mobile') }} {{ sort_th('hutch', 'Hutch') }} {% for rabbit in rabbits %} {% include "rabbits/_row.html" %} {% else %} {% endfor %}
Actions
No rabbits found.
{% endblock %}