Browse Source

css fixes.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
369f82b48e
  1. 4
      framework/yii/debug/assets/main.css
  2. 9
      framework/yii/debug/panels/ConfigPanel.php
  3. 2
      framework/yii/debug/panels/LogPanel.php
  4. 2
      framework/yii/debug/panels/RequestPanel.php

4
framework/yii/debug/assets/main.css

@ -146,3 +146,7 @@ ul.trace {
float: right;
margin-right: -15px;
}
td, th {
overflow: auto;
}

9
framework/yii/debug/panels/ConfigPanel.php

@ -64,7 +64,12 @@ EOD;
return "<h1>Configuration</h1>\n"
. $this->renderData('Application Configuration', $app) . "\n"
. $this->renderData('PHP Configuration', $php) . "\n"
. '<div>' . Html::a('phpinfo()', array('phpinfo'), array('class' => 'btn btn-info')) . "</div>\n";
. $this->getPhpInfo();
}
protected function getPhpInfo()
{
return '<div>' . Html::a('Show phpinfo »', array('phpinfo'), array('class' => 'btn btn-primary')) . "</div>\n";
}
protected function renderData($caption, $values)
@ -74,7 +79,7 @@ EOD;
}
$rows = array();
foreach ($values as $name => $value) {
$rows[] = '<tr><th style="width: 200px;">' . Html::encode($name) . '</th><td><div style="overflow:auto">' . Html::encode($value) . '</div></td></tr>';
$rows[] = '<tr><th style="width:200px;">' . Html::encode($name) . '</th><td style="overflow:auto">' . Html::encode($value) . '</td></tr>';
}
$rows = implode("\n", $rows);
return <<<EOD

2
framework/yii/debug/panels/LogPanel.php

@ -74,7 +74,7 @@ EOD;
$class = '';
}
$level = Logger::getLevelName($level);
$rows[] = "<tr$class><td style=\"width: 100px;\">$time</td><td style=\"width: 100px;\">$level</td><td style=\"width: 250px;\">$category</td><td><div style=\"overflow:auto\">$message</div></td></tr>";
$rows[] = "<tr$class><td style=\"width: 100px;\">$time</td><td style=\"width: 100px;\">$level</td><td style=\"width: 250px;\">$category</td><td><div>$message</div></td></tr>";
}
$rows = implode("\n", $rows);
return <<<EOD

2
framework/yii/debug/panels/RequestPanel.php

@ -151,7 +151,7 @@ EOD;
}
$rows = array();
foreach ($values as $name => $value) {
$rows[] = '<tr><th style="width: 200px;">' . Html::encode($name) . '</th><td><div style="overflow:auto">' . Html::encode(var_export($value, true)) . '</div></td></tr>';
$rows[] = '<tr><th style="width: 200px;">' . Html::encode($name) . '</th><td>' . Html::encode(var_export($value, true)) . '</td></tr>';
}
$rows = implode("\n", $rows);
return <<<EOD

Loading…
Cancel
Save