summaryrefslogtreecommitdiffstats
path: root/smarty/templates/rpmphp
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-05-30 19:37:05 +0200
committerRemi Collet <fedora@famillecollet.com>2010-05-30 19:37:05 +0200
commit9a9c61c739c976a9fcbe086e03b5305b0e646d5c (patch)
tree33716a03fd9e88e5b1d2de9bde7efc8603e02d1e /smarty/templates/rpmphp
parentb613aa3f99a51e08b16b4402de2b684d3f266b66 (diff)
parent4fe73c547050003599021850f0c6099f7c224f07 (diff)
merge
Diffstat (limited to 'smarty/templates/rpmphp')
-rw-r--r--smarty/templates/rpmphp/all.tpl104
-rw-r--r--smarty/templates/rpmphp/index.tpl20
-rw-r--r--smarty/templates/rpmphp/main.tpl20
-rw-r--r--smarty/templates/rpmphp/rpm.tpl106
-rw-r--r--smarty/templates/rpmphp/zoom.tpl21
5 files changed, 271 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
+*}
+ <p id="repositories_update">Repositories last updated {$repositories_update}.</p>
+ <div id="filter">
+ <form action="all.php" method="get">
+ <fieldset>
+ <legend>Filter {$type|upper} packages</legend>
+ <label for="what">Criteria: </label>
+ <select name="what" id="what">
+ <optgroup label="Pakages">
+{foreach from=$starts_with item=s}
+ <option value="{$s->init}"{if $what eq $s->init} selected="selected"{/if}>Start with {$s->init|substr:1:2}</option>
+{foreachelse}
+ <option value="remi">remi</option>
+{/foreach}
+ </optgroup>
+ <optgroup label="Owner">
+{foreach from=$owners item=o}
+ <option value="{$o->owner}"{if $what eq $o->owner} selected="selected"{/if}>{$o->owner}</option>
+{foreachelse}
+ <option value="remi">remi</option>
+{/foreach}
+ </optgroup>
+ </select>
+ <input type="submit" value="Filter" />
+ </fieldset>
+ </form>
+ </div><!-- /filter -->
+
+{if $error}
+ <p id="error"><strong>Ooops, an error occured:</strong><br/>{$error}</p>
+{/if}
+
+ <table id="list-packages">
+ <thead>
+ <tr>
+ <th>Package</th>
+ <th>Owner(s)</th>
+{foreach from=$repos key=k item=v}
+ <th>{$k}</th>
+{/foreach}
+ </tr>
+ </thead>
+ <tfoot>
+ <tr>
+ <td colspan="{math equation="x+2" x=$repos|@count}">{$packages|@count} packages found</td>
+ </tr>
+ </tfoot>
+ <tbody>
+{foreach from=$packages item=p name=plist}
+ <tr class="{if $smarty.foreach.plist.iteration % 2 eq 0}even{else}odd{/if}">
+ <td>
+ <a href="zoom.php?rpm={$p.name}" title="{$p.description}">{$p.name}</a>
+ </td>
+ <td>
+ {foreach from=$p.owners item=owner name=ow_it}
+ <a href="?what={$owner}">{$owner}</a>
+ {if not $smarty.foreach.ow_it.last}
+ <br/>
+ {/if}
+ {/foreach}
+ </td>
+ {foreach from=$p.versions key=k item=version}
+ <td{if $version.class} class="{$version.class}"{/if}>
+ {$version.display}
+ </td>
+ {/foreach}
+ </tr>
+{foreachelse}
+ <tr>
+ <td colspan="{math equation="x+2" x=$repos|@count}">
+ <h2>Choose a criteria from the filter menu</h2>
+ </td>
+ </tr>
+{/foreach}
+ </tbody>
+ </table>
+
+ <ul id="legend">
+ <li>Legend: </li>
+ <li><strong>Upstream</strong>: bold if stable. </li>
+ <li><strong>Repo</strong>: bold for latest release.</li>
+ <li class='check'>Lastest released (stable if exists)</li>
+ <li class='info'>Lastest in testing</li>
+ <li class='attn'>Lastest not available</li>
+ </ul>
diff --git a/smarty/templates/rpmphp/index.tpl b/smarty/templates/rpmphp/index.tpl
index ae65b48..3cd47b0 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 <http://www.gnu.org/licenses/>.
+*}
<h2>Package reports</h2>
<ul id="reports">
<li><a href="rpm.php?type=pecl">PECL Extensions in Fedora</a> with upstream information</li>
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 <http://www.gnu.org/licenses/>.
+*}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
diff --git a/smarty/templates/rpmphp/rpm.tpl b/smarty/templates/rpmphp/rpm.tpl
new file mode 100644
index 0000000..32af685
--- /dev/null
+++ b/smarty/templates/rpmphp/rpm.tpl
@@ -0,0 +1,106 @@
+{*
+ * 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 <http://www.gnu.org/licenses/>.
+*}
+ <p id="repositories_update">Repositories last updated {$repositories_update}.</p>
+ <div id="filter">
+ <form action="rpm.php" method="get">
+ <fieldset>
+ <legend>Filter {$type|upper} packages</legend>
+ <input type="hidden" name='type' value="{$type}" />
+ <label for="what">Criteria: </label>
+ <select name="what" id="what">
+ <optgroup label="Pakages">
+ <option value="%fedora"{if $what eq '%fedora'} selected="selected"{/if}>In fedora</option>
+ <option value="%stable"{if $what eq '%stable'} selected="selected"{/if}>All stable</option>
+ <option value="%all"{if $what eq '%all'} selected="selected"{/if}>All</option>
+ </optgroup>
+ <optgroup label="Owner">
+{foreach from=$owners item=o}
+ <option value="{$o->owner}">{$o->owner}</option>
+{foreachelse}
+ <option value="remi">remi</option>
+{/foreach}
+ </optgroup>
+ </select>
+ <input type="submit" value="Filter" />
+ </fieldset>
+ </form>
+ </div><!-- /filter -->
+
+ <table id="list-packages">
+ <thead>
+ <tr>
+ <th>Package</th>
+ <th>Owner(s)</th>
+ <th>Upstream</th>
+
+{foreach from=$repos key=k item=v}
+ <th>{$k}</th>
+{/foreach}
+ </tr>
+ </thead>
+ <tfoot>
+ <tr>
+ <td colspan="{math equation="x+3" x=$repos|@count}">{$packages|@count} packages found</td>
+ </tr>
+ </tfoot>
+ <tbody>
+{foreach from=$packages item=p name=plist}
+ <tr class="{if $smarty.foreach.plist.iteration % 2 eq 0}even{else}odd{/if}">
+ <td>
+ {$p.name}
+ {if $p.channel}
+ <br/><small>channel: {$p.channel}</small>
+ {/if}
+ </td>
+ <td>
+ {foreach from=$p.owners item=owner name=ow_it}
+ <a href="?what={$owner}">{$owner}</a>
+ {if not $smarty.foreach.ow_it.last}
+ <br/>
+ {/if}
+ {/foreach}
+ </td>
+ <td>
+ {if $p.upstream_stable}
+ <strong>{$p.upstream_stable}</strong>
+ {/if}
+ {if $p.upstream_unstable}
+ <br/>{$p.upstream_unstable}
+ {/if}
+ </td>
+ {foreach from=$p.versions key=k item=version}
+ <td{if $version.class} class="{$version.class}"{/if}>
+ {$version.display}
+ </td>
+ {/foreach}
+ </tr>
+{/foreach}
+ </tbody>
+ </table>
+
+ <ul id="legend">
+ <li>Legend: </li>
+ <li><strong>Upstream</strong>: bold if stable. </li>
+ <li><strong>Repo</strong>: bold for latest release.</li>
+ <li class='check'>Lastest released (stable if exists)</li>
+ <li class='info'>Lastest in testing</li>
+ <li class='attn'>Lastest not available</li>
+ </ul>
diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl
index ff79602..704c6b7 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 <http://www.gnu.org/licenses/>.
+*}
+
{if $error}
{if $error eq 'missing_name'}
<h1>Missing package name</h1>