We want to have contents and detauls of channel expressions as well and we already have that in product.type == file, so why not reuse the same for the channel expression?
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
KBIHF2RLCJFXFSPYKRAEK3TNRRGD5O3OJK5KXBLACBQ4YOO7LG4QC
[% CASE "channel" %]
<tr class="product">
<td>
<a href="[% uri %]">
<img src="[% c.uri_for("/static/images/channel.png") %]" alt="Channel" />
Channel expression tarball <tt>[% product.name %]</tt>
[% IF product.subtype != "-" %]for <tt>[% product.subtype %]</tt>[% END %]
</a>
</td>
</tr>
File <tt>[% product.name %]</tt> of type <tt>[% product.subtype %]</tt>
[% IF product.type == "channel" %]
<img src="[% c.uri_for("/static/images/channel.png") %]" alt="Channel" />
Channel expression tarball <tt>[% product.name %]</tt>
[% IF product.subtype != "-" %]for <tt>[% product.subtype %]</tt>[% END %]
[% ELSE %]
File <tt>[% product.name %]</tt> of type <tt>[% product.subtype %]</tt>
[% END %]