mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 13:00:56 +01:00
Use remarkup engine for commit info.
This commit is contained in:
parent
e994e69a6f
commit
b266b570d8
2 changed files with 7 additions and 2 deletions
|
@ -40,7 +40,11 @@ class DiffusionCommitController extends DiffusionController {
|
|||
|
||||
$commit_data = $drequest->loadCommitData();
|
||||
|
||||
$factory = new DifferentialMarkupEngineFactory();
|
||||
$engine = $factory->newDifferentialCommentMarkupEngine();
|
||||
|
||||
require_celerity_resource('diffusion-commit-view-css');
|
||||
require_celerity_resource('phabricator-remarkup-css');
|
||||
|
||||
$detail_panel->appendChild(
|
||||
'<div class="diffusion-commit-view">'.
|
||||
|
@ -58,8 +62,8 @@ class DiffusionCommitController extends DiffusionController {
|
|||
'</tr>'.
|
||||
'</table>'.
|
||||
'<hr />'.
|
||||
'<div class="diffusion-commit-message">'.
|
||||
phutil_escape_html($commit_data->getCommitMessage()).
|
||||
'<div class="diffusion-commit-message phabricator-remarkup">'.
|
||||
$engine->markupText($commit_data->getCommitMessage()).
|
||||
'</div>'.
|
||||
'</div>'.
|
||||
'</div>');
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
|
||||
|
||||
phutil_require_module('phabricator', 'applications/differential/parser/markup');
|
||||
phutil_require_module('phabricator', 'applications/differential/view/changesetlistview');
|
||||
phutil_require_module('phabricator', 'applications/diffusion/controller/base');
|
||||
phutil_require_module('phabricator', 'applications/diffusion/data/pathchange');
|
||||
|
|
Loading…
Reference in a new issue