d804438a87
Added an AnsiConverter helper. Use the AnsiConverter in the email and page templates that display the build log. Use a dedicated stylesheet for the ANSI converter. It can be customized. It can be inlined in the notifications. Do not use ProphecyTestCase when not needed.
18 lines
1.2 KiB
PHTML
18 lines
1.2 KiB
PHTML
<?php use PHPCI\Helper\AnsiConverter; ?>
|
|
<style><?php include(__DIR__ . '/../../../public/assets/css/ansi-colors.css'); ?></style>
|
|
<div style="background: #090; padding: 25px;">
|
|
<div style="background: #fff; padding: 15px; border-radius: 5px">
|
|
<div style="font-family: arial, verdana, sans-serif; font-size: 25px; margin-bottom: 15px">
|
|
<?php print $project->getTitle(); ?> - Build #<?php print $build->getId(); ?>
|
|
</div>
|
|
|
|
<div style="font-family: arial, verdana, sans-serif; font-size: 15px">
|
|
<p>Your commit <strong><?php print $build->getCommitId(); ?></strong> genrate a successfull build in project <strong><?php print $project->getTitle(); ?></strong>.</p>
|
|
|
|
<p style="margin: 10px; background: #fafafa"><?php print $build->getCommitMessage(); ?></p>
|
|
<pre class="ansi_color_bg_black ansi_color_fg_white" style="padding: 4px"><?php print AnsiConverter::convert($build->getLog()); ?></pre>
|
|
<p>You can review <a href="<?php print $build->getCommitLink(); ?>">your commit</a> and the <a href="<?php print PHPCI_URL . 'build/view/' . $build->getId(); ?>">build log</a>.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|