@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.

Simplify Create Repository page

Summary: Also adds images, nice images.

Test Plan: Create a repository, test mobile, tablet, desktop layouts.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+29 -9
+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' => 'd0fbb996', 78 + 'rsrc/css/application/diffusion/diffusion.css' => 'a5296e3c', 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' => 'd0fbb996', 573 + 'diffusion-css' => 'a5296e3c', 574 574 'diffusion-icons-css' => '0c15255e', 575 575 'diffusion-readme-css' => '419dd5b6', 576 576 'diffusion-repository-css' => 'ee6f20ec',
+12 -7
src/applications/diffusion/controller/DiffusionRepositoryEditController.php
··· 37 37 $crumbs->setBorder(true); 38 38 39 39 $title = pht('Choose Repository Type'); 40 - $header = id(new PHUIHeaderView()) 41 - ->setHeader(pht('Create Repository')) 42 - ->setHeaderIcon('fa-plus-square'); 43 40 44 41 $layout = id(new AphrontMultiColumnView()) 45 42 ->setFluidLayout(true); ··· 47 44 $create_uri = $request->getRequestURI(); 48 45 49 46 foreach ($vcs_types as $vcs_key => $vcs_type) { 47 + $image = idx($vcs_type, 'image'); 48 + $image = PhabricatorFile::loadBuiltin($viewer, $image); 50 49 $action = id(new PHUIActionPanelView()) 51 - ->setIcon(idx($vcs_type, 'icon')) 50 + ->setImage($image->getBestURI()) 52 51 ->setHeader(idx($vcs_type, 'create.header')) 53 52 ->setHref($create_uri->alter('vcs', $vcs_key)) 54 53 ->setSubheader(idx($vcs_type, 'create.subheader')); ··· 62 61 $observe_href = PhabricatorEnv::getDoclink( 63 62 'Diffusion User Guide: Existing Repositories'); 64 63 64 + require_celerity_resource('diffusion-css'); 65 + 66 + $image = PhabricatorFile::loadBuiltin($viewer, 'repo/repo.png'); 65 67 $hints->addColumn( 66 68 id(new PHUIActionPanelView()) 67 - ->setIcon('fa-book') 69 + ->setImage($image->getBestURI()) 68 70 ->setHeader(pht('Import or Observe an Existing Repository')) 69 71 ->setHref($observe_href) 70 72 ->setSubheader( ··· 72 74 'Review the documentation describing how to import or observe an '. 73 75 'existing repository.'))); 74 76 77 + $layout = id(new PHUIBoxView()) 78 + ->addClass('diffusion-create-repo') 79 + ->appendChild($layout); 80 + 75 81 $view = id(new PHUITwoColumnView()) 76 - ->setHeader($header) 82 + ->setFixed(true) 77 83 ->setFooter( 78 84 array( 79 85 $layout, 80 - phutil_tag('br'), 81 86 $hints, 82 87 )); 83 88
+3
src/applications/repository/constants/PhabricatorRepositoryType.php
··· 26 26 self::REPOSITORY_TYPE_GIT => array( 27 27 'name' => pht('Git'), 28 28 'icon' => 'fa-git', 29 + 'image' => 'repo/repo-git.png', 29 30 'create.header' => pht('Create Git Repository'), 30 31 'create.subheader' => pht('Create a new Git repository.'), 31 32 ), 32 33 self::REPOSITORY_TYPE_MERCURIAL => array( 33 34 'name' => pht('Mercurial'), 34 35 'icon' => 'fa-code-fork', 36 + 'image' => 'repo/repo-hg.png', 35 37 'create.header' => pht('Create Mercurial Repository'), 36 38 'create.subheader' => pht('Create a new Mercurial repository.'), 37 39 ), 38 40 self::REPOSITORY_TYPE_SVN => array( 39 41 'name' => pht('Subversion'), 40 42 'icon' => 'fa-database', 43 + 'image' => 'repo/repo-svn.png', 41 44 'create.header' => pht('Create Subversion Repository'), 42 45 'create.subheader' => pht('Create a new Subversion repository.'), 43 46 ),
+12
webroot/rsrc/css/application/diffusion/diffusion.css
··· 160 160 width: 100%; 161 161 } 162 162 163 + /* - Create Repository -------------------------------------------------------*/ 164 + 165 + .diffusion-create-repo { 166 + margin-top: 32px; 167 + margin-bottom: 20px; 168 + } 169 + 170 + .device .diffusion-create-repo { 171 + margin-top: 0; 172 + margin-bottom: 0; 173 + } 174 + 163 175 164 176 /* - Phone Style ------------------------------------------------------------*/ 165 177