object.html
HTML document, ASCII text
1{% extends "default.html" %} 2{% import "small-annotation-display.html" as annotation_display %} 3 4{% block nav_title %}{{ object.id }}{% endblock %} 5{% block title %}Object {{ object.id }} | {{ site_name }}{% endblock %} 6 7{% block content %} 8<x-frame style="--width: 768px"> 9<h1>{{ object.id }}</h1> 10<p>{{ object.description }}</p> 11<h2>Supersets</h2> 12{% if object.parent_links %} 13<ul> 14{% for parent in object.parent_links %} 15{% set superset = parent.parent %} 16<li><a href="/object/{{ superset.id }}">{{ superset.id }}</a></li> 17{% endfor %} 18</ul> 19{% else %} 20<p>This object has no supersets.</p> 21{% endif %} 22{% if object.child_links %} 23<h2>Subsets</h2> 24<ul> 25{% for child in object.child_links %} 26{% set subset = child.child %} 27<li><a href="/object/{{ subset.id }}">{{ subset.id }}</a></li> 28{% endfor %} 29</ul> 30{% else %} 31<p>This object has no subsets.</p> 32{% endif %} 33<h2>Pictures with this object</h2> 34<ul class="thumbnail-list"> 35{% for resource in resources %} 36<li> 37<a href="/picture/{{ resource.id }}"> 38{{ annotation_display.annotation_display(resource) }} 39<div class="list-detail"> 40{{ resource.title }} 41</div> 42</a> 43<div class="list-more"> 44<span class="picture-author">by <a href="/profile/{{ resource.author.username }}">{{ resource.author.formatted_name }}</a></span> 45</div> 46</li> 47{% endfor %} 48</ul> 49{% include "pagination.html" %} 50</x-frame> 51{% endblock %}