1
0
Fork 0
IdreXyz/label/templates/label/release.html
2016-02-02 18:30:43 +01:00

70 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% load static %}
{% block stylesheets %}
<link rel="stylesheet" href="{% static 'css/release.css' %}" />
{% endblock %}
{% block content %}
<h1>
{% for contrib in contribs %}
{{ contrib.name }}
{% if not forloop.last %} &amp; {% endif %}
{% endfor %}
- {{ release.title }} ({{ release.year }})
</h1>
{% if release.description %}
<table id="infos"><tr>
<td id="left">
{% if release.embed %}
{% autoescape off %}
{{ release.embed }}
{% endautoescape %}
{% else %}
<p>
<img src="{{ MEDIA_URL }}{{ release.cover }}"
alt="{{ release.title }}"
class="logo" />
</p>
{% endif %}
</td>
<td id="right">
{% if release.description %}
{% autoescape off %}
{{ release.description }}
{% endautoescape %}
{% endif %}
</td>
</tr></table>
{% else %}
{% if release.embed %}
{% autoescape off %}
{{ release.embed }}
{% endautoescape %}
{% else %}
<p>
<img src="{{ MEDIA_URL }}{{ release.cover }}"
alt="{{ release.title }}"
class="logo" />
</p>
{% endif %}
{% endif %}
{% endblock %}