produser.html 3.02 KB
Newer Older
gijs's avatar
gijs committed
1
{% extends "generator_base.html" %}
gijs's avatar
gijs committed
2
{% load generator_utils %}
gijs's avatar
gijs committed
3
{% block title %}Caveat → Produsers → {% if produser.name %}{{ produser.name|striptags  }}{% else %}{{ produser.produser|striptags }}{% endif %}{% endblock %}
gijs's avatar
gijs committed
4
5
6
7
8
9
10
{% block content %}
  <nav class="breadcrumbs">
    <ul>
      <li><a href="../produsers.html">Produsers</a></li>
      <li>{% if produser.name %}{{ produser.name }}{% else %}{{ produser.produser }}{% endif %}</li>
    </ul>
  </nav>
11
12
  <h1 class="produser">{% if produser.name %}{{ produser.name }}{% else %}{{ produser.produser }}{% endif %}</h1>
  {% if produser.trajectories %}
13
    {% for trajectory in produser.trajectories.targets %}
gijs's avatar
gijs committed
14
15
16
17
      <section class="long-text">
        <h2>Trajectory</h2>
        {{ trajectory.content }}
      </section>
18
19
20
21
    {% endfor %}
  {% endif %}
  
  {% if produser.content %}
gijs's avatar
gijs committed
22
23
24
25
    <section class="long-text">
      <h2>Biography</h2>
      {{ produser.content }}
    </section>
26
27
  {% endif %}
  
28
  {% if produser.events and produser.events.targets %}
29
30
    <h2>Activities</h2>
    <ul class="simplelist">
31
      {% for event in produser.events.targets %}
32
33
      <li>
        <section class="event-preview">
34
          <a href="{{ event.link }}">{{ event }}</a>
35
36
37
          {{ event.summary }}
        </section>
      </li> 
gijs's avatar
gijs committed
38
      {% endfor %}
39
40
    </ul>
  {% endif %}
gijs's avatar
gijs committed
41

42
  {% if produser.bibliography and produser.bibliography.targets %}
43
44
    <h2>Bibliography</h2>
    <ul class="simplelist">
45
      {% for entry in produser.bibliography.targets %}
46
47
48
49
        <li>{{ entry }}</li>
      {% endfor %}   
    </ul>
  {% endif %}
gijs's avatar
Video    
gijs committed
50

51
52
53
  {% if produser.video %}
    <h2>Video</h2>
    <ul class="simplelist">
54
      {% for video in produser.video.targets %}
55
56
57
58
59
60
61
62
        <li>
          <video controls>
            <source type="{{ video.type }}" src="{{ video.video }}">
          </video>
        </li>
      {% endfor %}   
    </ul>
  {% endif %}
gijs's avatar
gijs committed
63

64
  {% if produser.audio %}
gijs's avatar
gijs committed
65
66
    <h2>Audio</h2>
    <ul class="simplelist">
67
      {% for audio in produser.audio.targets %}
gijs's avatar
gijs committed
68
69
70
71
72
73
74
75
        <li>
          <audio controls>
            <source type="{{ audio.type }}" src="{{ audio.audio }}">
          </audio>
        </li>
      {% endfor %}   
    </ul>
  {% endif %}
gijs's avatar
gijs committed
76
  {% if produser.notes %}
77
    <h2>Notes</h2>
gijs's avatar
gijs committed
78
    <ul class="simplelist">
79
      {% for note in produser.notes.targets %}
80
81
82
83
84
85
        <li>
          <a href="{{ note.link }}" class="note">{{ note }}</a>
        </li>
      {% endfor %}
    </ul>
  {% endif %}
gijs's avatar
gijs committed
86
87
88
89
  
  {% if produser.events_participant %}
  <h2>Activities (participant)</h2>
  <ul class="simplelist">
90
    {% for event in produser.events_participant.targets %}
gijs's avatar
gijs committed
91
92
93
94
95
96
97
98
99
100
101
    <li>
      <section class="event-preview">
        <a href="{{ event.link }}">{{ event }}</a>
        {{ event.summary }}
      </section>
    </li> 
    {% endfor %}
  </ul>
  
  {% if produser.notes_participant %}
  <h2>Notes (participant)</h2>
gijs's avatar
gijs committed
102
  <ul class="simplelist">
103
    {% for note in produser.notes_participant.targets %}
gijs's avatar
gijs committed
104
105
106
107
108
109
110
111
      <li>
        <a href="{{ note.link }}" class="note">{{ note }}</a>
      </li>
    {% endfor %}
  </ul>
{% endif %}
{% endif %}
  
gijs's avatar
gijs committed
112
{% endblock %}