-Drupal.theme.prototype.mkdruTerm = function (term, freq, linkClass, id) {
- var html = '<a href="#"';
- if (id)
- html += ' target_id="' + id + '"';
- html += ' class="' + linkClass + '">' + term + '</a><span> (' + freq + ')</span><br/>';
+Drupal.theme.prototype.mkdruCounts = function(first, last, available, total) {
+ return first + Drupal.t(' to ') + last + Drupal.t(' of ') + available
+ + Drupal.t(' available (') + total + Drupal.t(' found)');
+};
+
+Drupal.theme.prototype.mkdruStatus = function(activeClients, clients) {
+ return Drupal.t('Waiting on ') + activeClients + Drupal.t(' out of ')
+ + clients + Drupal.t(' targets');
+};
+
+Drupal.theme.prototype.mkdruFacet = function (terms, facet, max) {
+ var html = "";
+ for (var i = 0; i < terms.length && i < max; i++ ) {
+ var term = terms[i];
+ html += '<a href="'+term.hashQuery+'"';
+ if (term.selected) html += ' class="cross"><strong';
+ html += '>'+terms[i].name;
+ if (term.selected) html += "</strong>";
+ html += '</a><span> (' + terms[i].freq
+ + ')</span><br/>';
+
+ }