From 873662fe815c678f35ec1518d9fc013c993ae710 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sun, 30 May 2010 11:26:48 +0200 Subject: Use of smarty to render rpm page ; apply coding standards, add license ; refs #46,48,47 --- smarty/templates/rpmphp/rpm.tpl | 86 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 smarty/templates/rpmphp/rpm.tpl (limited to 'smarty/templates/rpmphp/rpm.tpl') diff --git a/smarty/templates/rpmphp/rpm.tpl b/smarty/templates/rpmphp/rpm.tpl new file mode 100644 index 0000000..ffabb4f --- /dev/null +++ b/smarty/templates/rpmphp/rpm.tpl @@ -0,0 +1,86 @@ +

Repositories last updated {$repositories_update}.

+
+
+
+ Filter {$type|upper} packages + + + + +
+
+
+ + + + + + + + +{foreach from=$repos key=k item=v} + +{/foreach} + + + + + + + + +{foreach from=$packages item=p name=plist} + + + + + {foreach from=$p.versions key=k item=version} + + {$version.display} + + {/foreach} + +{/foreach} + +
PackageOwner(s)Upstream{$k}
{$packages|@count} packages found
+ {$p.name} + {if $p.channel} +
channel: {$p.channel} + {/if} +
+ {foreach from=$p.owners item=owner name=ow_it} + {$owner} + {if not $smarty.foreach.ow_it.last} +
+ {/if} + {/foreach} +
+ {if $p.upstream_stable} + {$p.upstream_stable} + {/if} + {if $p.upstream_unstable} +
{$p.upstream_unstable} + {/if} +
+ + -- cgit From 094a26031fbd5dddafc5e7d5927af4a8516669e7 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sun, 30 May 2010 11:36:34 +0200 Subject: Add license ; refs #46 --- smarty/templates/rpmphp/rpm.tpl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'smarty/templates/rpmphp/rpm.tpl') diff --git a/smarty/templates/rpmphp/rpm.tpl b/smarty/templates/rpmphp/rpm.tpl index ffabb4f..be277ca 100644 --- a/smarty/templates/rpmphp/rpm.tpl +++ b/smarty/templates/rpmphp/rpm.tpl @@ -1,3 +1,23 @@ +{* + * RPM page template + * + * Copyright © 2010 Remi Collet + * + * This file is part of rpmphp. + * + * rpmphp is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * rpmphp is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with rpmphp. If not, see . +*}

Repositories last updated {$repositories_update}.

-- cgit From 0177ebb23872520ab05fbb2f8dae3ae56fe3672c Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sun, 30 May 2010 18:19:33 +0200 Subject: Add link on package owner --- smarty/templates/rpmphp/rpm.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smarty/templates/rpmphp/rpm.tpl') diff --git a/smarty/templates/rpmphp/rpm.tpl b/smarty/templates/rpmphp/rpm.tpl index be277ca..32af685 100644 --- a/smarty/templates/rpmphp/rpm.tpl +++ b/smarty/templates/rpmphp/rpm.tpl @@ -72,7 +72,7 @@ {foreach from=$p.owners item=owner name=ow_it} - {$owner} + {$owner} {if not $smarty.foreach.ow_it.last}
{/if} -- cgit