contentdb/app/templates/packages/package_base.html

39 lines
1008 B
HTML
Raw Normal View History

2021-05-04 04:15:26 +02:00
{% extends "base.html" %}
{% block container %}
2021-05-04 22:52:43 +02:00
<main class="container mt-4">
2021-05-04 04:15:26 +02:00
{% if tabs %}
2021-05-04 22:52:43 +02:00
<div class="row">
<div class="col-md-3 mb-4">
<div class="list-group">
<a class="list-group-item list-group-item-action" href="{{ package.getDetailsURL() }}">
<span class="row m-0 p-0">
<span class="col-auto m-0 p-0">
<img class="img-fluid user-photo img-thumbnail img-thumbnail-1"
src="{{ package.getThumbnailOrPlaceholder(1) }}" alt="Thumbnail" style="max-height: 20px;">
</span>
<span class="col m-0 p-0 pl-2">
{{ package.title }}
</span>
</span>
2021-05-04 04:15:26 +02:00
</a>
{% for item in tabs %}
2021-05-04 22:52:43 +02:00
<a href="{{ item.url }}"
class="list-group-item list-group-item-action {% if item.id == current_tab %}active{% endif %}">
{{ item.title }}
</a>
2021-05-04 04:15:26 +02:00
{% endfor %}
2021-05-04 22:52:43 +02:00
</div>
2021-05-04 04:15:26 +02:00
</div>
2021-05-04 22:52:43 +02:00
<div class="col-md-9">
{% endif %}
2021-05-04 04:15:26 +02:00
2021-05-04 22:52:43 +02:00
{{ self.content() }}
2021-05-04 04:15:26 +02:00
2021-05-04 22:52:43 +02:00
{% if tabs %}
</div>
</div>
2021-05-04 04:15:26 +02:00
{% endif %}
2021-05-04 22:52:43 +02:00
</main>
2021-05-04 04:15:26 +02:00
{% endblock %}