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

Allow images to be used with PHUIBigInfoView

Summary: Allows setting on an image here if wanted.

Test Plan: Set a rocket to launch a new instance on rSAAS

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+41 -11
+2 -2
resources/celerity/map.php
··· 142 142 'rsrc/css/phui/phui-action-panel.css' => 'b4798122', 143 143 'rsrc/css/phui/phui-badge.css' => '22c0cf4f', 144 144 'rsrc/css/phui/phui-basic-nav-view.css' => 'a0705f53', 145 - 'rsrc/css/phui/phui-big-info-view.css' => 'd13afcde', 145 + 'rsrc/css/phui/phui-big-info-view.css' => 'acc3492c', 146 146 'rsrc/css/phui/phui-box.css' => '745e881d', 147 147 'rsrc/css/phui/phui-chart.css' => '6bf6f78e', 148 148 'rsrc/css/phui/phui-cms.css' => '504b4b23', ··· 821 821 'phui-action-panel-css' => 'b4798122', 822 822 'phui-badge-view-css' => '22c0cf4f', 823 823 'phui-basic-nav-view-css' => 'a0705f53', 824 - 'phui-big-info-view-css' => 'd13afcde', 824 + 'phui-big-info-view-css' => 'acc3492c', 825 825 'phui-box-css' => '745e881d', 826 826 'phui-button-bar-css' => 'f1ff5494', 827 827 'phui-button-css' => '3ca51caa',
+32 -9
src/view/phui/PHUIBigInfoView.php
··· 5 5 private $icon; 6 6 private $title; 7 7 private $description; 8 + private $image; 8 9 private $actions = array(); 9 10 10 11 public function setIcon($icon) { ··· 19 20 20 21 public function setDescription($description) { 21 22 $this->description = $description; 23 + return $this; 24 + } 25 + 26 + public function setImage($image) { 27 + $this->image = $image; 22 28 return $this; 23 29 } 24 30 ··· 43 49 protected function getTagContent() { 44 50 require_celerity_resource('phui-big-info-view-css'); 45 51 46 - $icon = id(new PHUIIconView()) 47 - ->setIcon($this->icon) 48 - ->addClass('phui-big-info-icon'); 52 + if ($this->icon) { 53 + $icon = id(new PHUIIconView()) 54 + ->setIcon($this->icon) 55 + ->addClass('phui-big-info-icon'); 56 + 57 + $icon = phutil_tag( 58 + 'div', 59 + array( 60 + 'class' => 'phui-big-info-icon-container', 61 + ), 62 + $icon); 63 + } 49 64 50 - $icon = phutil_tag( 51 - 'div', 52 - array( 53 - 'class' => 'phui-big-info-icon-container', 54 - ), 55 - $icon); 65 + if ($this->image) { 66 + $image = phutil_tag( 67 + 'img', 68 + array( 69 + 'class' => 'phui-big-info-image', 70 + 'src' => $this->image, 71 + )); 72 + $icon = phutil_tag( 73 + 'span', 74 + array( 75 + 'class' => 'phui-big-info-icon-container', 76 + ), 77 + $image); 78 + } 56 79 57 80 $title = phutil_tag( 58 81 'div',
+7
webroot/rsrc/css/phui/phui-big-info-view.css
··· 35 35 .phui-big-info-button + .phui-big-info-button { 36 36 margin-left: 12px; 37 37 } 38 + 39 + .phui-big-info-view .phui-big-info-image { 40 + height: 64px; 41 + width: 64px; 42 + margin: 0 auto; 43 + padding-bottom: 12px; 44 + }