diff options
author | diosmosis <benaka@piwik.pro> | 2014-10-02 06:05:48 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-10-02 06:05:48 +0400 |
commit | a555bec5f6b157db385d423cad9cd1ef910e6730 (patch) | |
tree | 1821ef2c81db03e228d5daa0b4c3472d91a91575 /plugins/ExampleUI | |
parent | 834d06c1193c421059f6cecc98315a7e71f9c029 (diff) |
Create angularjs directive for Piwik notifications and use in old Notificaction class.
Diffstat (limited to 'plugins/ExampleUI')
-rw-r--r-- | plugins/ExampleUI/templates/notifications.twig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/ExampleUI/templates/notifications.twig b/plugins/ExampleUI/templates/notifications.twig index 2212ead3d9..1058a50a61 100644 --- a/plugins/ExampleUI/templates/notifications.twig +++ b/plugins/ExampleUI/templates/notifications.twig @@ -4,6 +4,11 @@ <h2>Inline notification example:</h2> <div style="display:inline-block;margin-top:10px;" id="exampleUI_notifications"> - {{ 'This is an example for an inline notification. Have you noticed the success message disappeared after a few seconds?'|notification({'placeAt': '#exampleUI_notifications', 'title': 'Info: ', 'noclear': true, 'context': 'info'}) }} + <div piwik-notification + notification-title="Info:" + noclear="true" + context="info"> + This is an example for an inline notification. Have you noticed the success message disappeared after a few seconds? + </div> </div> {% endblock %}
\ No newline at end of file |