Adds a new 'setnobackground' panel class, implements in Differential / Diffusion.
Summary: Still working through basic re-design. Adds the ability to re-use panel view without the background. Test Plan: Viewed Diffusion and Differential in Chrome, FF, Safari. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4430
This commit is contained in:
@@ -70,6 +70,7 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setHeader("Recent Commits · {$all}");
|
||||
$panel->appendChild($history_table);
|
||||
$panel->setNoBackground();
|
||||
|
||||
$content[] = $panel;
|
||||
|
||||
@@ -83,6 +84,7 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||
$browse_panel = new AphrontPanelView();
|
||||
$browse_panel->setHeader('Browse Repository');
|
||||
$browse_panel->appendChild($browse_table);
|
||||
$browse_panel->setNoBackground();
|
||||
|
||||
$content[] = $browse_panel;
|
||||
|
||||
@@ -138,6 +140,7 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setHeader('Repository Properties');
|
||||
$panel->appendChild($table);
|
||||
$panel->setNoBackground();
|
||||
|
||||
return $panel;
|
||||
}
|
||||
@@ -172,6 +175,7 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setHeader('Branches');
|
||||
$panel->setNoBackground();
|
||||
|
||||
if ($more_branches) {
|
||||
$panel->setCaption('Showing ' . $limit . ' branches.');
|
||||
|
||||
Reference in New Issue
Block a user