Commit ace9be3d authored by ale's avatar ale

fix layout of video page; see ticket #22

parent 1355987a
......@@ -64,7 +64,7 @@ if not s:
</p>
</%def>
<%call expr="self.tables.three_columns()">
<%call expr="self.tables.two_columns()">
<%def name="left()">
% if c.video.authors:
${infobox((len(c.video.authors) == 1) and _('Author') or _('Authors'),
......@@ -86,11 +86,14 @@ if c.video.coverage_location:
arg=c.video.coverage_location)),
c.video.coverage_country and ('(%s)' % c.video.coverage_country.upper()) or ''))
%>
% if coverage:
${infobox(_('Coverage'), '<br/>'.join(coverage))}
% endif
% if coverage:
${infobox(_('Coverage'), '<br/>'.join(coverage))}
% endif
% if c.video.publication_date:
${infobox(_('Publication date'), h.datefmt(c.video.publication_date))}
% endif
</%def>
<%def name="middle()">
<%def name="right()">
% if c.video.tags:
${infobox(_('Keywords'),
' / '.join([h.link_to(tag.tag, url=h.url_for(controller='/video', action='list', what='tag', arg=tag.tag))
......@@ -101,14 +104,9 @@ if c.video.coverage_location:
' / '.join([h.link_to(_(cat.name), url=h.url_for(controller='/video', action='list', what='category', arg=cat.category_id))
for cat in c.video.categories]))}
% endif
</%def>
<%def name="right()">
% if h.is_admin():
${infobox(_('Status'), c.video.Status.label(c.video.status))}
% endif
% if c.video.publication_date:
${infobox(_('Publication date'), h.datefmt(c.video.publication_date))}
% endif
</%def>
</%call>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment