diff --git a/trunk/module/common/tablesorter.html.php b/trunk/module/common/tablesorter.html.php index 9f12d1c772..d93ea149b5 100644 --- a/trunk/module/common/tablesorter.html.php +++ b/trunk/module/common/tablesorter.html.php @@ -1,5 +1,6 @@ + -
- - - - - - - - - - - - - - - - - - - - - - - - - -
testtask->view;?>
testtask->project;?>projectName;?>
testtask->build;?>buildName ? print($task->buildName) : print($task->build);?>
testtask->begin;?>begin;?> -
testtask->end;?>end;?> -
testtask->status;?>testtask->statusList[$task->status];?> -
testtask->name;?>name;?> -
testtask->desc;?>desc);?> -
-
id");?>' target='hiddenwin'> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
testtask->linkedCases;?>
-
id", $lang->testtask->linkCase);?>
-
testcase->id;?>testcase->pri;?>testcase->title;?>testcase->type;?>testtask->assignedTo;?>testtask->lastRun;?>testtask->lastResult;?>testtask->status;?>action;?>
case' /> "; printf('%03d', $run->case);?>pri?>createLink('testcase', 'view', "caseID=$run->case&version=$run->version"), $run->title, '_blank');?> - testcase->typeList[$run->type];?>assignedTo];?>lastRun, 0, 4) != '0000') echo date('y-m-d H:i', strtotime($run->lastRun));?>lastResult) echo $lang->testcase->resultList[$run->lastResult];?>testtask->statusList[$run->status];?> - id", $lang->testtask->runCase, '', 'class="iframe"'); - common::printLink('testtask', 'results', "id=$run->id", $lang->testtask->results, '', 'class="iframe"'); - //common::printLink('bug', 'create', "id=$run->id", $lang->testtask->createBug); - common::printLink('testtask', 'unlinkcase', "id=$run->id", $lang->testtask->unlinkCase, 'hiddenwin'); - ?> -
" . $lang->selectAll;?> - testtask->assign); - ?> -
-
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
testtask->view;?>
testtask->project;?>projectName;?>
testtask->build;?>buildName ? print($task->buildName) : print($task->build);?>
testtask->begin;?>begin;?> +
testtask->end;?>end;?> +
testtask->status;?>testtask->statusList[$task->status];?> +
testtask->name;?>name;?> +
testtask->desc;?>desc);?> +
+
+
+
+
id");?>' target='hiddenwin'> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
testtask->linkedCases;?>
+
id", $lang->testtask->linkCase);?>
+
testcase->id;?>testcase->pri;?>testcase->title;?>testcase->type;?>testtask->assignedTo;?>testtask->lastRun;?>testtask->lastResult;?>testtask->status;?>action;?>
case' /> "; printf('%03d', $run->case);?>pri?>createLink('testcase', 'view', "caseID=$run->case&version=$run->version"), $run->title, '_blank');?> + testcase->typeList[$run->type];?>assignedTo];?>lastRun, 0, 4) != '0000') echo date('y-m-d H:i', strtotime($run->lastRun));?>lastResult) echo $lang->testcase->resultList[$run->lastResult];?>testtask->statusList[$run->status];?> + id", $lang->testtask->runCase, '', 'class="iframe"'); + common::printLink('testtask', 'results', "id=$run->id", $lang->testtask->results, '', 'class="iframe"'); + //common::printLink('bug', 'create', "id=$run->id", $lang->testtask->createBug); + common::printLink('testtask', 'unlinkcase', "id=$run->id", $lang->testtask->unlinkCase, 'hiddenwin'); + ?> +
" . $lang->selectAll;?> + testtask->assign); + ?> +
+
+
+
diff --git a/trunk/www/js/jquery/tablesorter/metadata.js b/trunk/www/js/jquery/tablesorter/metadata.js new file mode 100644 index 0000000000..ad8bfba404 --- /dev/null +++ b/trunk/www/js/jquery/tablesorter/metadata.js @@ -0,0 +1,122 @@ +/* + * Metadata - jQuery plugin for parsing metadata from elements + * + * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * + * Revision: $Id: jquery.metadata.js 4187 2007-12-16 17:15:27Z joern.zaefferer $ + * + */ + +/** + * Sets the type of metadata to use. Metadata is encoded in JSON, and each property + * in the JSON will become a property of the element itself. + * + * There are three supported types of metadata storage: + * + * attr: Inside an attribute. The name parameter indicates *which* attribute. + * + * class: Inside the class attribute, wrapped in curly braces: { } + * + * elem: Inside a child element (e.g. a script tag). The + * name parameter indicates *which* element. + * + * The metadata for an element is loaded the first time the element is accessed via jQuery. + * + * As a result, you can define the metadata type, use $(expr) to load the metadata into the elements + * matched by expr, then redefine the metadata type and run another $(expr) for other elements. + * + * @name $.metadata.setType + * + * @example

This is a p

+ * @before $.metadata.setType("class") + * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label" + * @desc Reads metadata from the class attribute + * + * @example

This is a p

+ * @before $.metadata.setType("attr", "data") + * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label" + * @desc Reads metadata from a "data" attribute + * + * @example

This is a p

+ * @before $.metadata.setType("elem", "script") + * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label" + * @desc Reads metadata from a nested script element + * + * @param String type The encoding type + * @param String name The name of the attribute to be used to get metadata (optional) + * @cat Plugins/Metadata + * @descr Sets the type of encoding to be used when loading metadata for the first time + * @type undefined + * @see metadata() + */ + +(function($) { + +$.extend({ + metadata : { + defaults : { + type: 'class', + name: 'metadata', + cre: /({.*})/, + single: 'metadata' + }, + setType: function( type, name ){ + this.defaults.type = type; + this.defaults.name = name; + }, + get: function( elem, opts ){ + var settings = $.extend({},this.defaults,opts); + // check for empty string in single property + if ( !settings.single.length ) settings.single = 'metadata'; + + var data = $.data(elem, settings.single); + // returned cached data if it already exists + if ( data ) return data; + + data = "{}"; + + if ( settings.type == "class" ) { + var m = settings.cre.exec( elem.className ); + if ( m ) + data = m[1]; + } else if ( settings.type == "elem" ) { + if( !elem.getElementsByTagName ) + return undefined; + var e = elem.getElementsByTagName(settings.name); + if ( e.length ) + data = $.trim(e[0].innerHTML); + } else if ( elem.getAttribute != undefined ) { + var attr = elem.getAttribute( settings.name ); + if ( attr ) + data = attr; + } + + if ( data.indexOf( '{' ) <0 ) + data = "{" + data + "}"; + + data = eval("(" + data + ")"); + + $.data( elem, settings.single, data ); + return data; + } + } +}); + +/** + * Returns the metadata object for the first member of the jQuery object. + * + * @name metadata + * @descr Returns element's metadata object + * @param Object opts An object contianing settings to override the defaults + * @type jQuery + * @cat Plugins/Metadata + */ +$.fn.metadata = function( opts ){ + return $.metadata.get( this[0], opts ); +}; + +})(jQuery); \ No newline at end of file diff --git a/trunk/www/theme/default/style.css b/trunk/www/theme/default/style.css index 60bb8c7fc4..f38f7659db 100644 --- a/trunk/www/theme/default/style.css +++ b/trunk/www/theme/default/style.css @@ -72,8 +72,8 @@ caption {border:1px solid #e4e4e4; background:#efefef; margin:0; padding:5 .nobr {overflow:hidden; text-overflow:ellipsis; white-space:nowrap;} .fixed th, .fixed td {overflow:hidden; text-overflow:ellipsis; white-space:nowrap;} -.odd {background:white} -.even {background:#ECF6FC} +.odd {background:#ECF6FC} +.even {background:white} .hoover {background:#BCD4EC} .clicked {background:yellow}