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

Add project icon/type to Project Profile

Summary: Adds basic icon/type to header on Project profiles

Test Plan:
View different projects, see header. Mobile, Deskop, Tablet.

{F1087460}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+28 -4
+2 -2
resources/celerity/map.php
··· 93 93 'rsrc/css/application/policy/policy-transaction-detail.css' => '82100a43', 94 94 'rsrc/css/application/policy/policy.css' => '957ea14c', 95 95 'rsrc/css/application/ponder/ponder-view.css' => '7b0df4da', 96 - 'rsrc/css/application/project/project-view.css' => 'c6387c87', 96 + 'rsrc/css/application/project/project-view.css' => '99a5023b', 97 97 'rsrc/css/application/releeph/releeph-core.css' => '9b3c5733', 98 98 'rsrc/css/application/releeph/releeph-preview-branch.css' => 'b7a6f4a5', 99 99 'rsrc/css/application/releeph/releeph-request-differential-create-dialog.css' => '8d8b92cd', ··· 843 843 'policy-edit-css' => '815c66f7', 844 844 'policy-transaction-detail-css' => '82100a43', 845 845 'ponder-view-css' => '7b0df4da', 846 - 'project-view-css' => 'c6387c87', 846 + 'project-view-css' => '99a5023b', 847 847 'releeph-core' => '9b3c5733', 848 848 'releeph-preview-branch' => 'b7a6f4a5', 849 849 'releeph-request-differential-create-dialog' => '8d8b92cd',
+8 -1
src/applications/project/controller/PhabricatorProjectProfileController.php
··· 17 17 $project = $this->getProject(); 18 18 $id = $project->getID(); 19 19 $picture = $project->getProfileImageURI(); 20 + $icon = $project->getDisplayIconIcon(); 21 + $icon_name = $project->getDisplayIconName(); 22 + $tag = id(new PHUITagView()) 23 + ->setIcon($icon) 24 + ->setName($icon_name) 25 + ->addClass('project-view-header-tag') 26 + ->setType(PHUITagView::TYPE_SHADE); 20 27 21 28 $header = id(new PHUIHeaderView()) 22 - ->setHeader($project->getName()) 29 + ->setHeader(array($project->getName(), $tag)) 23 30 ->setUser($viewer) 24 31 ->setPolicyObject($project) 25 32 ->setImage($picture)
+18 -1
webroot/rsrc/css/application/project/project-view.css
··· 7 7 padding-bottom: 64px; 8 8 } 9 9 10 + .project-view-header-tag { 11 + margin-left: 8px; 12 + font-size: {$normalfontsize}; 13 + color: {$bluetext}; 14 + font-family: {$fontfamily}; 15 + font-weight: normal; 16 + } 17 + 18 + .device-phone .project-view-header-tag { 19 + display: block; 20 + margin-left: -4px; 21 + } 22 + 23 + .project-view-header-tag .phui-icon-view { 24 + color: {$bluetext}; 25 + } 26 + 10 27 .phui-box.phui-box-grey.project-view-properties { 11 28 margin: 0 16px 0 16px; 12 29 padding: 4px 12px; ··· 37 54 38 55 .project-view-feed .phui-header-header { 39 56 font-size: {$biggerfontsize}; 40 - margin-left: 4px; 57 + margin-left: 8px; 41 58 } 42 59 43 60 .device-desktop .project-view-feed .phui-feed-story,