Module: appdb Branch: master Commit: dcee2457bf93e62d9ac93eda60460e9d9edb12d8 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=dcee2457bf93e62d9ac93eda6...
Author: Jeremy Newman jnewman@codeweavers.com Date: Fri Nov 18 10:40:44 2016 -0600
cleanup and bootstrapify
---
include/distribution.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/include/distribution.php b/include/distribution.php index 56577d0..a021ce8 100644 --- a/include/distribution.php +++ b/include/distribution.php @@ -677,9 +677,9 @@ class distribution {
if($this->aTestingIds) { - echo '<p><span class="title">Test Results for '.$this->sName.'</span><br>',"\n"; - echo '<table width="100%" border="1">',"\n"; - echo '<thead class="historyHeader">',"\n"; + echo '<h1 class="whq-app-title">Test Results for '.$this->sName.'</h1>',"\n"; + echo '<table class="whq-table whq-table-full">',"\n"; + echo '<thead>',"\n"; echo '<tr>',"\n"; echo '<td>Application Version</td>',"\n"; echo '<td>Submitter</td>',"\n"; @@ -688,7 +688,8 @@ class distribution { echo '<td>Installs?</td>',"\n"; echo '<td>Runs?</td>',"\n"; echo '<td>Rating</td>',"\n"; - echo '</tr></thead>',"\n"; + echo '<td></td>',"\n"; + echo '</tr></thead><tbody>',"\n"; foreach($this->aTestingIds as $iTestingId) { $oTest = new testData($iTestingId); @@ -708,11 +709,11 @@ class distribution { if(!$_SESSION['current']->canViewVersion($oVersion)) continue;
- echo '<tr class='.$bgcolor.'>',"\n"; + echo "<tr>\n"; echo '<td><a href="'.$oVersion->objectMakeUrl().'&iTestingId='.$oTest->iTestingId.'">',"\n"; echo version::fullName($oVersion->iVersionId).'</a></td>',"\n"; - echo '<td>',"\n"; - + echo "<td>\n"; + echo $oSubmitter->objectMakeLink();
echo '</td>',"\n"; @@ -720,15 +721,15 @@ class distribution { echo '<td>'.$oTest->sTestedRelease.' </td>',"\n"; echo '<td>'.$oTest->sInstalls.' </td>',"\n"; echo '<td>'.$oTest->sRuns.' </td>',"\n"; - echo '<td>'.$oTest->sTestedRating.' </td>',"\n"; + echo "<td class="{$bgcolor}">{$oTest->sTestedRating}</td>\n"; if ($_SESSION['current']->hasAppVersionModifyPermission($oVersion)) { - echo '<td><a href="'.$oTest->objectMakeUrl().'">',"\n"; - echo 'Edit</a></td>',"\n"; + echo '<td><a href="'.$oTest->objectMakeUrl().'" class="btn btn-default btn-xs">',"\n"; + echo '<i class="fa fa-pencil-square-o"></i> Edit</a></td>',"\n"; } echo '</tr>',"\n"; } - echo '</table>',"\n"; + echo '</tbody></table>',"\n"; } }