Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/diff/view/PHUIDiffInlineCommentUndoView.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Render the "Undo" action to recover discarded inline comments. | * Render the "Undo" action to recover discarded inline comments. | ||||
| * | * | ||||
| * This extends @{class:PHUIDiffInlineCommentView} so it can use the same | * This extends @{class:PHUIDiffInlineCommentView} so it can use the same | ||||
| * scaffolding code as other kinds of inline comments. | * scaffolding code as other kinds of inline comments. | ||||
| */ | */ | ||||
| final class PHUIDiffInlineCommentUndoView | final class PHUIDiffInlineCommentUndoView | ||||
| extends PHUIDiffInlineCommentView { | extends PHUIDiffInlineCommentView { | ||||
| public function isHideable() { | |||||
| return false; | |||||
| } | |||||
| public function render() { | public function render() { | ||||
| $link = javelin_tag( | $link = javelin_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'href' => '#', | 'href' => '#', | ||||
| 'sigil' => 'differential-inline-comment-undo', | 'sigil' => 'differential-inline-comment-undo', | ||||
| ), | ), | ||||
| pht('Undo')); | pht('Undo')); | ||||
| Show All 10 Lines | |||||