1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-29 00:40:57 +01:00

[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:
Chad Little 2015-05-28 14:04:54 -07:00
parent b0056dd16c
commit fd47a047e5
4 changed files with 9 additions and 49 deletions

View file

@ -90,7 +90,7 @@ return array(
'rsrc/css/application/phortune/phortune-credit-card-form.css' => '8391eb02', 'rsrc/css/application/phortune/phortune-credit-card-form.css' => '8391eb02',
'rsrc/css/application/phortune/phortune.css' => '9149f103', 'rsrc/css/application/phortune/phortune.css' => '9149f103',
'rsrc/css/application/phrequent/phrequent.css' => 'ffc185ad', 'rsrc/css/application/phrequent/phrequent.css' => 'ffc185ad',
'rsrc/css/application/phriction/phriction-document-css.css' => '0d16bc9a', 'rsrc/css/application/phriction/phriction-document-css.css' => 'd1861e06',
'rsrc/css/application/policy/policy-edit.css' => '815c66f7', 'rsrc/css/application/policy/policy-edit.css' => '815c66f7',
'rsrc/css/application/policy/policy-transaction-detail.css' => '82100a43', 'rsrc/css/application/policy/policy-transaction-detail.css' => '82100a43',
'rsrc/css/application/policy/policy.css' => '957ea14c', 'rsrc/css/application/policy/policy.css' => '957ea14c',
@ -754,7 +754,7 @@ return array(
'phortune-credit-card-form-css' => '8391eb02', 'phortune-credit-card-form-css' => '8391eb02',
'phortune-css' => '9149f103', 'phortune-css' => '9149f103',
'phrequent-css' => 'ffc185ad', 'phrequent-css' => 'ffc185ad',
'phriction-document-css' => '0d16bc9a', 'phriction-document-css' => 'd1861e06',
'phui-action-panel-css' => '3ee9afd5', 'phui-action-panel-css' => '3ee9afd5',
'phui-box-css' => 'a5bb366d', 'phui-box-css' => 'a5bb366d',
'phui-button-css' => 'b995182d', 'phui-button-css' => 'b995182d',

View file

@ -206,7 +206,6 @@ final class PhrictionDiffController extends PhrictionController {
$object_box = id(new PHUIObjectBoxView()) $object_box = id(new PHUIObjectBoxView())
->setHeader($header) ->setHeader($header)
->setCollapsed(true)
->appendChild($output); ->appendChild($output);
return $this->buildApplicationPage( return $this->buildApplicationPage(
@ -244,7 +243,7 @@ final class PhrictionDiffController extends PhrictionController {
'a', 'a',
array( array(
'href' => '/phriction/edit/'.$document_id.'/', 'href' => '/phriction/edit/'.$document_id.'/',
'class' => 'button grey', 'class' => 'button simple',
), ),
pht('Edit Current Version')); pht('Edit Current Version'));
} }
@ -254,7 +253,7 @@ final class PhrictionDiffController extends PhrictionController {
'a', 'a',
array( array(
'href' => '/phriction/edit/'.$document_id.'/?revert='.$version, 'href' => '/phriction/edit/'.$document_id.'/?revert='.$version,
'class' => 'button grey', 'class' => 'button simple',
), ),
pht('Revert to Version %s...', $version)); pht('Revert to Version %s...', $version));
} }
@ -268,7 +267,6 @@ final class PhrictionDiffController extends PhrictionController {
$handles = $this->loadViewerHandles($phids); $handles = $this->loadViewerHandles($phids);
$list = new PHUIObjectItemListView(); $list = new PHUIObjectItemListView();
$list->setFlush(true);
$first = true; $first = true;
foreach ($content as $c) { foreach ($content as $c) {
@ -287,10 +285,10 @@ final class PhrictionDiffController extends PhrictionController {
} }
if ($first == true) { if ($first == true) {
$item->setBarColor('green'); $item->setStatusIcon('fa-file green');
$first = false; $first = false;
} else { } else {
$item->setBarColor('red'); $item->setStatusIcon('fa-file red');
} }
$list->addItem($item); $list->addItem($item);

View file

@ -75,7 +75,7 @@ final class PhrictionHistoryController
$color = 'red'; $color = 'red';
break; break;
case PhrictionChangeType::CHANGE_EDIT: case PhrictionChangeType::CHANGE_EDIT:
$color = 'blue'; $color = 'lightbluetext';
break; break;
case PhrictionChangeType::CHANGE_MOVE_HERE: case PhrictionChangeType::CHANGE_MOVE_HERE:
$color = 'yellow'; $color = 'yellow';
@ -93,7 +93,7 @@ final class PhrictionHistoryController
$item = id(new PHUIObjectItemView()) $item = id(new PHUIObjectItemView())
->setHeader(pht('%s by %s', $change_type, $author)) ->setHeader(pht('%s by %s', $change_type, $author))
->setBarColor($color) ->setStatusIcon('fa-file '.$color)
->addAttribute( ->addAttribute(
phutil_tag( phutil_tag(
'a', 'a',

View file

@ -2,47 +2,10 @@
* @provides phriction-document-css * @provides phriction-document-css
*/ */
.phriction-header {
background: #eeeeee;
border-bottom: 1px solid #dddddd;
padding: 1em;
}
.phriction-header a.button {
float: right;
margin: 0em 0em 0em 1%;
}
.phriction-header h1 {
margin: 4px 0;
}
.phriction-breadcrumbs {
font-size: 12px;
color: {$greytext};
}
.phriction-document-crumbs a { .phriction-document-crumbs a {
font-weight: bold; font-weight: bold;
} }
.phriction-children ul {
margin-left: 30px;
padding-bottom: 10px;
list-style: circle;
color: {$lightgreytext};
}
.phriction-children-header {
background: {$lightgreybackground};
padding: 8px 0 8px 16px;
font-weight: bold;
margin-bottom: 15px;
border-bottom: 1px solid {$lightblueborder};
color: {$bluetext};
text-shadow: 0 1px 2px #fff;
}
.phriction-revert-table { .phriction-revert-table {
width: 100%; width: 100%;
} }
@ -52,7 +15,6 @@
width: 50%; width: 50%;
padding: 8px 0; padding: 8px 0;
margin: 0 16px; margin: 0 16px;
background-color: {$lightbluebackground};
border-top: 1px solid {$lightblueborder}; border-top: 1px solid {$lightblueborder};
} }
@ -64,7 +26,7 @@
width: 50%; width: 50%;
color: {$darkgreytext}; color: {$darkgreytext};
padding: 12px; padding: 12px;
background-color: #E5E8EE; background-color: {$lightgreybackground};
} }
.phriction-history-nav-table td.nav-next { .phriction-history-nav-table td.nav-next {