Differential D10392 Diff 25011 src/applications/differential/controller/DifferentialDiffViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/controller/DifferentialDiffViewController.php
| Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | if ($diff->getRevisionID()) { | ||||
| '<optgroup label="%s">', | '<optgroup label="%s">', | ||||
| pht('Update Existing Revision')); | pht('Update Existing Revision')); | ||||
| foreach ($revisions as $revision) { | foreach ($revisions as $revision) { | ||||
| $select[] = phutil_tag( | $select[] = phutil_tag( | ||||
| 'option', | 'option', | ||||
| array( | array( | ||||
| 'value' => $revision->getID(), | 'value' => $revision->getID(), | ||||
| ), | ), | ||||
| phutil_utf8_shorten( | id(new PhutilUTF8StringTruncator()) | ||||
| 'D'.$revision->getID().' '.$revision->getTitle(), 128)); | ->setMaximumGlyphs(128) | ||||
| ->truncateString( | |||||
| 'D'.$revision->getID().' '.$revision->getTitle())); | |||||
| } | } | ||||
| $select[] = hsprintf('</optgroup>'); | $select[] = hsprintf('</optgroup>'); | ||||
| } | } | ||||
| $select = phutil_tag( | $select = phutil_tag( | ||||
| 'select', | 'select', | ||||
| array('name' => 'revisionID'), | array('name' => 'revisionID'), | ||||
| $select); | $select); | ||||
| ▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines | |||||