Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/view/PholioMockThumbGridView.php
| Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | private function renderThumbnail(PholioImage $image) { | ||||
| $inline_count = null; | $inline_count = null; | ||||
| if ($image->getInlineComments()) { | if ($image->getInlineComments()) { | ||||
| $inline_count[] = phutil_tag( | $inline_count[] = phutil_tag( | ||||
| 'span', | 'span', | ||||
| array( | array( | ||||
| 'class' => 'pholio-mock-thumb-grid-comment-count', | 'class' => 'pholio-mock-thumb-grid-comment-count', | ||||
| ), | ), | ||||
| pht('%s', new PhutilNumber(count($image->getInlineComments())))); | pht('%s', phutil_count($image->getInlineComments()))); | ||||
| } | } | ||||
| return javelin_tag( | return javelin_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'sigil' => 'mock-thumbnail has-tooltip', | 'sigil' => 'mock-thumbnail has-tooltip', | ||||
| 'class' => implode(' ', $classes), | 'class' => implode(' ', $classes), | ||||
| 'href' => '#', | 'href' => '#', | ||||
| Show All 13 Lines | |||||