Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/view/ConpherenceFileWidgetView.php
| Show All 14 Lines | foreach ($files as $file) { | ||||
| $icon_view = phutil_tag( | $icon_view = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'file-icon sprite-docs '.$icon_class | 'class' => 'file-icon sprite-docs '.$icon_class | ||||
| ), | ), | ||||
| ''); | ''); | ||||
| $file_view = id(new PhabricatorFileLinkView()) | $file_view = id(new PhabricatorFileLinkView()) | ||||
| ->setFilePHID($file->getPHID()) | ->setFilePHID($file->getPHID()) | ||||
| ->setFileName(phutil_utf8_shorten($file->getName(), 28)) | ->setFileName(id(new PhutilUTF8StringTruncator()) | ||||
| ->setMaximumGlyphs(28) | |||||
| ->truncateString($file->getName())) | |||||
| ->setFileViewable($file->isViewableImage()) | ->setFileViewable($file->isViewableImage()) | ||||
| ->setFileViewURI($file->getBestURI()) | ->setFileViewURI($file->getBestURI()) | ||||
| ->setCustomClass('file-title'); | ->setCustomClass('file-title'); | ||||
| $who_done_it_text = ''; | $who_done_it_text = ''; | ||||
| // system generated files don't have authors | // system generated files don't have authors | ||||
| if ($file->getAuthorPHID()) { | if ($file->getAuthorPHID()) { | ||||
| $who_done_it_text = pht( | $who_done_it_text = pht( | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||