contentdb/app/templates/packages/package_base.html

39 lines
1.0 KiB
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">
2023-06-18 23:00:24 +02:00
<a class="list-group-item list-group-item-action" href="{{ package.get_url('packages.view') }}">
2021-05-04 22:52:43 +02:00
<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.get_thumb_or_placeholder(1) }}" alt="{{ _('Thumbnail') }}" style="max-height: 20px;">
2021-05-04 22:52:43 +02:00
</span>
2023-08-22 20:58:43 +02:00
<span class="col m-0 p-0 ps-2">
2021-05-04 22:52:43 +02:00
{{ 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 %}