appdb/include sidebar_admin.php testData.php
ChangeSet ID: 31186 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2007/06/11 18:51:29 Modified files: include : sidebar_admin.php testData.php Log message: Chris Morgan <cmorgan(a)alum.wpi.edu> Add 'View Test Results' entry to admin sidebar. Enable testData deletion so we can either edit or delete a given test entry. Patch: http://cvs.winehq.org/patch.py?id=31186 Old revision New revision Changes Path 1.43 1.44 +3 -0 appdb/include/sidebar_admin.php 1.58 1.59 +6 -1 appdb/include/testData.php Index: appdb/include/sidebar_admin.php diff -u -p appdb/include/sidebar_admin.php:1.43 appdb/include/sidebar_admin.php:1.44 --- appdb/include/sidebar_admin.php:1.43 11 Jun 2007 23:51:29 -0000 +++ appdb/include/sidebar_admin.php 11 Jun 2007 23:51:29 -0000 @@ -32,6 +32,9 @@ function global_admin_menu() { BASE."admin/adminMaintainers.php"); $g->add("View Bug Links (".getNumberOfQueuedBugLinks()."/".getNumberOfBugLinks().")", BASE."admin/adminBugs.php"); + $g->add("View Test Results (".testData::objectGetEntriesCount(false, false).")", + BASE."objectManager.php?sClass=testData&bIsQueue=false&sTitle=". + "View%20Test%20Results"); $g->add("Users Management", BASE."admin/adminUsers.php"); $g->add("Comments Management", BASE."admin/adminCommentView.php"); $g->add("Screenshots Management", BASE."admin/adminScreenshots.php"); Index: appdb/include/testData.php diff -u -p appdb/include/testData.php:1.58 appdb/include/testData.php:1.59 --- appdb/include/testData.php:1.58 11 Jun 2007 23:51:29 -0000 +++ appdb/include/testData.php 11 Jun 2007 23:51:29 -0000 @@ -936,8 +936,13 @@ class testData{ if($this->canEdit() or $this->sQueued == "rejected") { + $shDeleteLink = "[ <a href=\"".$oObject->makeUrl("delete", + $this->iTestingId). + "\"> delete</a> ]"; + $aCells[] = "[ <a href=\"".$oObject->makeUrl("edit", - $this->iTestingId)."\">$sEditLinkLabel</a> ]"; + $this->iTestingId)."\">$sEditLinkLabel</a> ]". + $shDeleteLink; } echo html_tr($aCells, $this->sTestedRating);
participants (1)
-
WineHQ