[Redesign] Update Phriction UI
Summary: Ref T8099, convert to StatusIcon, clean up some clowny tables. Remove old CSS. Test Plan: Test history, diff pages. Grep for CSS use. Reviewers: epriestley, btrahan Reviewed By: btrahan Subscribers: Korvin, epriestley Maniphest Tasks: T8099 Differential Revision: https://secure.phabricator.com/D13056
This commit is contained in:
@@ -206,7 +206,6 @@ final class PhrictionDiffController extends PhrictionController {
|
||||
|
||||
$object_box = id(new PHUIObjectBoxView())
|
||||
->setHeader($header)
|
||||
->setCollapsed(true)
|
||||
->appendChild($output);
|
||||
|
||||
return $this->buildApplicationPage(
|
||||
@@ -244,7 +243,7 @@ final class PhrictionDiffController extends PhrictionController {
|
||||
'a',
|
||||
array(
|
||||
'href' => '/phriction/edit/'.$document_id.'/',
|
||||
'class' => 'button grey',
|
||||
'class' => 'button simple',
|
||||
),
|
||||
pht('Edit Current Version'));
|
||||
}
|
||||
@@ -254,7 +253,7 @@ final class PhrictionDiffController extends PhrictionController {
|
||||
'a',
|
||||
array(
|
||||
'href' => '/phriction/edit/'.$document_id.'/?revert='.$version,
|
||||
'class' => 'button grey',
|
||||
'class' => 'button simple',
|
||||
),
|
||||
pht('Revert to Version %s...', $version));
|
||||
}
|
||||
@@ -268,7 +267,6 @@ final class PhrictionDiffController extends PhrictionController {
|
||||
$handles = $this->loadViewerHandles($phids);
|
||||
|
||||
$list = new PHUIObjectItemListView();
|
||||
$list->setFlush(true);
|
||||
|
||||
$first = true;
|
||||
foreach ($content as $c) {
|
||||
@@ -287,10 +285,10 @@ final class PhrictionDiffController extends PhrictionController {
|
||||
}
|
||||
|
||||
if ($first == true) {
|
||||
$item->setBarColor('green');
|
||||
$item->setStatusIcon('fa-file green');
|
||||
$first = false;
|
||||
} else {
|
||||
$item->setBarColor('red');
|
||||
$item->setStatusIcon('fa-file red');
|
||||
}
|
||||
|
||||
$list->addItem($item);
|
||||
|
||||
@@ -75,7 +75,7 @@ final class PhrictionHistoryController
|
||||
$color = 'red';
|
||||
break;
|
||||
case PhrictionChangeType::CHANGE_EDIT:
|
||||
$color = 'blue';
|
||||
$color = 'lightbluetext';
|
||||
break;
|
||||
case PhrictionChangeType::CHANGE_MOVE_HERE:
|
||||
$color = 'yellow';
|
||||
@@ -93,7 +93,7 @@ final class PhrictionHistoryController
|
||||
|
||||
$item = id(new PHUIObjectItemView())
|
||||
->setHeader(pht('%s by %s', $change_type, $author))
|
||||
->setBarColor($color)
|
||||
->setStatusIcon('fa-file '.$color)
|
||||
->addAttribute(
|
||||
phutil_tag(
|
||||
'a',
|
||||
|
||||
Reference in New Issue
Block a user