1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-02 19:01:03 +01:00

Use remarkup engine for commit info.

This commit is contained in:
epriestley 2011-03-30 21:37:28 -07:00
parent e994e69a6f
commit b266b570d8
2 changed files with 7 additions and 2 deletions

View file

@ -40,7 +40,11 @@ class DiffusionCommitController extends DiffusionController {
$commit_data = $drequest->loadCommitData(); $commit_data = $drequest->loadCommitData();
$factory = new DifferentialMarkupEngineFactory();
$engine = $factory->newDifferentialCommentMarkupEngine();
require_celerity_resource('diffusion-commit-view-css'); require_celerity_resource('diffusion-commit-view-css');
require_celerity_resource('phabricator-remarkup-css');
$detail_panel->appendChild( $detail_panel->appendChild(
'<div class="diffusion-commit-view">'. '<div class="diffusion-commit-view">'.
@ -58,8 +62,8 @@ class DiffusionCommitController extends DiffusionController {
'</tr>'. '</tr>'.
'</table>'. '</table>'.
'<hr />'. '<hr />'.
'<div class="diffusion-commit-message">'. '<div class="diffusion-commit-message phabricator-remarkup">'.
phutil_escape_html($commit_data->getCommitMessage()). $engine->markupText($commit_data->getCommitMessage()).
'</div>'. '</div>'.
'</div>'. '</div>'.
'</div>'); '</div>');

View file

@ -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/differential/view/changesetlistview');
phutil_require_module('phabricator', 'applications/diffusion/controller/base'); phutil_require_module('phabricator', 'applications/diffusion/controller/base');
phutil_require_module('phabricator', 'applications/diffusion/data/pathchange'); phutil_require_module('phabricator', 'applications/diffusion/data/pathchange');