mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 10:11:09 -05:00
93 lines
4.1 KiB
HTML
93 lines
4.1 KiB
HTML
{% extends "base/base.html" %}
|
|
{% load static %}
|
|
|
|
{% block title %}Ride Designers - ThrillWiki{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container mx-auto px-4 py-8">
|
|
<div class="mb-8">
|
|
<h1 class="text-3xl font-bold mb-2">Ride Designers</h1>
|
|
<p class="text-muted-foreground">
|
|
Discover the creative minds behind the world's most innovative attractions.
|
|
{{ total_designers }} designer{{ total_designers|pluralize }} found.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
|
{% for designer in designers %}
|
|
<div class="bg-card rounded-lg border p-6 hover:shadow-md transition-shadow">
|
|
<div class="flex items-start justify-between mb-4">
|
|
<div>
|
|
<h3 class="text-lg font-semibold mb-1">{{ designer.name }}</h3>
|
|
{% if designer.founded_date %}
|
|
<p class="text-sm text-muted-foreground">Founded {{ designer.founded_date.year }}</p>
|
|
{% endif %}
|
|
</div>
|
|
<div class="text-right">
|
|
<span class="inline-flex items-center rounded-full bg-primary/10 px-2 py-1 text-xs font-medium text-primary">
|
|
{{ designer.ride_count }} ride{{ designer.ride_count|pluralize }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
{% if designer.description %}
|
|
<p class="text-sm text-muted-foreground mb-4 line-clamp-3">
|
|
{{ designer.description|truncatewords:20 }}
|
|
</p>
|
|
{% endif %}
|
|
|
|
<div class="flex items-center justify-between">
|
|
{% if designer.website %}
|
|
<a href="{{ designer.website }}" target="_blank" rel="noopener noreferrer"
|
|
class="text-sm text-primary hover:underline">
|
|
<i class="fas fa-external-link-alt mr-1"></i>
|
|
Website
|
|
</a>
|
|
{% else %}
|
|
<span></span>
|
|
{% endif %}
|
|
|
|
<a href="#" class="text-sm text-primary hover:underline">
|
|
View Rides →
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{% empty %}
|
|
<div class="col-span-full text-center py-12">
|
|
<i class="fas fa-drafting-compass text-4xl text-muted-foreground mb-4"></i>
|
|
<h3 class="text-lg font-semibold mb-2">No designers found</h3>
|
|
<p class="text-muted-foreground">There are no designers to display at this time.</p>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
{% if is_paginated %}
|
|
<div class="mt-8 flex justify-center">
|
|
<nav class="flex items-center space-x-2">
|
|
{% if page_obj.has_previous %}
|
|
<a href="?page=1" class="px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground">
|
|
First
|
|
</a>
|
|
<a href="?page={{ page_obj.previous_page_number }}" class="px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground">
|
|
Previous
|
|
</a>
|
|
{% endif %}
|
|
|
|
<span class="px-3 py-2 text-sm font-medium">
|
|
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}
|
|
</span>
|
|
|
|
{% if page_obj.has_next %}
|
|
<a href="?page={{ page_obj.next_page_number }}" class="px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground">
|
|
Next
|
|
</a>
|
|
<a href="?page={{ page_obj.paginator.num_pages }}" class="px-3 py-2 text-sm font-medium text-muted-foreground hover:text-foreground">
|
|
Last
|
|
</a>
|
|
{% endif %}
|
|
</nav>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|