Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/view/DifferentialLocalCommitsView.php
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | foreach ($local as $commit) { | ||||
| $author = nonempty( | $author = nonempty( | ||||
| idx($commit, 'user'), | idx($commit, 'user'), | ||||
| idx($commit, 'author')); | idx($commit, 'author')); | ||||
| $row[] = $author; | $row[] = $author; | ||||
| $message = idx($commit, 'message'); | $message = idx($commit, 'message'); | ||||
| $summary = idx($commit, 'summary'); | $summary = idx($commit, 'summary'); | ||||
| $summary = phutil_utf8_shorten($summary, 80); | $summary = id(new PhutilUTF8StringTruncator()) | ||||
| ->setMaximumGlyphs(80) | |||||
| ->truncateString($summary); | |||||
| $view = new AphrontMoreView(); | $view = new AphrontMoreView(); | ||||
| $view->setSome($summary); | $view->setSome($summary); | ||||
| if ($message && (trim($summary) != trim($message))) { | if ($message && (trim($summary) != trim($message))) { | ||||
| $view->setMore(phutil_escape_html_newlines($message)); | $view->setMore(phutil_escape_html_newlines($message)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines | |||||