@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 Diffusion Actions into action bar on home

Summary: Moving this down the the "bar" to allow pattern search on home. Rebuilds the mobile layout a little.

Test Plan:
Test actions on mobile, desktop, tablet.

{F5100460}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+18 -5
+2 -2
resources/celerity/map.php
··· 75 75 'rsrc/css/application/diffusion/diffusion-readme.css' => '419dd5b6', 76 76 'rsrc/css/application/diffusion/diffusion-repository.css' => 'ee6f20ec', 77 77 'rsrc/css/application/diffusion/diffusion-source.css' => '750add59', 78 - 'rsrc/css/application/diffusion/diffusion.css' => 'a5296e3c', 78 + 'rsrc/css/application/diffusion/diffusion.css' => 'dc8d51d0', 79 79 'rsrc/css/application/feed/feed.css' => 'ecd4ec57', 80 80 'rsrc/css/application/files/global-drag-and-drop.css' => 'b556a948', 81 81 'rsrc/css/application/flag/flag.css' => 'bba8f811', ··· 570 570 'differential-revision-history-css' => '0e8eb855', 571 571 'differential-revision-list-css' => 'f3c47d33', 572 572 'differential-table-of-contents-css' => 'ae4b7a55', 573 - 'diffusion-css' => 'a5296e3c', 573 + 'diffusion-css' => 'dc8d51d0', 574 574 'diffusion-icons-css' => '0c15255e', 575 575 'diffusion-readme-css' => '419dd5b6', 576 576 'diffusion-repository-css' => 'ee6f20ec',
+10 -3
src/applications/diffusion/controller/DiffusionRepositoryController.php
··· 31 31 $description = $this->buildDescriptionView($repository); 32 32 $locate_file = $this->buildLocateFile(); 33 33 34 - $header->setActionList($actions); 35 - 36 34 // Before we do any work, make sure we're looking at a some content: we're 37 35 // on a valid branch, and the repository is not empty. 38 36 $page_has_content = false; ··· 113 111 $clone_text = pht('Clone'); 114 112 } 115 113 114 + $actions_button = id(new PHUIButtonView()) 115 + ->setTag('a') 116 + ->setText(pht('Actions')) 117 + ->setIcon('fa-bars') 118 + ->addClass('mmr') 119 + ->setColor(PHUIButtonView::GREY) 120 + ->setDropdown(true) 121 + ->setDropdownMenu($actions); 122 + 116 123 $clone_button = id(new PHUIButtonView()) 117 124 ->setTag('a') 118 125 ->setText($clone_text) ··· 123 130 124 131 $bar = id(new PHUILeftRightView()) 125 132 ->setLeft($locate_file) 126 - ->setRight(array($this->branchButton, $clone_button)) 133 + ->setRight(array($this->branchButton, $actions_button, $clone_button)) 127 134 ->addClass('diffusion-action-bar'); 128 135 129 136 $view = id(new PHUITwoColumnView())
+6
webroot/rsrc/css/application/diffusion/diffusion.css
··· 33 33 display: block; 34 34 } 35 35 36 + .device-phone .diffusion-action-bar .button .phui-button-text { 37 + visibility: hidden; 38 + width: 0; 39 + margin-left: 8px; 40 + } 41 + 36 42 .diffusion-profile-locate .phui-form-view { 37 43 margin: 0; 38 44 padding: 0;