From d1de12cac1eb08ee2c8133a3fe41c53ae7d34cee Mon Sep 17 00:00:00 2001 From: aszlig Date: Sun, 26 Apr 2015 18:01:02 +0200 Subject: [PATCH] product-list: Handle channel along with "file". 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 --- src/root/product-list.tt | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/root/product-list.tt b/src/root/product-list.tt index 5eef9640..17e2911e 100644 --- a/src/root/product-list.tt +++ b/src/root/product-list.tt @@ -117,19 +117,7 @@ [% END %] - [% CASE "channel" %] - - - - - Channel - Channel expression tarball [% product.name %] - [% IF product.subtype != "-" %]for [% product.subtype %][% END %] - - - - - [% CASE "file" %] + [% CASE ["file", "channel"] %] @@ -148,7 +136,13 @@ [% CASE "binary-dist" %] Binary distribution Binary distribution [% product.name %] [% CASE DEFAULT %] - File [% product.name %] of type [% product.subtype %] + [% IF product.type == "channel" %] + Channel + Channel expression tarball [% product.name %] + [% IF product.subtype != "-" %]for [% product.subtype %][% END %] + [% ELSE %] + File [% product.name %] of type [% product.subtype %] + [% END %] [% END %] [% WRAPPER makePopover title="Details" classes="btn-mini" %]