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

Show inline counts on the thumb grid in Pholio

Summary: This is a little rough visually but the actual number works fine.

Test Plan: {F166844}

Reviewers: chad

Reviewed By: chad

Subscribers: epriestley

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

+30 -2
+1 -1
src/applications/pholio/controller/PholioMockViewController.php
··· 31 31 ->setViewer($user) 32 32 ->withIDs(array($this->id)) 33 33 ->needImages(true) 34 - ->needCoverFiles(true) 34 + ->needInlineComments(true) 35 35 ->executeOne(); 36 36 37 37 if (!$mock) {
+14 -1
src/applications/pholio/view/PholioMockThumbGridView.php
··· 120 120 $classes[] = 'pholio-mock-thumb-grid-item-obsolete'; 121 121 } 122 122 123 + $inline_count = null; 124 + if ($image->getInlineComments()) { 125 + $inline_count[] = phutil_tag( 126 + 'span', 127 + array( 128 + 'class' => 'pholio-mock-thumb-grid-comment-count', 129 + ), 130 + pht('%s', new PhutilNumber(count($image->getInlineComments())))); 131 + } 132 + 123 133 return javelin_tag( 124 134 'a', 125 135 array( ··· 130 140 'imageID' => $image->getID(), 131 141 ), 132 142 ), 133 - $tag); 143 + array( 144 + $tag, 145 + $inline_count, 146 + )); 134 147 } 135 148 136 149 }
+15
webroot/rsrc/css/application/pholio/pholio.css
··· 152 152 font-weight: bold; 153 153 color: {$bluetext}; 154 154 } 155 + 156 + .pholio-mock-thumb-grid-comment-count { 157 + position: absolute; 158 + right: 4px; 159 + bottom: 4px; 160 + width: 20px; 161 + height: 20px; 162 + text-align: center; 163 + line-height: 20px; 164 + border-radius: 10px; 165 + font-weight: bold; 166 + color: #fff; 167 + text-decoration: none; 168 + background: {$indigo}; 169 + }