diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-01-22 07:31:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-22 07:31:23 +0300 |
commit | 111d605c31a7d530bb1082881799a3ad828be8ed (patch) | |
tree | 2ea0d4379c4c42c211d863e39a03d877aa3f804a /plugins/API | |
parent | 50cd6ffb9d340a635744ffcae3b01805a5dafbd3 (diff) |
Email reports in HTML: Updated styling to be consistent with new Custom Alerts emails design (#11251)
* Updated Email Report/Downloaded Report. Added new styling found in the Alert Email. i.e navigation bar uptop, styled tables, added powered by piwik footer. Note: "back to top" link only works on downloaded version, not on the email.
* Fixed the back to top link not working in emails.
* Fixed a bug where logo was not centered in gmail
* Translations
* Code cleanup and making PDF generation work
* removed htaccess
* fix unit test
* Some test fixes
* UI Test
Diffstat (limited to 'plugins/API')
-rw-r--r-- | plugins/API/Renderer/Html.php | 4 | ||||
-rw-r--r-- | plugins/API/tests/Unit/HtmlRendererTest.php | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/API/Renderer/Html.php b/plugins/API/Renderer/Html.php index 1aeab87f51..6a2add0613 100644 --- a/plugins/API/Renderer/Html.php +++ b/plugins/API/Renderer/Html.php @@ -13,6 +13,10 @@ use Piwik\Common; class Html extends ApiRenderer { + public function renderSuccess($message) + { + return "<!-- Success: $message -->"; + } /** * @param $message diff --git a/plugins/API/tests/Unit/HtmlRendererTest.php b/plugins/API/tests/Unit/HtmlRendererTest.php index 374f33e0b6..22b492e10d 100644 --- a/plugins/API/tests/Unit/HtmlRendererTest.php +++ b/plugins/API/tests/Unit/HtmlRendererTest.php @@ -32,7 +32,7 @@ class HtmlRendererTest extends \PHPUnit_Framework_TestCase { $response = $this->builder->renderSuccess('ok'); - $this->assertEquals('Success:ok', $response); + $this->assertEquals('<!-- Success: ok -->', $response); } public function test_renderException_shouldIncludeTheMessageAndNotExceptionMessage() |