Skip to content

Commit

Permalink
Tweaks to templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Cross committed Oct 2, 2015
1 parent d4e2b56 commit edd3ef0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Literature/views/productions.tt
@@ -1,7 +1,7 @@
[% # Provide a title -%]
[% META title = 'List of Productions' -%]
<ul>
[% FOREACH p IN productions.all.sort('title')-%]
[% FOREACH p IN productions.all.sort('year', 'title')-%]
<li><a href="/productions/[% p.id %]">[% p.title %]</a>
([% p.made_by %] - [% p.year %])</li>
[% END -%]
Expand Down
4 changes: 2 additions & 2 deletions Literature/views/work.tt
Expand Up @@ -15,8 +15,8 @@
<h3>Productions</h3>
[% IF work.productions.size %]
<ul>
[% FOR p IN work.productions %]
<li><a href="/productions/[% p.id %]">[% p.made_by %] ([% p.year %])</a></li>
[% FOR p IN work.productions.sort('year') %]
<li><a href="/productions/[% p.id %]">[% p.year %] [% IF p.title; '('; p.title; ')'; END %]</a></li>
[% END %]
</ul>
[% ELSE %]
Expand Down

0 comments on commit edd3ef0

Please sign in to comment.