1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 16:30:59 +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.css' => '9149f103',
'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-transaction-detail.css' => '82100a43',
'rsrc/css/application/policy/policy.css' => '957ea14c',
@ -754,7 +754,7 @@ return array(
'phortune-credit-card-form-css' => '8391eb02',
'phortune-css' => '9149f103',
'phrequent-css' => 'ffc185ad',
'phriction-document-css' => '0d16bc9a',
'phriction-document-css' => 'd1861e06',
'phui-action-panel-css' => '3ee9afd5',
'phui-box-css' => 'a5bb366d',
'phui-button-css' => 'b995182d',

View file

@ -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);

View file

@ -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',

View file

@ -2,47 +2,10 @@
* @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 {
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 {
width: 100%;
}
@ -52,7 +15,6 @@
width: 50%;
padding: 8px 0;
margin: 0 16px;
background-color: {$lightbluebackground};
border-top: 1px solid {$lightblueborder};
}
@ -64,7 +26,7 @@
width: 50%;
color: {$darkgreytext};
padding: 12px;
background-color: #E5E8EE;
background-color: {$lightgreybackground};
}
.phriction-history-nav-table td.nav-next {