From 66f3bea850ee445427da4ec46e18d4374dd3e953 Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Thu, 3 Feb 2011 23:56:00 +0100 Subject: [PATCH] Status display and some formatting tweaks. --- mkdru-results.tpl.php | 2 +- mkdru.admin.inc | 6 ++++++ mkdru.client.js | 10 ++++------ mkdru.css | 2 +- mkdru.install | 3 +-- mkdru.module | 2 +- mkdru.theme.js | 10 ++++++++++ 7 files changed, 24 insertions(+), 11 deletions(-) diff --git a/mkdru-results.tpl.php b/mkdru-results.tpl.php index 077d565..1dcfc53 100644 --- a/mkdru-results.tpl.php +++ b/mkdru-results.tpl.php @@ -1,6 +1,6 @@
-
+
diff --git a/mkdru.admin.inc b/mkdru.admin.inc index 994cd36..ceaa676 100644 --- a/mkdru.admin.inc +++ b/mkdru.admin.inc @@ -1,3 +1,9 @@ +// $Id$ + +/** + * @file + * Module config. + */ t('Stores settings for mkdru nodes.'), - 'fields' => array ( + 'fields' => array( 'nid' => array( 'description' => t('The primary identifier for a node.'), 'type' => 'int', @@ -82,4 +82,3 @@ function mkdru_uninstall() { // Delete variables variable_del('pz2_js_path'); } -?> diff --git a/mkdru.module b/mkdru.module index eae89e1..cb20ab0 100644 --- a/mkdru.module +++ b/mkdru.module @@ -80,7 +80,7 @@ function mkdru_menu() { /** * Implementation of hook_init() */ -function mkdru_init(){ +function mkdru_init() { // Applies our module specific CSS to all pages. This works best because // all CSS is aggregated and cached so we reduce the number of HTTP // requests and the size is negligible. diff --git a/mkdru.theme.js b/mkdru.theme.js index a3a0c0e..7d92e61 100644 --- a/mkdru.theme.js +++ b/mkdru.theme.js @@ -100,6 +100,16 @@ Drupal.theme.prototype.mkdruPager = function (pages, start, current, total, prev return html; }; +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++ ) { -- 1.7.10.4