@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 a coverImage field to PHUIObjectItemView

Summary: Allows setting of an image to a Workboard card. (Hides from regular view, just in case).

Test Plan: Fake setting a Pholio Mock image.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+52 -7
+5 -5
resources/celerity/map.php
··· 7 7 */ 8 8 return array( 9 9 'names' => array( 10 - 'core.pkg.css' => 'c477bd31', 10 + 'core.pkg.css' => 'a7d4cf8f', 11 11 'core.pkg.js' => 'ef5e33db', 12 12 'darkconsole.pkg.js' => 'e7393ebb', 13 13 'differential.pkg.css' => '2de124c9', ··· 143 143 'rsrc/css/phui/phui-info-view.css' => '6d7c3509', 144 144 'rsrc/css/phui/phui-list.css' => '9da2aa00', 145 145 'rsrc/css/phui/phui-object-box.css' => '407eaf5a', 146 - 'rsrc/css/phui/phui-object-item-list-view.css' => 'fe594a65', 146 + 'rsrc/css/phui/phui-object-item-list-view.css' => '8f443e8b', 147 147 'rsrc/css/phui/phui-pager.css' => 'bea33d23', 148 148 'rsrc/css/phui/phui-pinboard-view.css' => '2495140e', 149 149 'rsrc/css/phui/phui-profile-menu.css' => 'ab4fcf5f', ··· 155 155 'rsrc/css/phui/phui-timeline-view.css' => '2efceff8', 156 156 'rsrc/css/phui/phui-two-column-view.css' => 'c75bfc5b', 157 157 'rsrc/css/phui/workboards/phui-workboard.css' => 'b07a5524', 158 - 'rsrc/css/phui/workboards/phui-workcard.css' => 'b4322ca7', 158 + 'rsrc/css/phui/workboards/phui-workcard.css' => 'adf34f58', 159 159 'rsrc/css/phui/workboards/phui-workpanel.css' => 'e1bd8d04', 160 160 'rsrc/css/sprite-login.css' => '60e8560e', 161 161 'rsrc/css/sprite-menu.css' => '9dd65b92', ··· 819 819 'phui-inline-comment-view-css' => '0fdb3667', 820 820 'phui-list-view-css' => '9da2aa00', 821 821 'phui-object-box-css' => '407eaf5a', 822 - 'phui-object-item-list-view-css' => 'fe594a65', 822 + 'phui-object-item-list-view-css' => '8f443e8b', 823 823 'phui-pager-css' => 'bea33d23', 824 824 'phui-pinboard-view-css' => '2495140e', 825 825 'phui-profile-menu-css' => 'ab4fcf5f', ··· 832 832 'phui-timeline-view-css' => '2efceff8', 833 833 'phui-two-column-view-css' => 'c75bfc5b', 834 834 'phui-workboard-view-css' => 'b07a5524', 835 - 'phui-workcard-view-css' => 'b4322ca7', 835 + 'phui-workcard-view-css' => 'adf34f58', 836 836 'phui-workpanel-view-css' => 'e1bd8d04', 837 837 'phuix-action-list-view' => 'b5c256b8', 838 838 'phuix-action-view' => '8cf6d262',
+37 -2
src/view/phui/PHUIObjectItemView.php
··· 27 27 private $countdownNum; 28 28 private $countdownNoun; 29 29 private $launchButton; 30 + private $coverImage; 30 31 31 32 const AGE_FRESH = 'fresh'; 32 33 const AGE_STALE = 'stale'; ··· 148 149 149 150 public function getImageIcon() { 150 151 return $this->imageIcon; 152 + } 153 + 154 + public function setCoverImage($image) { 155 + $this->coverImage = $image; 156 + return $this; 151 157 } 152 158 153 159 public function setState($state) { ··· 720 726 $actions); 721 727 } 722 728 723 - return phutil_tag( 729 + $frame_content = phutil_tag( 724 730 'div', 725 731 array( 726 - 'class' => 'phui-object-item-frame', 732 + 'class' => 'phui-object-item-frame-content', 727 733 ), 728 734 array( 729 735 $actions, 730 736 $image, 731 737 $box, 732 738 )); 739 + 740 + $frame_cover = null; 741 + if ($this->coverImage) { 742 + $cover_image = phutil_tag( 743 + 'img', 744 + array( 745 + 'src' => $this->coverImage, 746 + 'class' => 'phui-object-item-cover-image', 747 + )); 748 + 749 + $frame_cover = phutil_tag( 750 + 'div', 751 + array( 752 + 'class' => 'phui-object-item-frame-cover', 753 + ), 754 + $cover_image); 755 + } 756 + 757 + $frame = phutil_tag( 758 + 'div', 759 + array( 760 + 'class' => 'phui-object-item-frame', 761 + ), 762 + array( 763 + $frame_cover, 764 + $frame_content, 765 + )); 766 + 767 + return $frame; 733 768 } 734 769 735 770 private function renderStatusIcon($icon, $label) {
+4
webroot/rsrc/css/phui/phui-object-item-list-view.css
··· 56 56 overflow: hidden; 57 57 } 58 58 59 + .phui-object-item-cover-image { 60 + display: none; 61 + } 62 + 59 63 .phui-object-item-no-bar .phui-object-item-frame { 60 64 border-width: 1px; 61 65 }
+6
webroot/rsrc/css/phui/workboards/phui-workcard.css
··· 100 100 margin-bottom: 8px; 101 101 } 102 102 103 + .phui-workcard .phui-object-item-cover-image { 104 + display: block; 105 + padding: 8px 8px 0 8px; 106 + width: 263px; 107 + } 108 + 103 109 104 110 /* - Draggable Colors --------------------------------------------------------*/ 105 111