Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(486)

Unified Diff: gar/v2/lib/web/templates/CatalogList.html

Issue 5730057: Tiers support in pkgdb (Closed)
Patch Set: Work in progress, indexing more metadata from the filesystem. Created 13 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gar/v2/lib/web/static/pkgdb.css ('k') | gar/v2/lib/web/templates/ErrorTagDetail.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gar/v2/lib/web/templates/CatalogList.html
diff --git a/gar/v2/lib/web/templates/CatalogList.html b/gar/v2/lib/web/templates/CatalogList.html
index 021eec6bf41958e08fcf5107aac062f877cc39fa..4df49d05354e214c1047182094d61c270ecf55df 100644
--- a/gar/v2/lib/web/templates/CatalogList.html
+++ b/gar/v2/lib/web/templates/CatalogList.html
@@ -1,19 +1,33 @@
-$def with (keys)
+$def with (tables, tiers)
<html>
<head>
<title>
- List of OpenCSW catalogs
+ OpenCSW package catalogs
</title>
<link rel="stylesheet" type="text/css" href="/pkgdb-static/pkgdb.css" />
</head>
<body>
- <ul>
-$for osrel, arch, catrel in keys:
- <li>
- <a href="$catrel.name-$arch.name-$osrel.short_name/">
- $catrel.name-$arch.name-$osrel.short_name
- </a>
- </li>
+ <h1>OpenCSW package catalogs</h1>
+$for table in tables:
+ <table class="catalog-matrix">
+ <tbody>
+ <tr class="top-row">
+ <th class="catalog-release">$table[0].name</th>
+ $for tier in tiers:
+ <th>$tier.name</th>
+ </tr>
+ $for row in table[1]:
+ <tr>
+ <th>$row[0].short_name</th>
+ $for cell in row[1]:
+ <td class="catalog">
+ $for arch in cell[1]:
+ <!-- catrel, tier, osrel, arch -->
+ <a href="$table[0].name-$cell[0].name-$arch[0].name-$row[0].short_name/">$arch[0].name</a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
</ul>
</body>
</html>
« no previous file with comments | « gar/v2/lib/web/static/pkgdb.css ('k') | gar/v2/lib/web/templates/ErrorTagDetail.html » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b