Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
702 B · 33 lines
PHP
12345678910111213141516171819202122232425262728293031323334<?php
/** * Render the "Undo" action to recover discarded inline comments. * * This extends @{class:PHUIDiffInlineCommentView} so it can use the same * scaffolding code as other kinds of inline comments. */final class PHUIDiffInlineCommentUndoView extends PHUIDiffInlineCommentView {
public function isHideable() { return false; }
public function render() { $link = javelin_tag( 'a', array( 'href' => '#', 'sigil' => 'differential-inline-comment-undo', ), pht('Undo'));
return phutil_tag( 'div', array( 'class' => 'differential-inline-undo', ), array(pht('Changes discarded.'), ' ', $link)); }
}