<!-- tag_details.html -->

<!-- tags.html -->

{% extends "base.html" %}

{% block title %}{{ tag.tag}} | Tag Details | Gallery-Archivist{% endblock %}

{% load custom_filters %}

{% load static %}

{% block content %}

<div class="row">
    <a href="{% url 'fa:tags' %}">Back to Tags Page</a>
    <h1>{{ tag.tag }}</h1>
    <h2>Submissions</h2>
    {% if submissions %}
        <ul>
            {% for submission in submissions %}
                <li>
                    <a href="{% url 'fa:submission_detail' submission_id=submission.submission_id %}">{{ submission.title }} by {{ submission.artist.artist }}</a>
                    <p>{{ submission.description|truncatechars:100 }}</p>
                </li>
                
            {% endfor %}
        </ul>
    {% else %}
        <p>No submissions yet.</p>
    {% endif %}
    <a href="https://www.furaffinity.net/view/">View on Furaffinity..</a>
</div>

{% endblock %}
