@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 Guides ObjectList styles to PHUIObjectItemListView

Summary: I plan to reuse these styles with Config, maybe also Almanac, etc.

Test Plan: Review /guides/, see same styles.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+46 -45
+3 -5
resources/celerity/map.php
··· 7 7 */ 8 8 return array( 9 9 'names' => array( 10 - 'core.pkg.css' => 'ed7ae7bb', 10 + 'core.pkg.css' => '25e4069a', 11 11 'core.pkg.js' => 'b562c3db', 12 12 'darkconsole.pkg.js' => 'e7393ebb', 13 13 'differential.pkg.css' => '3fb7f532', ··· 70 70 'rsrc/css/application/feed/feed.css' => 'ecd4ec57', 71 71 'rsrc/css/application/files/global-drag-and-drop.css' => '5c1b47c2', 72 72 'rsrc/css/application/flag/flag.css' => '5337623f', 73 - 'rsrc/css/application/guides/guides.css' => '1d5414e5', 74 73 'rsrc/css/application/harbormaster/harbormaster.css' => 'f491c9f4', 75 74 'rsrc/css/application/herald/herald-test.css' => 'a52e323e', 76 75 'rsrc/css/application/herald/herald.css' => 'dc31f6e9', ··· 148 147 'rsrc/css/phui/phui-info-view.css' => '28efab79', 149 148 'rsrc/css/phui/phui-list.css' => '9da2aa00', 150 149 'rsrc/css/phui/phui-object-box.css' => '6b487c57', 151 - 'rsrc/css/phui/phui-object-item-list-view.css' => '40010767', 150 + 'rsrc/css/phui/phui-object-item-list-view.css' => '985e9d54', 152 151 'rsrc/css/phui/phui-pager.css' => 'bea33d23', 153 152 'rsrc/css/phui/phui-pinboard-view.css' => '2495140e', 154 153 'rsrc/css/phui/phui-profile-menu.css' => '8a3fc181', ··· 574 573 'font-fontawesome' => '2b7ebbcc', 575 574 'font-lato' => 'c7ccd872', 576 575 'global-drag-and-drop-css' => '5c1b47c2', 577 - 'guides-app-css' => '1d5414e5', 578 576 'harbormaster-css' => 'f491c9f4', 579 577 'herald-css' => 'dc31f6e9', 580 578 'herald-rule-editor' => 'd6a7e717', ··· 858 856 'phui-inline-comment-view-css' => '5953c28e', 859 857 'phui-list-view-css' => '9da2aa00', 860 858 'phui-object-box-css' => '6b487c57', 861 - 'phui-object-item-list-view-css' => '40010767', 859 + 'phui-object-item-list-view-css' => '985e9d54', 862 860 'phui-pager-css' => 'bea33d23', 863 861 'phui-pinboard-view-css' => '2495140e', 864 862 'phui-profile-menu-css' => '8a3fc181',
-1
src/applications/guides/controller/PhabricatorGuideInstallController.php
··· 8 8 } 9 9 10 10 public function handleRequest(AphrontRequest $request) { 11 - require_celerity_resource('guides-app-css'); 12 11 $viewer = $request->getViewer(); 13 12 14 13 $title = pht('Installation Guide');
-1
src/applications/guides/controller/PhabricatorGuideQuickStartController.php
··· 8 8 } 9 9 10 10 public function handleRequest(AphrontRequest $request) { 11 - require_celerity_resource('guides-app-css'); 12 11 $viewer = $request->getViewer(); 13 12 14 13 $title = pht('Quick Start Guide');
-1
src/applications/guides/controller/PhabricatorGuideWelcomeController.php
··· 8 8 } 9 9 10 10 public function handleRequest(AphrontRequest $request) { 11 - require_celerity_resource('guides-app-css'); 12 11 $viewer = $request->getViewer(); 13 12 14 13 $title = pht('Welcome to Phabricator');
+1 -3
src/applications/guides/view/PhabricatorGuideListView.php
··· 10 10 } 11 11 12 12 public function render() { 13 - require_celerity_resource('guides-app-css'); 14 - 15 13 $list = id(new PHUIObjectItemListView()) 16 - ->addClass('guides-app'); 14 + ->setBig(true); 17 15 18 16 foreach ($this->items as $item) { 19 17 $icon = id(new PHUIIconView())
+9
src/view/phui/PHUIObjectItemListView.php
··· 8 8 private $noDataString; 9 9 private $flush; 10 10 private $simple; 11 + private $big; 11 12 private $allowEmptyList; 12 13 private $itemClass = 'phui-object-item-standard'; 13 14 ··· 40 41 return $this; 41 42 } 42 43 44 + public function setBig($big) { 45 + $this->big = $big; 46 + return $this; 47 + } 48 + 43 49 public function setNoDataString($no_data_string) { 44 50 $this->noDataString = $no_data_string; 45 51 return $this; ··· 68 74 } 69 75 if ($this->simple) { 70 76 $classes[] = 'phui-object-list-simple'; 77 + } 78 + if ($this->big) { 79 + $classes[] = 'phui-object-list-big'; 71 80 } 72 81 73 82 return array(
-34
webroot/rsrc/css/application/guides/guides.css
··· 1 - /** 2 - * @provides guides-app-css 3 - */ 4 - 5 - .guides-app ul.phui-object-item-list-view { 6 - margin: 0; 7 - padding: 20px; 8 - } 9 - 10 - .guides-app .phui-object-item-no-bar .phui-object-item-frame { 11 - border: 0; 12 - } 13 - 14 - .guides-app .phui-object-item-image-icon { 15 - margin: 8px 2px 12px; 16 - } 17 - 18 - .guides-app a.phui-object-item-link { 19 - color: #000; 20 - font-size: {$biggestfontsize}; 21 - } 22 - 23 - .guides-app .phui-object-item-name { 24 - padding-top: 6px; 25 - } 26 - 27 - .guides-app .phui-object-item-launch-button a.button { 28 - font-size: {$normalfontsize}; 29 - padding: 3px 12px 4px; 30 - } 31 - 32 - .device-desktop .guides-app .phui-object-item { 33 - margin-bottom: 8px; 34 - }
+33
webroot/rsrc/css/phui/phui-object-item-list-view.css
··· 738 738 bottom: 2px; 739 739 right: 2px; 740 740 } 741 + 742 + /* - Big List---------------------------------------------------------------- */ 743 + 744 + .phui-object-list-big ul.phui-object-item-list-view { 745 + margin: 0; 746 + padding: 20px; 747 + } 748 + 749 + .phui-object-list-big .phui-object-item-no-bar .phui-object-item-frame { 750 + border: 0; 751 + } 752 + 753 + .phui-object-list-big .phui-object-item-image-icon { 754 + margin: 8px 2px 12px; 755 + } 756 + 757 + .phui-object-list-big a.phui-object-item-link { 758 + color: #000; 759 + font-size: {$biggestfontsize}; 760 + } 761 + 762 + .phui-object-list-big .phui-object-item-name { 763 + padding-top: 6px; 764 + } 765 + 766 + .phui-object-list-big .phui-object-item-launch-button a.button { 767 + font-size: {$normalfontsize}; 768 + padding: 3px 12px 4px; 769 + } 770 + 771 + .device-desktop .phui-object-list-big .phui-object-item { 772 + margin-bottom: 8px; 773 + }