Changeset View
Changeset View
Standalone View
Standalone View
src/view/phui/PHUITimelineEventView.php
| Show First 20 Lines • Show All 600 Lines • ▼ Show 20 Lines | if ($this->getQuoteTargetID()) { | ||||
| $ref = $this->getQuoteRef(); | $ref = $this->getQuoteRef(); | ||||
| if ($anchor) { | if ($anchor) { | ||||
| $ref = $ref.'#'.$anchor; | $ref = $ref.'#'.$anchor; | ||||
| } | } | ||||
| } | } | ||||
| $items[] = id(new PhabricatorActionView()) | $items[] = id(new PhabricatorActionView()) | ||||
| ->setIcon('fa-quote-left') | ->setIcon('fa-quote-left') | ||||
| ->setName(pht('Quote Comment')) | |||||
| ->setHref('#') | ->setHref('#') | ||||
| ->setName(pht('Quote')) | |||||
| ->addSigil('transaction-quote') | ->addSigil('transaction-quote') | ||||
| ->setMetadata( | ->setMetadata( | ||||
| array( | array( | ||||
| 'targetID' => $this->getQuoteTargetID(), | 'targetID' => $this->getQuoteTargetID(), | ||||
| 'uri' => '/transactions/quote/'.$xaction_phid.'/', | 'uri' => '/transactions/quote/'.$xaction_phid.'/', | ||||
| 'ref' => $ref, | 'ref' => $ref, | ||||
| )); | )); | ||||
| } | } | ||||
| if ($this->getIsNormalComment()) { | if ($this->getIsNormalComment()) { | ||||
| $items[] = id(new PhabricatorActionView()) | $items[] = id(new PhabricatorActionView()) | ||||
| ->setIcon('fa-cutlery') | ->setIcon('fa-code') | ||||
chadAuthorUnsubmitted Not Done Inline Actionschad: frowncat | |||||
| ->setHref('/transactions/raw/'.$xaction_phid.'/') | ->setHref('/transactions/raw/'.$xaction_phid.'/') | ||||
| ->setName(pht('View Raw')) | ->setName(pht('View Remarkup')) | ||||
| ->addSigil('transaction-raw') | ->addSigil('transaction-raw') | ||||
| ->setMetadata( | ->setMetadata( | ||||
| array( | array( | ||||
| 'anchor' => $anchor, | 'anchor' => $anchor, | ||||
| )); | )); | ||||
| $content_source = $this->getContentSource(); | $content_source = $this->getContentSource(); | ||||
| $source_email = PhabricatorEmailContentSource::SOURCECONST; | $source_email = PhabricatorEmailContentSource::SOURCECONST; | ||||
| Show All 10 Lines | if ($this->getIsNormalComment()) { | ||||
| 'anchor' => $anchor, | 'anchor' => $anchor, | ||||
| )); | )); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if ($this->getIsRemovable()) { | if ($this->getIsRemovable()) { | ||||
| $items[] = id(new PhabricatorActionView()) | $items[] = id(new PhabricatorActionView()) | ||||
| ->setIcon('fa-times') | ->setType(PhabricatorActionView::TYPE_DIVIDER); | ||||
| $items[] = id(new PhabricatorActionView()) | |||||
| ->setIcon('fa-trash-o') | |||||
| ->setHref('/transactions/remove/'.$xaction_phid.'/') | ->setHref('/transactions/remove/'.$xaction_phid.'/') | ||||
| ->setName(pht('Remove Comment')) | ->setName(pht('Remove Comment')) | ||||
| ->setColor(PhabricatorActionView::RED) | |||||
Done Inline ActionsThis isn't really information, exactly, but it is now conveyed only through the use of color. I like this menu less without icons. epriestley: This isn't really information, exactly, but it is now conveyed only through the use of color. | |||||
Done Inline Actionschad: uuuuuuuuuuugh.
{F2400532} | |||||
| ->addSigil('transaction-remove') | ->addSigil('transaction-remove') | ||||
| ->setMetadata( | ->setMetadata( | ||||
| array( | array( | ||||
| 'anchor' => $anchor, | 'anchor' => $anchor, | ||||
| )); | )); | ||||
| } | } | ||||
| Show All 12 Lines | |||||