Implement basic transaction detail blocks

Summary:
Some transactions (like editing configuration values, task descriptions, or Conpherence images) can't be simply explained and need an additional larger element to show them fully (like a text diff).

Support change details like this in ApplicationTransactions. Implements the element in Config, so you can see changes.

Test Plan: {F32974}

Reviewers: chad

Reviewed By: chad

CC: aran

Maniphest Tasks: T2213

Differential Revision: https://secure.phabricator.com/D4984
This commit is contained in:
epriestley
2013-02-17 06:37:02 -08:00
parent 5fb56f859c
commit 2231e5200a
13 changed files with 250 additions and 95 deletions

View File

@@ -84,7 +84,7 @@ abstract class PhabricatorDirectoryController extends PhabricatorController {
$show_item = id(new PhabricatorMenuItemView())
->setName(pht('Show More Applications'))
->setHref('#')
->addSigil('home-show-applications')
->addSigil('reveal-content')
->setID($show_item_id);
$hide_item = id(new PhabricatorMenuItemView())
@@ -92,7 +92,7 @@ abstract class PhabricatorDirectoryController extends PhabricatorController {
->setHref('#')
->setStyle('display: none')
->setID($hide_item_id)
->addSigil('home-hide-applications');
->addSigil('reveal-content');
$nav->addMenuItem($show_item);
$tile_ids = array($hide_item_id);
@@ -146,10 +146,18 @@ abstract class PhabricatorDirectoryController extends PhabricatorController {
}
if ($is_hide) {
Javelin::initBehavior('phabricator-home-reveal-tiles', array(
'tileIDs' => $tile_ids,
'showID' => $show_item_id,
));
Javelin::initBehavior('phabricator-reveal-content');
$show_item->setMetadata(
array(
'showIDs' => $tile_ids,
'hideIDs' => array($show_item_id),
));
$hide_item->setMetadata(
array(
'showIDs' => array($show_item_id),
'hideIDs' => $tile_ids,
));
$nav->addMenuItem($hide_item);
}
}