[Debtags-commits] [svn] r2020 - web/trunk/cloud
Erich Schubert
erich at costa.debian.org
Sun Oct 8 18:08:19 UTC 2006
Author: erich
Date: Sun Oct 8 18:08:18 2006
New Revision: 2020
Modified:
web/trunk/cloud/index.html
Log:
refine UI
Modified: web/trunk/cloud/index.html
==============================================================================
--- web/trunk/cloud/index.html (original)
+++ web/trunk/cloud/index.html Sun Oct 8 18:08:18 2006
@@ -8,10 +8,14 @@
<script type="text/javascript" src="dojo.js"></script>
</head>
<body>
- <h2>Current tags:</h2>
- <div id="tags"></div>
- <h2>Additional tags:</h2>
+ <div>Short instructions: please choose tags below to narrow down your
+ selection. Small tags have fewer matching packages, large tags have
+ more matches. When fewer than 25 results remain, they'll be displayed
+ (and no further tag cloud).</div>
+ <h2>Tags to narrow down your search:</h2>
<div id="tagcloud"><em>Data will be loaded via JavaScript, please wait (and make sure you've enabled JavaScript!)</em></div>
+ <h2>Currently selected tags:</h2>
+ <div id="tags"></div>
<h2>Matching packages:</h2>
<div id="packages"></div>
<script type="text/javascript">
@@ -78,6 +82,10 @@
}
function makeCloud(node, tree, facetonly) {
+ if (tree.tags.length == 0) {
+ node.appendChild(document.createTextNode("No further refinement using tag clouds offered, please choose a package below."));
+ return;
+ }
var max = 0;
for (var i=0; i<tree.tags.length; i++)
if (tree.tags[i].count > max)
More information about the Debtags-commits
mailing list