{% extends "base.html" %}
{% block title %}{{ cat_name }} - AUTARCH{% endblock %}

{% block content %}
<div class="page-header">
    <h1>{{ cat_name }}</h1>
</div>

{% if modules %}
<div class="section">
    <h2>Modules</h2>
    <ul class="module-list">
    {% for name, info in modules.items() %}
        <li class="module-item">
            <div>
                <div class="module-name">{{ name }}</div>
                <div class="module-desc">{{ info.description }}</div>
            </div>
            <div class="module-meta">v{{ info.version }} by {{ info.author }}</div>
        </li>
    {% endfor %}
    </ul>
</div>
{% else %}
<div class="empty-state">No modules in this category.</div>
{% endif %}
{% endblock %}
