@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move PhabricatorTagView to PHUITagView

Summary: For consistency and great justice.

Test Plan: tested audit, uiexamples, action headers

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Differential Revision: https://secure.phabricator.com/D7967

+426 -429
+10 -10
resources/celerity/map.php
··· 7 7 return array( 8 8 'names' => 9 9 array( 10 - 'core.pkg.css' => 'a35f9047', 10 + 'core.pkg.css' => 'cc7229ab', 11 11 'core.pkg.js' => 'c907bd96', 12 12 'darkconsole.pkg.js' => 'ca8671ce', 13 13 'differential.pkg.css' => '827749c1', ··· 117 117 'rsrc/css/core/syntax.css' => '3c18c1cb', 118 118 'rsrc/css/core/z-index.css' => '1bbbd4f1', 119 119 'rsrc/css/diviner/diviner-shared.css' => 'be90f718', 120 - 'rsrc/css/layout/phabricator-action-header-view.css' => 'b6e919a4', 120 + 'rsrc/css/layout/phabricator-action-header-view.css' => 'cc654b91', 121 121 'rsrc/css/layout/phabricator-action-list-view.css' => '81383e25', 122 122 'rsrc/css/layout/phabricator-crumbs-view.css' => '2d9db584', 123 123 'rsrc/css/layout/phabricator-filetree-view.css' => 'a8c86ace', 124 124 'rsrc/css/layout/phabricator-hovercard-view.css' => '67c12b16', 125 125 'rsrc/css/layout/phabricator-side-menu-view.css' => '503699d0', 126 126 'rsrc/css/layout/phabricator-source-code-view.css' => '62a99814', 127 - 'rsrc/css/layout/phabricator-tag-view.css' => '4c983c74', 128 127 'rsrc/css/layout/phabricator-timeline-view.css' => 'f4f846c4', 129 128 'rsrc/css/phui/phui-box.css' => '21da4d8c', 130 129 'rsrc/css/phui/phui-button.css' => '8106a67a', ··· 132 131 'rsrc/css/phui/phui-feed-story.css' => '3a59c2cf', 133 132 'rsrc/css/phui/phui-form-view.css' => '3179980c', 134 133 'rsrc/css/phui/phui-form.css' => 'b78ec020', 135 - 'rsrc/css/phui/phui-header-view.css' => '1a93f1d9', 134 + 'rsrc/css/phui/phui-header-view.css' => '472a6003', 136 135 'rsrc/css/phui/phui-icon.css' => '29e83226', 137 136 'rsrc/css/phui/phui-info-panel.css' => '27ea50a1', 138 137 'rsrc/css/phui/phui-list.css' => '2edb76cf', 139 138 'rsrc/css/phui/phui-object-box.css' => '4f916b80', 140 139 'rsrc/css/phui/phui-object-item-list-view.css' => 'e8192ada', 141 140 'rsrc/css/phui/phui-pinboard-view.css' => '53c5fca0', 142 - 'rsrc/css/phui/phui-property-list-view.css' => '354465ae', 141 + 'rsrc/css/phui/phui-property-list-view.css' => 'dbf53b12', 143 142 'rsrc/css/phui/phui-remarkup-preview.css' => '19ad512b', 144 143 'rsrc/css/phui/phui-spacing.css' => '042804d6', 145 144 'rsrc/css/phui/phui-status.css' => '2f562399', 145 + 'rsrc/css/phui/phui-tag-view.css' => '428d5017', 146 146 'rsrc/css/phui/phui-text.css' => '23e9b4b7', 147 147 'rsrc/css/phui/phui-workboard-view.css' => 'bf70dd2e', 148 148 'rsrc/css/phui/phui-workpanel-view.css' => 'ffb31e99', ··· 665 665 'paste-css' => 'aa1767d1', 666 666 'path-typeahead' => 'f7fc67ec', 667 667 'people-profile-css' => 'd0bababe', 668 - 'phabricator-action-header-view-css' => 'b6e919a4', 668 + 'phabricator-action-header-view-css' => 'cc654b91', 669 669 'phabricator-action-list-view-css' => '81383e25', 670 670 'phabricator-application-launch-view-css' => '6f8453d9', 671 671 'phabricator-busy' => '6453c869', ··· 707 707 'phabricator-slowvote-css' => '266df6a1', 708 708 'phabricator-source-code-view-css' => '62a99814', 709 709 'phabricator-standard-page-view' => '517cdfb1', 710 - 'phabricator-tag-view-css' => '4c983c74', 711 710 'phabricator-textareautils' => 'b3ec3cfc', 712 711 'phabricator-timeline-view-css' => 'f4f846c4', 713 712 'phabricator-tooltip' => '0a81ea29', ··· 738 737 'phui-feed-story-css' => '3a59c2cf', 739 738 'phui-form-css' => 'b78ec020', 740 739 'phui-form-view-css' => '3179980c', 741 - 'phui-header-view-css' => '1a93f1d9', 740 + 'phui-header-view-css' => '472a6003', 742 741 'phui-icon-view-css' => '29e83226', 743 742 'phui-info-panel-css' => '27ea50a1', 744 743 'phui-list-view-css' => '2edb76cf', 745 744 'phui-object-box-css' => '4f916b80', 746 745 'phui-object-item-list-view-css' => 'e8192ada', 747 746 'phui-pinboard-view-css' => '53c5fca0', 748 - 'phui-property-list-view-css' => '354465ae', 747 + 'phui-property-list-view-css' => 'dbf53b12', 749 748 'phui-remarkup-preview-css' => '19ad512b', 750 749 'phui-spacing-css' => '042804d6', 751 750 'phui-status-list-view-css' => '2f562399', 751 + 'phui-tag-view-css' => '428d5017', 752 752 'phui-text-css' => '23e9b4b7', 753 753 'phui-workboard-view-css' => 'bf70dd2e', 754 754 'phui-workpanel-view-css' => 'ffb31e99', ··· 2045 2045 38 => 'phabricator-application-launch-view-css', 2046 2046 39 => 'phabricator-action-list-view-css', 2047 2047 40 => 'phui-property-list-view-css', 2048 - 41 => 'phabricator-tag-view-css', 2048 + 41 => 'phui-tag-view-css', 2049 2049 42 => 'phui-list-view-css', 2050 2050 ), 2051 2051 'core.pkg.js' =>
+1 -1
resources/celerity/packages.php
··· 112 112 'phabricator-application-launch-view-css', 113 113 'phabricator-action-list-view-css', 114 114 'phui-property-list-view-css', 115 - 'phabricator-tag-view-css', 115 + 'phui-tag-view-css', 116 116 'phui-list-view-css', 117 117 ), 118 118 'differential.pkg.css' => array(
+4 -4
src/__phutil_library_map__.php
··· 1001 1001 'PHUIRemarkupPreviewPanel' => 'view/phui/PHUIRemarkupPreviewPanel.php', 1002 1002 'PHUIStatusItemView' => 'view/phui/PHUIStatusItemView.php', 1003 1003 'PHUIStatusListView' => 'view/phui/PHUIStatusListView.php', 1004 + 'PHUITagExample' => 'applications/uiexample/examples/PHUITagExample.php', 1005 + 'PHUITagView' => 'view/phui/PHUITagView.php', 1004 1006 'PHUITextExample' => 'applications/uiexample/examples/PHUITextExample.php', 1005 1007 'PHUITextView' => 'view/phui/PHUITextView.php', 1006 1008 'PHUIWorkboardExample' => 'applications/uiexample/examples/PHUIWorkboardExample.php', ··· 1998 2000 'PhabricatorSymbolNameLinter' => 'infrastructure/lint/hook/PhabricatorSymbolNameLinter.php', 1999 2001 'PhabricatorSyntaxHighlighter' => 'infrastructure/markup/PhabricatorSyntaxHighlighter.php', 2000 2002 'PhabricatorSyntaxHighlightingConfigOptions' => 'applications/config/option/PhabricatorSyntaxHighlightingConfigOptions.php', 2001 - 'PhabricatorTagExample' => 'applications/uiexample/examples/PhabricatorTagExample.php', 2002 - 'PhabricatorTagView' => 'view/layout/PhabricatorTagView.php', 2003 2003 'PhabricatorTaskmasterDaemon' => 'infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php', 2004 2004 'PhabricatorTestCase' => 'infrastructure/testing/PhabricatorTestCase.php', 2005 2005 'PhabricatorTestController' => 'applications/base/controller/__tests__/PhabricatorTestController.php', ··· 3542 3542 'PHUIRemarkupPreviewPanel' => 'AphrontTagView', 3543 3543 'PHUIStatusItemView' => 'AphrontTagView', 3544 3544 'PHUIStatusListView' => 'AphrontTagView', 3545 + 'PHUITagExample' => 'PhabricatorUIExample', 3546 + 'PHUITagView' => 'AphrontView', 3545 3547 'PHUITextExample' => 'PhabricatorUIExample', 3546 3548 'PHUITextView' => 'AphrontTagView', 3547 3549 'PHUIWorkboardExample' => 'PhabricatorUIExample', ··· 4643 4645 'PhabricatorSubscriptionsUIEventListener' => 'PhabricatorEventListener', 4644 4646 'PhabricatorSymbolNameLinter' => 'ArcanistXHPASTLintNamingHook', 4645 4647 'PhabricatorSyntaxHighlightingConfigOptions' => 'PhabricatorApplicationConfigOptions', 4646 - 'PhabricatorTagExample' => 'PhabricatorUIExample', 4647 - 'PhabricatorTagView' => 'AphrontView', 4648 4648 'PhabricatorTaskmasterDaemon' => 'PhabricatorDaemon', 4649 4649 'PhabricatorTestCase' => 'ArcanistPhutilTestCase', 4650 4650 'PhabricatorTestController' => 'PhabricatorController',
+2 -2
src/applications/auth/controller/config/PhabricatorAuthEditController.php
··· 212 212 'existing Phabricator accounts. If you disable this, Phabricator '. 213 213 'accounts will be permanently bound to provider accounts.')); 214 214 215 - $status_tag = id(new PhabricatorTagView()) 216 - ->setType(PhabricatorTagView::TYPE_STATE); 215 + $status_tag = id(new PHUITagView()) 216 + ->setType(PHUITagView::TYPE_STATE); 217 217 if ($is_new) { 218 218 $status_tag 219 219 ->setName(pht('New Provider'))
+7 -7
src/applications/daemon/controller/PhabricatorDaemonLogViewController.php
··· 31 31 $header = id(new PHUIHeaderView()) 32 32 ->setHeader($log->getDaemon()); 33 33 34 - $tag = id(new PhabricatorTagView()) 35 - ->setType(PhabricatorTagView::TYPE_STATE); 34 + $tag = id(new PHUITagView()) 35 + ->setType(PHUITagView::TYPE_STATE); 36 36 37 37 $status = $log->getStatus(); 38 38 switch ($status) { 39 39 case PhabricatorDaemonLog::STATUS_UNKNOWN: 40 - $tag->setBackgroundColor(PhabricatorTagView::COLOR_ORANGE); 40 + $tag->setBackgroundColor(PHUITagView::COLOR_ORANGE); 41 41 $tag->setName(pht('Unknown')); 42 42 break; 43 43 case PhabricatorDaemonLog::STATUS_RUNNING: 44 - $tag->setBackgroundColor(PhabricatorTagView::COLOR_GREEN); 44 + $tag->setBackgroundColor(PHUITagView::COLOR_GREEN); 45 45 $tag->setName(pht('Running')); 46 46 break; 47 47 case PhabricatorDaemonLog::STATUS_DEAD: 48 - $tag->setBackgroundColor(PhabricatorTagView::COLOR_RED); 48 + $tag->setBackgroundColor(PHUITagView::COLOR_RED); 49 49 $tag->setName(pht('Dead')); 50 50 break; 51 51 case PhabricatorDaemonLog::STATUS_WAIT: 52 - $tag->setBackgroundColor(PhabricatorTagView::COLOR_BLUE); 52 + $tag->setBackgroundColor(PHUITagView::COLOR_BLUE); 53 53 $tag->setName(pht('Waiting')); 54 54 break; 55 55 case PhabricatorDaemonLog::STATUS_EXITED: 56 - $tag->setBackgroundColor(PhabricatorTagView::COLOR_GREY); 56 + $tag->setBackgroundColor(PHUITagView::COLOR_GREY); 57 57 $tag->setName(pht('Exited')); 58 58 break; 59 59 }
+2 -2
src/applications/differential/field/specification/DifferentialAsanaRepresentationFieldSpecification.php
··· 65 65 ), 66 66 )); 67 67 68 - return id(new PhabricatorTagView()) 68 + return id(new PHUITagView()) 69 69 ->setID($tag_id) 70 70 ->setName($href) 71 71 ->setHref($href) 72 - ->setType(PhabricatorTagView::TYPE_OBJECT) 72 + ->setType(PHUITagView::TYPE_OBJECT) 73 73 ->setExternal(true); 74 74 } 75 75
+2 -2
src/applications/differential/view/DifferentialRevisionDetailView.php
··· 169 169 $status_name = 170 170 ArcanistDifferentialRevisionStatus::getNameForRevisionStatus($status); 171 171 172 - return id(new PhabricatorTagView()) 173 - ->setType(PhabricatorTagView::TYPE_STATE) 172 + return id(new PHUITagView()) 173 + ->setType(PHUITagView::TYPE_STATE) 174 174 ->setName($status_name); 175 175 } 176 176
+6 -6
src/applications/diffusion/controller/DiffusionCommitController.php
··· 487 487 if ($commit->getAuditStatus()) { 488 488 $status = PhabricatorAuditCommitStatusConstants::getStatusName( 489 489 $commit->getAuditStatus()); 490 - $tag = id(new PhabricatorTagView()) 491 - ->setType(PhabricatorTagView::TYPE_STATE) 490 + $tag = id(new PHUITagView()) 491 + ->setType(PHUITagView::TYPE_STATE) 492 492 ->setName($status); 493 493 494 494 switch ($commit->getAuditStatus()) { 495 495 case PhabricatorAuditCommitStatusConstants::NEEDS_AUDIT: 496 - $tag->setBackgroundColor(PhabricatorTagView::COLOR_ORANGE); 496 + $tag->setBackgroundColor(PHUITagView::COLOR_ORANGE); 497 497 break; 498 498 case PhabricatorAuditCommitStatusConstants::CONCERN_RAISED: 499 - $tag->setBackgroundColor(PhabricatorTagView::COLOR_RED); 499 + $tag->setBackgroundColor(PHUITagView::COLOR_RED); 500 500 break; 501 501 case PhabricatorAuditCommitStatusConstants::PARTIALLY_AUDITED: 502 - $tag->setBackgroundColor(PhabricatorTagView::COLOR_BLUE); 502 + $tag->setBackgroundColor(PHUITagView::COLOR_BLUE); 503 503 break; 504 504 case PhabricatorAuditCommitStatusConstants::FULLY_AUDITED: 505 - $tag->setBackgroundColor(PhabricatorTagView::COLOR_GREEN); 505 + $tag->setBackgroundColor(PHUITagView::COLOR_GREEN); 506 506 break; 507 507 } 508 508
+8 -8
src/applications/diviner/controller/DivinerAtomController.php
··· 72 72 $header = id(new PHUIHeaderView()) 73 73 ->setHeader($this->renderFullSignature($symbol)) 74 74 ->addTag( 75 - id(new PhabricatorTagView()) 76 - ->setType(PhabricatorTagView::TYPE_STATE) 77 - ->setBackgroundColor(PhabricatorTagView::COLOR_BLUE) 75 + id(new PHUITagView()) 76 + ->setType(PHUITagView::TYPE_STATE) 77 + ->setBackgroundColor(PHUITagView::COLOR_BLUE) 78 78 ->setName(DivinerAtom::getAtomTypeNameString($atom->getType()))); 79 79 80 80 $properties = id(new PHUIPropertyListView()); ··· 206 206 $inherited = $spec['inherited']; 207 207 if ($inherited) { 208 208 $method_header->addTag( 209 - id(new PhabricatorTagView()) 210 - ->setType(PhabricatorTagView::TYPE_STATE) 211 - ->setBackgroundColor(PhabricatorTagView::COLOR_GREY) 209 + id(new PHUITagView()) 210 + ->setType(PHUITagView::TYPE_STATE) 211 + ->setBackgroundColor(PHUITagView::COLOR_GREY) 212 212 ->setName(pht('Inherited'))); 213 213 } 214 214 ··· 291 291 } 292 292 293 293 private function renderAtomTag(DivinerLiveSymbol $symbol) { 294 - return id(new PhabricatorTagView()) 295 - ->setType(PhabricatorTagView::TYPE_OBJECT) 294 + return id(new PHUITagView()) 295 + ->setType(PHUITagView::TYPE_OBJECT) 296 296 ->setName($symbol->getName()) 297 297 ->setHref($symbol->getURI()); 298 298 }
+2 -2
src/applications/doorkeeper/controller/DoorkeeperTagsController.php
··· 45 45 46 46 $id = $id_map[$key]; 47 47 48 - $tag = id(new PhabricatorTagView()) 48 + $tag = id(new PHUITagView()) 49 49 ->setID($id) 50 50 ->setName($ref->getFullName()) 51 51 ->setHref($uri) 52 - ->setType(PhabricatorTagView::TYPE_OBJECT) 52 + ->setType(PHUITagView::TYPE_OBJECT) 53 53 ->setExternal(true) 54 54 ->render(); 55 55
+2 -2
src/applications/doorkeeper/remarkup/DoorkeeperRemarkupRule.php
··· 46 46 if ($this->getEngine()->isTextMode()) { 47 47 $view = $spec['href']; 48 48 } else { 49 - $view = id(new PhabricatorTagView()) 49 + $view = id(new PHUITagView()) 50 50 ->setID($tag_id) 51 51 ->setName($spec['href']) 52 52 ->setHref($spec['href']) 53 - ->setType(PhabricatorTagView::TYPE_OBJECT) 53 + ->setType(PHUITagView::TYPE_OBJECT) 54 54 ->setExternal(true); 55 55 } 56 56
+2 -2
src/applications/doorkeeper/view/DoorkeeperTagView.php
··· 31 31 32 32 Javelin::initBehavior('doorkeeper-tag', array('tags' => array($spec))); 33 33 34 - return id(new PhabricatorTagView()) 34 + return id(new PHUITagView()) 35 35 ->setID($tag_id) 36 36 ->setHref($href) 37 37 ->setName($href) 38 - ->setType(PhabricatorTagView::TYPE_OBJECT) 38 + ->setType(PHUITagView::TYPE_OBJECT) 39 39 ->setExternal(true); 40 40 } 41 41
+2 -2
src/applications/files/controller/PhabricatorFileInfoController.php
··· 39 39 40 40 $ttl = $file->getTTL(); 41 41 if ($ttl !== null) { 42 - $ttl_tag = id(new PhabricatorTagView()) 43 - ->setType(PhabricatorTagView::TYPE_OBJECT) 42 + $ttl_tag = id(new PHUITagView()) 43 + ->setType(PHUITagView::TYPE_OBJECT) 44 44 ->setName(pht("Temporary")); 45 45 $header->addTag($ttl_tag); 46 46 }
+3 -3
src/applications/macro/controller/PhabricatorMacroViewController.php
··· 75 75 76 76 if ($macro->getIsDisabled()) { 77 77 $header->addTag( 78 - id(new PhabricatorTagView()) 79 - ->setType(PhabricatorTagView::TYPE_STATE) 78 + id(new PHUITagView()) 79 + ->setType(PHUITagView::TYPE_STATE) 80 80 ->setName(pht('Macro Disabled')) 81 - ->setBackgroundColor(PhabricatorTagView::COLOR_BLACK)); 81 + ->setBackgroundColor(PHUITagView::COLOR_BLACK)); 82 82 } 83 83 84 84 $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business');
+2 -2
src/applications/maniphest/view/ManiphestView.php
··· 9 9 $status = $task->getStatus(); 10 10 $status_name = ManiphestTaskStatus::getTaskStatusFullName($status); 11 11 12 - return id(new PhabricatorTagView()) 13 - ->setType(PhabricatorTagView::TYPE_STATE) 12 + return id(new PHUITagView()) 13 + ->setType(PHUITagView::TYPE_STATE) 14 14 ->setName($status_name); 15 15 } 16 16
+5 -5
src/applications/people/remarkup/PhabricatorRemarkupRuleMention.php
··· 101 101 $user = $actual_users[$username]; 102 102 Javelin::initBehavior('phabricator-hovercards'); 103 103 104 - $tag = id(new PhabricatorTagView()) 105 - ->setType(PhabricatorTagView::TYPE_PERSON) 104 + $tag = id(new PHUITagView()) 105 + ->setType(PHUITagView::TYPE_PERSON) 106 106 ->setPHID($user->getPHID()) 107 107 ->setName('@'.$user->getUserName()) 108 108 ->setHref('/p/'.$user->getUserName().'/'); 109 109 110 110 if (!$user->isUserActivated()) { 111 - $tag->setDotColor(PhabricatorTagView::COLOR_GREY); 111 + $tag->setDotColor(PHUITagView::COLOR_GREY); 112 112 } else { 113 113 $status = idx($user_statuses, $user->getPHID()); 114 114 if ($status) { 115 115 $status = $status->getStatus(); 116 116 if ($status == PhabricatorUserStatus::STATUS_AWAY) { 117 - $tag->setDotColor(PhabricatorTagView::COLOR_RED); 117 + $tag->setDotColor(PHUITagView::COLOR_RED); 118 118 } else if ($status == PhabricatorUserStatus::STATUS_AWAY) { 119 - $tag->setDotColor(PhabricatorTagView::COLOR_ORANGE); 119 + $tag->setDotColor(PHUITagView::COLOR_ORANGE); 120 120 } 121 121 } 122 122 }
+1 -1
src/applications/ponder/constants/PonderQuestionStatus.php
··· 25 25 26 26 public static function getQuestionStatusTagColor($status) { 27 27 $map = array( 28 - self::STATUS_CLOSED => PhabricatorTagView::COLOR_BLACK, 28 + self::STATUS_CLOSED => PHUITagView::COLOR_BLACK, 29 29 ); 30 30 31 31 return idx($map, $status);
+3 -3
src/applications/releeph/controller/branch/ReleephBranchViewController.php
··· 103 103 104 104 if (!$branch->getIsActive()) { 105 105 $header->addTag( 106 - id(new PhabricatorTagView()) 107 - ->setType(PhabricatorTagView::TYPE_STATE) 108 - ->setBackgroundColor(PhabricatorTagView::COLOR_BLACK) 106 + id(new PHUITagView()) 107 + ->setType(PHUITagView::TYPE_STATE) 108 + ->setBackgroundColor(PHUITagView::COLOR_BLACK) 109 109 ->setName(pht('Closed'))); 110 110 } 111 111
+3 -3
src/applications/releeph/controller/project/ReleephProjectViewController.php
··· 160 160 161 161 if (!$project->getIsActive()) { 162 162 $header->addTag( 163 - id(new PhabricatorTagView()) 164 - ->setType(PhabricatorTagView::TYPE_STATE) 165 - ->setBackgroundColor(PhabricatorTagView::COLOR_BLACK) 163 + id(new PHUITagView()) 164 + ->setType(PHUITagView::TYPE_STATE) 165 + ->setBackgroundColor(PHUITagView::COLOR_BLACK) 166 166 ->setName(pht('Deactivated'))); 167 167 } 168 168
+178
src/applications/uiexample/examples/PHUITagExample.php
··· 1 + <?php 2 + 3 + final class PHUITagExample extends PhabricatorUIExample { 4 + 5 + public function getName() { 6 + return 'Tags'; 7 + } 8 + 9 + public function getDescription() { 10 + return hsprintf('Use <tt>PHUITagView</tt> to render various tags.'); 11 + } 12 + 13 + public function renderExample() { 14 + $intro = array(); 15 + 16 + $intro[] = 'Hey, '; 17 + $intro[] = id(new PHUITagView()) 18 + ->setType(PHUITagView::TYPE_PERSON) 19 + ->setName('@alincoln') 20 + ->setHref('#'); 21 + $intro[] = ' how is stuff?'; 22 + $intro[] = hsprintf('<br /><br />'); 23 + 24 + 25 + $intro[] = 'Did you hear that '; 26 + $intro[] = id(new PHUITagView()) 27 + ->setType(PHUITagView::TYPE_PERSON) 28 + ->setName('@gwashington') 29 + ->setDotColor(PHUITagView::COLOR_RED) 30 + ->setHref('#'); 31 + $intro[] = ' is away, '; 32 + $intro[] = id(new PHUITagView()) 33 + ->setType(PHUITagView::TYPE_PERSON) 34 + ->setName('@tjefferson') 35 + ->setDotColor(PHUITagView::COLOR_ORANGE) 36 + ->setHref('#'); 37 + $intro[] = ' has some errands, and '; 38 + $intro[] = id(new PHUITagView()) 39 + ->setType(PHUITagView::TYPE_PERSON) 40 + ->setName('@rreagan') 41 + ->setDotColor(PHUITagView::COLOR_GREY) 42 + ->setHref('#'); 43 + $intro[] = ' is gone?'; 44 + $intro[] = hsprintf('<br /><br />'); 45 + 46 + $intro[] = 'Take a look at '; 47 + $intro[] = id(new PHUITagView()) 48 + ->setType(PHUITagView::TYPE_OBJECT) 49 + ->setName('D123') 50 + ->setHref('#'); 51 + $intro[] = ' when you get a chance.'; 52 + $intro[] = hsprintf('<br /><br />'); 53 + 54 + $intro[] = 'Hmm? '; 55 + $intro[] = id(new PHUITagView()) 56 + ->setType(PHUITagView::TYPE_OBJECT) 57 + ->setName('D123') 58 + ->setClosed(true) 59 + ->setHref('#'); 60 + $intro[] = ' is '; 61 + $intro[] = id(new PHUITagView()) 62 + ->setType(PHUITagView::TYPE_STATE) 63 + ->setBackgroundColor(PHUITagView::COLOR_BLACK) 64 + ->setName('Abandoned'); 65 + $intro[] = '.'; 66 + $intro[] = hsprintf('<br /><br />'); 67 + 68 + $intro[] = 'I hope someone is going to '; 69 + $intro[] = id(new PHUITagView()) 70 + ->setType(PHUITagView::TYPE_OBJECT) 71 + ->setName('T123: Water The Dog') 72 + ->setBarColor(PHUITagView::COLOR_RED) 73 + ->setHref('#'); 74 + $intro[] = ' -- that task is '; 75 + $intro[] = id(new PHUITagView()) 76 + ->setType(PHUITagView::TYPE_STATE) 77 + ->setBackgroundColor(PHUITagView::COLOR_RED) 78 + ->setName('High Priority'); 79 + $intro[] = '!'; 80 + 81 + $intro = id(new PHUIBoxView()) 82 + ->appendChild($intro) 83 + ->addPadding(PHUI::PADDING_LARGE); 84 + 85 + $header1 = id(new PHUIHeaderView()) 86 + ->setHeader('Colors'); 87 + 88 + $colors = PHUITagView::getColors(); 89 + $tags = array(); 90 + foreach ($colors as $color) { 91 + $tags[] = id(new PHUITagView()) 92 + ->setType(PHUITagView::TYPE_STATE) 93 + ->setBackgroundColor($color) 94 + ->setName(ucwords($color)); 95 + $tags[] = hsprintf('<br /><br />'); 96 + } 97 + 98 + $content1 = id(new PHUIBoxView()) 99 + ->appendChild($tags) 100 + ->addPadding(PHUI::PADDING_LARGE); 101 + 102 + $tags = array(); 103 + $tags[] = id(new PHUITagView()) 104 + ->setType(PHUITagView::TYPE_STATE) 105 + ->setBackgroundColor(PHUITagView::COLOR_GREEN) 106 + ->setDotColor(PHUITagView::COLOR_RED) 107 + ->setName('Christmas'); 108 + $tags[] = hsprintf('<br /><br />'); 109 + $tags[] = id(new PHUITagView()) 110 + ->setType(PHUITagView::TYPE_OBJECT) 111 + ->setBackgroundColor(PHUITagView::COLOR_ORANGE) 112 + ->setDotColor(PHUITagView::COLOR_BLACK) 113 + ->setName('Halloween'); 114 + $tags[] = hsprintf('<br /><br />'); 115 + $tags[] = id(new PHUITagView()) 116 + ->setType(PHUITagView::TYPE_STATE) 117 + ->setBackgroundColor(PHUITagView::COLOR_INDIGO) 118 + ->setDotColor(PHUITagView::COLOR_YELLOW) 119 + ->setName('Easter'); 120 + 121 + $content2 = id(new PHUIBoxView()) 122 + ->appendChild($tags) 123 + ->addPadding(PHUI::PADDING_LARGE); 124 + 125 + $icons = array(); 126 + $icons[] = id(new PHUITagView()) 127 + ->setType(PHUITagView::TYPE_STATE) 128 + ->setBackgroundColor(PHUITagView::COLOR_GREEN) 129 + ->setIcon('check-white') 130 + ->setName('Passed'); 131 + $icons[] = hsprintf('<br /><br />'); 132 + $icons[] = id(new PHUITagView()) 133 + ->setType(PHUITagView::TYPE_STATE) 134 + ->setBackgroundColor(PHUITagView::COLOR_RED) 135 + ->setIcon('delete-white') 136 + ->setName('Failed'); 137 + $icons[] = hsprintf('<br /><br />'); 138 + $icons[] = id(new PHUITagView()) 139 + ->setType(PHUITagView::TYPE_STATE) 140 + ->setBackgroundColor(PHUITagView::COLOR_BLUE) 141 + ->setIcon('refresh-white') 142 + ->setName('Running'); 143 + $icons[] = hsprintf('<br /><br />'); 144 + $icons[] = id(new PHUITagView()) 145 + ->setType(PHUITagView::TYPE_STATE) 146 + ->setBackgroundColor(PHUITagView::COLOR_GREY) 147 + ->setIcon('pause-white') 148 + ->setName('Paused'); 149 + $icons[] = hsprintf('<br /><br />'); 150 + $icons[] = id(new PHUITagView()) 151 + ->setType(PHUITagView::TYPE_STATE) 152 + ->setBackgroundColor(PHUITagView::COLOR_BLACK) 153 + ->setIcon('stop-white') 154 + ->setName('Stopped'); 155 + 156 + $content3 = id(new PHUIBoxView()) 157 + ->appendChild($icons) 158 + ->addPadding(PHUI::PADDING_LARGE); 159 + 160 + $box = id(new PHUIObjectBoxView()) 161 + ->setHeaderText('Inline') 162 + ->appendChild($intro); 163 + 164 + $box1 = id(new PHUIObjectBoxView()) 165 + ->setHeaderText('Colors') 166 + ->appendChild($content1); 167 + 168 + $box2 = id(new PHUIObjectBoxView()) 169 + ->setHeaderText('Holidays') 170 + ->appendChild($content2); 171 + 172 + $box3 = id(new PHUIObjectBoxView()) 173 + ->setHeaderText('Icons') 174 + ->appendChild($content3); 175 + 176 + return array($box, $box1, $box2, $box3); 177 + } 178 + }
+6 -6
src/applications/uiexample/examples/PhabricatorActionHeaderExample.php
··· 189 189 $title4 = id(new PHUIHeaderView()) 190 190 ->setHeader(pht('With Tags')); 191 191 192 - $tag1 = id(new PhabricatorTagView()) 193 - ->setType(PhabricatorTagView::TYPE_STATE) 194 - ->setBackgroundColor(PhabricatorTagView::COLOR_RED) 192 + $tag1 = id(new PHUITagView()) 193 + ->setType(PHUITagView::TYPE_STATE) 194 + ->setBackgroundColor(PHUITagView::COLOR_RED) 195 195 ->setName('Open'); 196 196 197 - $tag2 = id(new PhabricatorTagView()) 198 - ->setType(PhabricatorTagView::TYPE_STATE) 199 - ->setBackgroundColor(PhabricatorTagView::COLOR_BLUE) 197 + $tag2 = id(new PHUITagView()) 198 + ->setType(PHUITagView::TYPE_STATE) 199 + ->setBackgroundColor(PHUITagView::COLOR_BLUE) 200 200 ->setName('Closed'); 201 201 202 202 $action1 = new PHUIIconView();
+2 -2
src/applications/uiexample/examples/PhabricatorHovercardExample.php
··· 36 36 ManiphestPHIDTypeTask::TYPECONST, 37 37 "Improve Mobile Experience for Phabricator"); 38 38 39 - $tag = id(new PhabricatorTagView()) 40 - ->setType(PhabricatorTagView::TYPE_STATE) 39 + $tag = id(new PHUITagView()) 40 + ->setType(PHUITagView::TYPE_STATE) 41 41 ->setName('Closed, Resolved'); 42 42 $panel = $this->createPanel("Maniphest Hovercard"); 43 43 $panel->appendChild(id(new PhabricatorHovercardView())
-181
src/applications/uiexample/examples/PhabricatorTagExample.php
··· 1 - <?php 2 - 3 - final class PhabricatorTagExample extends PhabricatorUIExample { 4 - 5 - public function getName() { 6 - return 'Tags'; 7 - } 8 - 9 - public function getDescription() { 10 - return hsprintf('Use <tt>PhabricatorTagView</tt> to render various tags.'); 11 - } 12 - 13 - public function renderExample() { 14 - $intro = array(); 15 - 16 - $intro[] = 'Hey, '; 17 - $intro[] = id(new PhabricatorTagView()) 18 - ->setType(PhabricatorTagView::TYPE_PERSON) 19 - ->setName('@alincoln') 20 - ->setHref('#'); 21 - $intro[] = ' how is stuff?'; 22 - $intro[] = hsprintf('<br /><br />'); 23 - 24 - 25 - $intro[] = 'Did you hear that '; 26 - $intro[] = id(new PhabricatorTagView()) 27 - ->setType(PhabricatorTagView::TYPE_PERSON) 28 - ->setName('@gwashington') 29 - ->setDotColor(PhabricatorTagView::COLOR_RED) 30 - ->setHref('#'); 31 - $intro[] = ' is away, '; 32 - $intro[] = id(new PhabricatorTagView()) 33 - ->setType(PhabricatorTagView::TYPE_PERSON) 34 - ->setName('@tjefferson') 35 - ->setDotColor(PhabricatorTagView::COLOR_ORANGE) 36 - ->setHref('#'); 37 - $intro[] = ' has some errands, and '; 38 - $intro[] = id(new PhabricatorTagView()) 39 - ->setType(PhabricatorTagView::TYPE_PERSON) 40 - ->setName('@rreagan') 41 - ->setDotColor(PhabricatorTagView::COLOR_GREY) 42 - ->setHref('#'); 43 - $intro[] = ' is gone?'; 44 - $intro[] = hsprintf('<br /><br />'); 45 - 46 - $intro[] = 'Take a look at '; 47 - $intro[] = id(new PhabricatorTagView()) 48 - ->setType(PhabricatorTagView::TYPE_OBJECT) 49 - ->setName('D123') 50 - ->setHref('#'); 51 - $intro[] = ' when you get a chance.'; 52 - $intro[] = hsprintf('<br /><br />'); 53 - 54 - $intro[] = 'Hmm? '; 55 - $intro[] = id(new PhabricatorTagView()) 56 - ->setType(PhabricatorTagView::TYPE_OBJECT) 57 - ->setName('D123') 58 - ->setClosed(true) 59 - ->setHref('#'); 60 - $intro[] = ' is '; 61 - $intro[] = id(new PhabricatorTagView()) 62 - ->setType(PhabricatorTagView::TYPE_STATE) 63 - ->setBackgroundColor(PhabricatorTagView::COLOR_BLACK) 64 - ->setName('Abandoned'); 65 - $intro[] = '.'; 66 - $intro[] = hsprintf('<br /><br />'); 67 - 68 - $intro[] = 'I hope someone is going to '; 69 - $intro[] = id(new PhabricatorTagView()) 70 - ->setType(PhabricatorTagView::TYPE_OBJECT) 71 - ->setName('T123: Water The Dog') 72 - ->setBarColor(PhabricatorTagView::COLOR_RED) 73 - ->setHref('#'); 74 - $intro[] = ' -- that task is '; 75 - $intro[] = id(new PhabricatorTagView()) 76 - ->setType(PhabricatorTagView::TYPE_STATE) 77 - ->setBackgroundColor(PhabricatorTagView::COLOR_RED) 78 - ->setName('High Priority'); 79 - $intro[] = '!'; 80 - 81 - $intro = id(new PHUIBoxView()) 82 - ->appendChild($intro) 83 - ->addPadding(PHUI::PADDING_LARGE); 84 - 85 - $header1 = id(new PHUIHeaderView()) 86 - ->setHeader('Colors'); 87 - 88 - $colors = PhabricatorTagView::getColors(); 89 - $tags = array(); 90 - foreach ($colors as $color) { 91 - $tags[] = id(new PhabricatorTagView()) 92 - ->setType(PhabricatorTagView::TYPE_STATE) 93 - ->setBackgroundColor($color) 94 - ->setName(ucwords($color)); 95 - $tags[] = hsprintf('<br /><br />'); 96 - } 97 - 98 - $content1 = id(new PHUIBoxView()) 99 - ->appendChild($tags) 100 - ->addPadding(PHUI::PADDING_LARGE); 101 - 102 - $tags = array(); 103 - $tags[] = id(new PhabricatorTagView()) 104 - ->setType(PhabricatorTagView::TYPE_STATE) 105 - ->setBackgroundColor(PhabricatorTagView::COLOR_GREEN) 106 - ->setDotColor(PhabricatorTagView::COLOR_RED) 107 - ->setBarColor(PhabricatorTagView::COLOR_RED) 108 - ->setName('Christmas'); 109 - $tags[] = hsprintf('<br /><br />'); 110 - $tags[] = id(new PhabricatorTagView()) 111 - ->setType(PhabricatorTagView::TYPE_OBJECT) 112 - ->setBackgroundColor(PhabricatorTagView::COLOR_ORANGE) 113 - ->setDotColor(PhabricatorTagView::COLOR_BLACK) 114 - ->setBarColor(PhabricatorTagView::COLOR_BLACK) 115 - ->setName('Halloween'); 116 - $tags[] = hsprintf('<br /><br />'); 117 - $tags[] = id(new PhabricatorTagView()) 118 - ->setType(PhabricatorTagView::TYPE_STATE) 119 - ->setBackgroundColor(PhabricatorTagView::COLOR_INDIGO) 120 - ->setDotColor(PhabricatorTagView::COLOR_YELLOW) 121 - ->setBarColor(PhabricatorTagView::COLOR_BLUE) 122 - ->setName('Easter'); 123 - 124 - $content2 = id(new PHUIBoxView()) 125 - ->appendChild($tags) 126 - ->addPadding(PHUI::PADDING_LARGE); 127 - 128 - $icons = array(); 129 - $icons[] = id(new PhabricatorTagView()) 130 - ->setType(PhabricatorTagView::TYPE_STATE) 131 - ->setBackgroundColor(PhabricatorTagView::COLOR_GREEN) 132 - ->setIcon('check-white') 133 - ->setName('Passed'); 134 - $icons[] = hsprintf('<br /><br />'); 135 - $icons[] = id(new PhabricatorTagView()) 136 - ->setType(PhabricatorTagView::TYPE_STATE) 137 - ->setBackgroundColor(PhabricatorTagView::COLOR_RED) 138 - ->setIcon('delete-white') 139 - ->setName('Failed'); 140 - $icons[] = hsprintf('<br /><br />'); 141 - $icons[] = id(new PhabricatorTagView()) 142 - ->setType(PhabricatorTagView::TYPE_STATE) 143 - ->setBackgroundColor(PhabricatorTagView::COLOR_BLUE) 144 - ->setIcon('refresh-white') 145 - ->setName('Running'); 146 - $icons[] = hsprintf('<br /><br />'); 147 - $icons[] = id(new PhabricatorTagView()) 148 - ->setType(PhabricatorTagView::TYPE_STATE) 149 - ->setBackgroundColor(PhabricatorTagView::COLOR_GREY) 150 - ->setIcon('pause-white') 151 - ->setName('Paused'); 152 - $icons[] = hsprintf('<br /><br />'); 153 - $icons[] = id(new PhabricatorTagView()) 154 - ->setType(PhabricatorTagView::TYPE_STATE) 155 - ->setBackgroundColor(PhabricatorTagView::COLOR_BLACK) 156 - ->setIcon('stop-white') 157 - ->setName('Stopped'); 158 - 159 - $content3 = id(new PHUIBoxView()) 160 - ->appendChild($icons) 161 - ->addPadding(PHUI::PADDING_LARGE); 162 - 163 - $box = id(new PHUIObjectBoxView()) 164 - ->setHeaderText('Inline') 165 - ->appendChild($intro); 166 - 167 - $box1 = id(new PHUIObjectBoxView()) 168 - ->setHeaderText('Colors') 169 - ->appendChild($content1); 170 - 171 - $box2 = id(new PHUIObjectBoxView()) 172 - ->setHeaderText('Holidays') 173 - ->appendChild($content2); 174 - 175 - $box3 = id(new PHUIObjectBoxView()) 176 - ->setHeaderText('Icons') 177 - ->appendChild($content3); 178 - 179 - return array($box, $box1, $box2, $box3); 180 - } 181 - }
+2 -2
src/infrastructure/markup/rule/PhabricatorRemarkupRuleObject.php
··· 85 85 } 86 86 87 87 protected function renderHovertag($name, $href, array $attr = array()) { 88 - return id(new PhabricatorTagView()) 88 + return id(new PHUITagView()) 89 89 ->setName($name) 90 90 ->setHref($href) 91 - ->setType(PhabricatorTagView::TYPE_OBJECT) 91 + ->setType(PHUITagView::TYPE_OBJECT) 92 92 ->setPHID(idx($attr, 'phid')) 93 93 ->setClosed(idx($attr, 'closed')) 94 94 ->render();
+1 -1
src/view/layout/PhabricatorActionHeaderView.php
··· 32 32 return $this; 33 33 } 34 34 35 - public function setTag(PhabricatorTagView $tag) { 35 + public function setTag(PHUITagView $tag) { 36 36 $this->actions[] = $tag; 37 37 return $this; 38 38 }
+13 -13
src/view/layout/PhabricatorTagView.php src/view/phui/PHUITagView.php
··· 1 1 <?php 2 2 3 - final class PhabricatorTagView extends AphrontView { 3 + final class PHUITagView extends AphrontView { 4 4 5 5 const TYPE_PERSON = 'person'; 6 6 const TYPE_OBJECT = 'object'; ··· 102 102 throw new Exception(pht("You must call setType() before render()!")); 103 103 } 104 104 105 - require_celerity_resource('phabricator-tag-view-css'); 105 + require_celerity_resource('phui-tag-view-css'); 106 106 $classes = array( 107 - 'phabricator-tag-view', 108 - 'phabricator-tag-type-'.$this->type, 107 + 'phui-tag-view', 108 + 'phui-tag-type-'.$this->type, 109 109 ); 110 110 111 111 if ($this->closed) { 112 - $classes[] = 'phabricator-tag-state-closed'; 112 + $classes[] = 'phui-tag-state-closed'; 113 113 } 114 114 115 115 $color = null; 116 116 if ($this->backgroundColor) { 117 - $color = 'phabricator-tag-color-'.$this->backgroundColor; 117 + $color = 'phui-tag-color-'.$this->backgroundColor; 118 118 } 119 119 120 120 if ($this->dotColor) { 121 - $dotcolor = 'phabricator-tag-color-'.$this->dotColor; 121 + $dotcolor = 'phui-tag-color-'.$this->dotColor; 122 122 $dot = phutil_tag( 123 123 'span', 124 124 array( 125 - 'class' => 'phabricator-tag-dot '.$dotcolor, 125 + 'class' => 'phui-tag-dot '.$dotcolor, 126 126 ), 127 127 ''); 128 128 } else { ··· 131 131 132 132 if ($this->icon) { 133 133 $icon = $this->icon; 134 - $classes[] = 'phabricator-tag-icon-view'; 134 + $classes[] = 'phui-tag-icon-view'; 135 135 } else { 136 136 $icon = null; 137 137 } ··· 139 139 $content = phutil_tag( 140 140 'span', 141 141 array( 142 - 'class' => 'phabricator-tag-core '.$color, 142 + 'class' => 'phui-tag-core '.$color, 143 143 ), 144 144 array($dot, $this->name)); 145 145 146 146 if ($this->barColor) { 147 - $barcolor = 'phabricator-tag-color-'.$this->barColor; 147 + $barcolor = 'phui-tag-color-'.$this->barColor; 148 148 $bar = phutil_tag( 149 149 'span', 150 150 array( 151 - 'class' => 'phabricator-tag-bar '.$barcolor, 151 + 'class' => 'phui-tag-bar '.$barcolor, 152 152 ), 153 153 ''); 154 - $classes[] = 'phabricator-tag-view-has-bar'; 154 + $classes[] = 'phui-tag-view-has-bar'; 155 155 } else { 156 156 $bar = null; 157 157 }
+1 -1
src/view/phui/PHUIHeaderView.php
··· 31 31 return $this; 32 32 } 33 33 34 - public function addTag(PhabricatorTagView $tag) { 34 + public function addTag(PHUITagView $tag) { 35 35 $this->tags[] = $tag; 36 36 return $this; 37 37 }
+1 -1
src/view/widget/hovercard/PhabricatorHovercardView.php
··· 51 51 return $this; 52 52 } 53 53 54 - public function addTag(PhabricatorTagView $tag) { 54 + public function addTag(PHUITagView $tag) { 55 55 $this->tags[] = $tag; 56 56 return $this; 57 57 }
+2 -2
webroot/rsrc/css/layout/phabricator-action-header-view.css
··· 32 32 display: inline-block; 33 33 } 34 34 35 - .phabricator-action-header-icon-item .phabricator-tag-view { 35 + .phabricator-action-header-icon-item .phui-tag-view { 36 36 margin: 4px 2px 0; 37 37 } 38 38 ··· 52 52 text-shadow: 0 -1px 1px rgba(0,0,0,.7); 53 53 } 54 54 55 - .phabricator-action-header-icon-list .phabricator-tag-view { 55 + .phabricator-action-header-icon-list .phui-tag-view { 56 56 font-weight: normal; 57 57 } 58 58
-151
webroot/rsrc/css/layout/phabricator-tag-view.css
··· 1 - /** 2 - * @provides phabricator-tag-view-css 3 - */ 4 - 5 - .phabricator-tag-view { 6 - font-weight: bold; 7 - text-decoration: none; 8 - display: inline-block; 9 - position: relative; 10 - } 11 - 12 - a.phabricator-tag-view:hover { 13 - text-decoration: none; 14 - } 15 - 16 - .phabricator-tag-state-closed .phabricator-tag-core { 17 - text-decoration: line-through; 18 - } 19 - 20 - .phabricator-tag-core { 21 - color: inherit; 22 - border: 1px solid transparent; 23 - border-radius: 3px; 24 - padding: 0 4px; 25 - } 26 - 27 - .phabricator-tag-type-state .phabricator-tag-core { 28 - padding: 0 6px; 29 - } 30 - 31 - .phabricator-tag-view .phui-icon-view { 32 - position: absolute; 33 - display: inline-block; 34 - top: 1px; 35 - left: 5px; 36 - } 37 - 38 - .phabricator-tag-icon-view .phabricator-tag-core { 39 - padding-left: 22px; 40 - } 41 - 42 - .phabricator-tag-view-has-bar .phabricator-tag-core { 43 - border-radius: 0 3px 3px 0; 44 - border-width: 1px 1px 1px 0; 45 - } 46 - 47 - .phabricator-tag-dot { 48 - position: relative; 49 - display: inline-block; 50 - width: 6px; 51 - height: 6px; 52 - margin-right: 3px; 53 - top: -1px; 54 - border-radius: 6px; 55 - border: 1px solid transparent; 56 - box-shadow: 0 0 2px rgba(255, 255, 255, 0.8); 57 - } 58 - 59 - .phabricator-tag-type-state { 60 - color: #ffffff; 61 - text-shadow: rgba(100, 100, 100, 0.40) 0px -1px 1px; 62 - } 63 - 64 - .phabricator-tag-type-object, 65 - a.phabricator-tag-type-object, 66 - a.phabricator-tag-type-object:link { 67 - color: #000000; 68 - } 69 - 70 - .phabricator-tag-type-person { 71 - white-space: nowrap; 72 - color: #19558d; 73 - } 74 - 75 - .phabricator-tag-color-red { 76 - background-color: {$red}; 77 - border-color: {$red}; 78 - } 79 - 80 - .phabricator-tag-color-orange { 81 - background-color: {$orange}; 82 - border-color: {$orange}; 83 - } 84 - 85 - .phabricator-tag-color-yellow { 86 - background-color: {$yellow}; 87 - border-color: {$yellow}; 88 - } 89 - 90 - .phabricator-tag-color-blue { 91 - background-color: {$blue}; 92 - border-color: {$blue}; 93 - } 94 - 95 - .phabricator-tag-color-indigo { 96 - background-color: {$indigo}; 97 - border-color: {$indigo}; 98 - } 99 - 100 - .phabricator-tag-color-green { 101 - background-color: {$green}; 102 - border-color: {$green}; 103 - } 104 - 105 - .phabricator-tag-color-violet { 106 - background-color: {$violet}; 107 - border-color: {$violet}; 108 - } 109 - 110 - .phabricator-tag-color-black { 111 - background-color: #333333; 112 - border-color: #333333; 113 - } 114 - 115 - .phabricator-tag-color-grey { 116 - background-color: {$lightgreytext}; 117 - border-color: {$lightgreytext}; 118 - } 119 - 120 - .phabricator-tag-color-white { 121 - background-color: #f7f7f7; 122 - border-color: #f7f7f7; 123 - } 124 - 125 - .phabricator-tag-color-object { 126 - background-color: #e7e7e7; 127 - border-color: #e7e7e7; 128 - } 129 - 130 - .phabricator-tag-color-person { 131 - background-color: #f1f7ff; 132 - border-color: #f1f7ff; 133 - } 134 - 135 - a.phabricator-tag-view:hover 136 - .phabricator-tag-core.phabricator-tag-color-person { 137 - border-color: #d9ebfd; 138 - } 139 - 140 - a.phabricator-tag-view:hover 141 - .phabricator-tag-core.phabricator-tag-color-object { 142 - border-color: #d7d7d7; 143 - } 144 - 145 - .phabricator-tag-bar { 146 - padding-left: 4px; 147 - border-width: 1px; 148 - border-style: solid; 149 - border-right-color: rgba(0, 0, 0, 0.33); 150 - border-radius: 2px 0 0 2px; 151 - }
+1 -1
webroot/rsrc/css/phui/phui-header-view.css
··· 76 76 font-size: 13px; 77 77 } 78 78 79 - .phui-header-tags .phabricator-tag-view { 79 + .phui-header-tags .phui-tag-view { 80 80 margin-left: 4px; 81 81 } 82 82
+1 -1
webroot/rsrc/css/phui/phui-property-list-view.css
··· 137 137 138 138 /* When tags appear in property lists, give them a little more vertical 139 139 spacing. */ 140 - .phui-property-list-view .phabricator-tag-view { 140 + .phui-property-list-view .phui-tag-view { 141 141 margin: 2px 0; 142 142 } 143 143
+151
webroot/rsrc/css/phui/phui-tag-view.css
··· 1 + /** 2 + * @provides phui-tag-view-css 3 + */ 4 + 5 + .phui-tag-view { 6 + font-weight: bold; 7 + text-decoration: none; 8 + display: inline-block; 9 + position: relative; 10 + } 11 + 12 + a.phui-tag-view:hover { 13 + text-decoration: none; 14 + } 15 + 16 + .phui-tag-state-closed .phui-tag-core { 17 + text-decoration: line-through; 18 + } 19 + 20 + .phui-tag-core { 21 + color: inherit; 22 + border: 1px solid transparent; 23 + border-radius: 3px; 24 + padding: 0 4px; 25 + } 26 + 27 + .phui-tag-type-state .phui-tag-core { 28 + padding: 1px 6px; 29 + } 30 + 31 + .phui-tag-view .phui-icon-view { 32 + position: absolute; 33 + display: inline-block; 34 + top: 1px; 35 + left: 5px; 36 + } 37 + 38 + .phui-tag-icon-view .phui-tag-core { 39 + padding-left: 22px; 40 + } 41 + 42 + .phui-tag-view-has-bar .phui-tag-core { 43 + border-radius: 0 3px 3px 0; 44 + border-width: 1px 1px 1px 0; 45 + } 46 + 47 + .phui-tag-dot { 48 + position: relative; 49 + display: inline-block; 50 + width: 6px; 51 + height: 6px; 52 + margin-right: 3px; 53 + top: -1px; 54 + border-radius: 6px; 55 + border: 1px solid transparent; 56 + box-shadow: 0 0 2px rgba(255, 255, 255, 0.8); 57 + } 58 + 59 + .phui-tag-type-state { 60 + color: #ffffff; 61 + text-shadow: rgba(100, 100, 100, 0.40) 0px -1px 1px; 62 + } 63 + 64 + .phui-tag-type-object, 65 + a.phui-tag-type-object, 66 + a.phui-tag-type-object:link { 67 + color: #000000; 68 + } 69 + 70 + .phui-tag-type-person { 71 + white-space: nowrap; 72 + color: #19558d; 73 + } 74 + 75 + .phui-tag-color-red { 76 + background-color: {$red}; 77 + border-color: {$red}; 78 + } 79 + 80 + .phui-tag-color-orange { 81 + background-color: {$orange}; 82 + border-color: {$orange}; 83 + } 84 + 85 + .phui-tag-color-yellow { 86 + background-color: {$yellow}; 87 + border-color: {$yellow}; 88 + } 89 + 90 + .phui-tag-color-blue { 91 + background-color: {$blue}; 92 + border-color: {$blue}; 93 + } 94 + 95 + .phui-tag-color-indigo { 96 + background-color: {$indigo}; 97 + border-color: {$indigo}; 98 + } 99 + 100 + .phui-tag-color-green { 101 + background-color: {$green}; 102 + border-color: {$green}; 103 + } 104 + 105 + .phui-tag-color-violet { 106 + background-color: {$violet}; 107 + border-color: {$violet}; 108 + } 109 + 110 + .phui-tag-color-black { 111 + background-color: #333333; 112 + border-color: #333333; 113 + } 114 + 115 + .phui-tag-color-grey { 116 + background-color: {$lightgreytext}; 117 + border-color: {$lightgreytext}; 118 + } 119 + 120 + .phui-tag-color-white { 121 + background-color: #f7f7f7; 122 + border-color: #f7f7f7; 123 + } 124 + 125 + .phui-tag-color-object { 126 + background-color: #e7e7e7; 127 + border-color: #e7e7e7; 128 + } 129 + 130 + .phui-tag-color-person { 131 + background-color: #f1f7ff; 132 + border-color: #f1f7ff; 133 + } 134 + 135 + a.phui-tag-view:hover 136 + .phui-tag-core.phui-tag-color-person { 137 + border-color: #d9ebfd; 138 + } 139 + 140 + a.phui-tag-view:hover 141 + .phui-tag-core.phui-tag-color-object { 142 + border-color: #d7d7d7; 143 + } 144 + 145 + .phui-tag-bar { 146 + padding-left: 4px; 147 + border-width: 1px; 148 + border-style: solid; 149 + border-right-color: rgba(0, 0, 0, 0.33); 150 + border-radius: 2px 0 0 2px; 151 + }