2017-02-16 01:01:36 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="/item/">Everything</a></li>
|
|
|
|
{% for ancestor in ancestors %}
|
|
|
|
<li><a href="{{ ancestor.get_absolute_url }}">{{ ancestor.name }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
<li class="active">{{ item.name }}</li>
|
|
|
|
</ol>
|
2017-02-28 23:16:10 +00:00
|
|
|
<h2>
|
|
|
|
<small class="pull-right"><a href="{% url 'admin:storage_item_change' item.pk %}"><span class="glyphicon glyphicon-pencil"></span></a></small>
|
|
|
|
{{ item.name }} <small>{{ item.pk }}</small>
|
|
|
|
</h2>
|
2017-02-16 01:01:36 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4">
|
2017-02-28 23:16:10 +00:00
|
|
|
<h3>Properties</h3>
|
2017-02-16 01:01:36 +00:00
|
|
|
<table class="table table-hover table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>key</th>
|
|
|
|
<th>value</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for k, v in item.props.items %}
|
2017-02-28 23:16:10 +00:00
|
|
|
<tr><td>{{ k }}</td><td>{{ v|urlize }}</td></tr>
|
|
|
|
{% empty %}
|
|
|
|
<tr><td colspan=2>No properties</td></tr>
|
2017-02-16 01:01:36 +00:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2017-02-28 23:16:10 +00:00
|
|
|
|
|
|
|
{% if images %}
|
|
|
|
<h3>Photos</h3>
|
|
|
|
<div class="row">
|
|
|
|
{% for image in images %}
|
|
|
|
<div class="col-md-6">
|
|
|
|
<a href="{{ image.image.url }}">
|
|
|
|
<img src="{{ image.image.url }}" class="img-responsive img-thumbnail" />
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2017-02-16 01:01:36 +00:00
|
|
|
{% endif %}
|
2017-04-28 12:14:27 +00:00
|
|
|
|
|
|
|
{% if labels %}
|
|
|
|
<h3>Labels</h3>
|
|
|
|
{% for label in labels %}
|
|
|
|
<span class="label label-default">{{ label.id }} <small>({{ label.revision }})</small></span>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2017-02-16 01:01:36 +00:00
|
|
|
</div>
|
|
|
|
|
2017-02-28 23:16:10 +00:00
|
|
|
<div class="col-md-8">
|
|
|
|
{{ item.description|urlize }}
|
|
|
|
|
|
|
|
<h3>Children</h3>
|
|
|
|
<table class="table table-striped table-hover">
|
2017-10-02 19:41:36 +00:00
|
|
|
{% for child in children|dictsort:"name" %}
|
2017-02-28 23:16:10 +00:00
|
|
|
<tr><td><a href="{{ child.get_absolute_url }}">{{ child.name }}</a></td></tr>
|
|
|
|
{% empty %}
|
|
|
|
<tr><td colspan=2>No children</td></tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-02-16 01:01:36 +00:00
|
|
|
{% endblock %}
|