/
actor.tt
28 lines (25 loc) · 924 Bytes
/
actor.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[% title = actor.name -%]
[% INCLUDE header.tt -%]
<script type="application/ld+json">
[% actor.json_ld %]</script>
<p class="text-muted">Actor</hp>
<h1 class="display-3">[% title %]</h1>
[% IF actor.born OR actor.died %]
<p>[% IF actor.born %]Born: [% actor.born.strftime('%m %B %Y'); END -%]
[% IF actor.born AND actor.died %], [% END %]
[% IF actor.died %]Died: [% actor.died.strftime('%m %B %Y'); END %]</p>
[% END %]
<p><a href="http://imdb.com/name/[% actor.imdb %]">[% actor.name %] on IMDB</a></p>
[% IF actor.actor_roles.size %]
<ul>
[% FOREACH r IN actor.actor_roles %]
<li>Played <a href="/characters/[% r.character.slug %]/">[% r.character.name %]</a> in
<a href="/productions/[% r.production.slug %]i">[% r.production.title %]</a>
([% r.production.description %])</li>
[% END %]
</ul>
[% ELSE %]
<p>No roles found.</p>
[% END %]
[% INCLUDE amazon.tt type='DVD', search=actor.name %]
[% INCLUDE footer.tt -%]