Show More
@@ -1,24 +1,25 b'' | |||
|
1 | 1 | <link rel="import" href="../../../../../../bower_components/paper-button/paper-button.html"> |
|
2 | <link rel="import" href="../../../../../../bower_components/paper-toast/paper-toast.html"> | |
|
2 | 3 | <link rel="import" href="../rhodecode-unsafe-html/rhodecode-unsafe-html.html"> |
|
3 | 4 | <dom-module id="rhodecode-toast"> |
|
4 | 5 | <template> |
|
5 | 6 | <style include="shared-styles"></style> |
|
6 | 7 | <link rel="stylesheet" href="rhodecode-toast.css"> |
|
7 | 8 | |
|
8 | 9 | <paper-toast id="p-toast" duration="0" horizontal-offset="100" horizontal-align="auto" vertical-align="top" always-on-top> |
|
9 | 10 | <div class="toast-message-holder"> |
|
10 | 11 | <template is="dom-repeat" items="{{toasts}}"> |
|
11 | 12 | <div class="toast-notification"> |
|
12 | 13 | <span class$="toast-level {{item.level}}">{{item.level}}</span> |
|
13 | 14 | <rhodecode-unsafe-html text="{{item.message}}"></rhodecode-unsafe-html> |
|
14 | 15 | </div> |
|
15 | 16 | </template> |
|
16 | 17 | </div> |
|
17 | 18 | <div class="toast-close"> |
|
18 | 19 | <paper-button on-tap="dismissNotifications" class="btn btn-primary">{{_gettext('Close now')}}</paper-button> |
|
19 | 20 | </div> |
|
20 | 21 | </paper-toast> |
|
21 | 22 | </template> |
|
22 | 23 | |
|
23 | 24 | <script src="rhodecode-toast.js"></script> |
|
24 | 25 | </dom-module> |
@@ -1,10 +1,6 b'' | |||
|
1 | <link rel="import" href="../../../../../bower_components/paper-toggle-button/paper-toggle-button.html"> | |
|
2 | <link rel="import" href="../../../../../bower_components/paper-toast/paper-toast.html"> | |
|
3 | <link rel="import" href="../../../../../bower_components/paper-tooltip/paper-tooltip.html"> | |
|
4 | <link rel="import" href="../../../../../bower_components/paper-button/paper-button.html"> | |
|
5 | <link rel="import" href="../../../../../bower_components/paper-spinner/paper-spinner.html"> | |
|
1 | <!-- required for stamped out templates that might use common elements --> | |
|
6 | 2 | <link rel="import" href="../../../../../bower_components/iron-ajax/iron-ajax.html"> |
|
7 | 3 | <link rel="import" href="shared-styles.html"> |
|
8 | 4 | <link rel="import" href="rhodecode-toast/rhodecode-toast.html"> |
|
9 | 5 | <link rel="import" href="rhodecode-toggle/rhodecode-toggle.html"> |
|
10 | 6 | <link rel="import" href="rhodecode-unsafe-html/rhodecode-unsafe-html.html"> |
General Comments 0
You need to be logged in to leave comments.
Login now