summaryrefslogtreecommitdiff
path: root/contrib/feed-browser/index.php
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2006-08-25 06:53:25 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2006-08-25 06:53:25 +0000
commit18ec3299e94fd9f8ad3965a077507c91b15cba75 (patch)
tree3c2daff21ed959b333912e11d2ae80fc64b3a225 /contrib/feed-browser/index.php
parent96f4faeac4885f385fa1edb86b19c70a9ef52b3b (diff)
feed-browser: show feed name in download section, sort by feed/arch
Diffstat (limited to 'contrib/feed-browser/index.php')
-rw-r--r--contrib/feed-browser/index.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/feed-browser/index.php b/contrib/feed-browser/index.php
index d04281ac0f..a23a713c36 100644
--- a/contrib/feed-browser/index.php
+++ b/contrib/feed-browser/index.php
@@ -289,7 +289,7 @@ function pkgdetails ($package)
{
$result = db_query("SELECT * FROM packages,feeds
WHERE packages.p_name='$package' AND feeds.f_name = packages.p_feed
- ORDER BY packages.p_version DESC");
+ ORDER BY packages.p_version DESC, feeds.f_name ASC, packages.p_arch DESC ");
// display first result
@@ -381,18 +381,20 @@ function pkgdetails ($package)
}
- $details .= "\n<h2>Available versions and architectures:</h2><ul>\n";
+ $details .= "\n<h2>Available versions and architectures:</h2><ul id='download'>\n";
foreach($result as $packages_a)
{
- $details .= sprintf("\n<li><a href='%s' title='%s %s for %s'>%s %s</a> for %s</li>\n",
+ $details .= sprintf("\n<li><a class='download' href='%s' title='%s %s for %s'>%s %s</a> for %s (%s feed)</li>\n",
$packages_a['feeds.f_uri']."/".$packages_a['packages.p_file'],
$packages_a['packages.p_name'],
$packages_a['packages.p_version'],
$packages_a['packages.p_arch'],
$packages_a['packages.p_name'],
$packages_a['packages.p_version'],
- $packages_a['packages.p_arch']);
+ $packages_a['packages.p_arch'],
+ $packages_a['feeds.f_name']
+ );
}
$details .= "</ul>\n";