summaryrefslogtreecommitdiffstats
path: root/smarty/templates/rpmphp/rpm.tpl
blob: 535bfead7ab738ee9f09b7b77581842be20ad500 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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="?type={$type}&amp;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>