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') 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/index.tpl | 20 ++++++++++++++++++++ smarty/templates/rpmphp/main.tpl | 20 ++++++++++++++++++++ smarty/templates/rpmphp/rpm.tpl | 20 ++++++++++++++++++++ smarty/templates/rpmphp/zoom.tpl | 21 +++++++++++++++++++++ 4 files changed, 81 insertions(+) (limited to 'smarty') diff --git a/smarty/templates/rpmphp/index.tpl b/smarty/templates/rpmphp/index.tpl index df6cb52..2aeb00b 100644 --- a/smarty/templates/rpmphp/index.tpl +++ b/smarty/templates/rpmphp/index.tpl @@ -1,3 +1,23 @@ +{* + * Index 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 . +*}

Package reports

  • PECL Extensions in Fedora with upstream information
  • diff --git a/smarty/templates/rpmphp/main.tpl b/smarty/templates/rpmphp/main.tpl index 6f12fdf..ace37c9 100644 --- a/smarty/templates/rpmphp/main.tpl +++ b/smarty/templates/rpmphp/main.tpl @@ -1,3 +1,23 @@ +{* + * Main 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 . +*} 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}.

    diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl index e60161c..6031a69 100644 --- a/smarty/templates/rpmphp/zoom.tpl +++ b/smarty/templates/rpmphp/zoom.tpl @@ -1,3 +1,24 @@ +{* + * Zoom 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 . +*} + {if $error} {if $error eq 'missing_name'}

    Missing package name

    -- 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') 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 From 4fe73c547050003599021850f0c6099f7c224f07 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sun, 30 May 2010 19:28:36 +0200 Subject: Use of smarty to render all page ; apply coding standards, add license ; refs #46,48,47 --- smarty/templates/rpmphp/all.tpl | 104 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 smarty/templates/rpmphp/all.tpl (limited to 'smarty') diff --git a/smarty/templates/rpmphp/all.tpl b/smarty/templates/rpmphp/all.tpl new file mode 100644 index 0000000..8d9c20a --- /dev/null +++ b/smarty/templates/rpmphp/all.tpl @@ -0,0 +1,104 @@ +{* + * All 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}.

    +
    + +
    + Filter {$type|upper} packages + + + +
    + +
    + +{if $error} +

    Ooops, an error occured:
    {$error}

    +{/if} + + + + + + +{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} + +{foreachelse} + + + +{/foreach} + +
    PackageOwner(s){$k}
    {$packages|@count} packages found
    + {$p.name} + + {foreach from=$p.owners item=owner name=ow_it} + {$owner} + {if not $smarty.foreach.ow_it.last} +
    + {/if} + {/foreach} +
    +

    Choose a criteria from the filter menu

    +
    + +
      +
    • Legend:
    • +
    • Upstream: bold if stable.
    • +
    • Repo: bold for latest release.
    • +
    • Lastest released (stable if exists)
    • +
    • Lastest in testing
    • +
    • Lastest not available
    • +
    -- cgit