##// END OF EJS Templates
polymer: simplify shared components
ergo -
r746:1770638a default
parent child Browse files
Show More
@@ -1,24 +1,25 b''
1 <link rel="import" href="../../../../../../bower_components/paper-button/paper-button.html">
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 <link rel="import" href="../rhodecode-unsafe-html/rhodecode-unsafe-html.html">
3 <link rel="import" href="../rhodecode-unsafe-html/rhodecode-unsafe-html.html">
3 <dom-module id="rhodecode-toast">
4 <dom-module id="rhodecode-toast">
4 <template>
5 <template>
5 <style include="shared-styles"></style>
6 <style include="shared-styles"></style>
6 <link rel="stylesheet" href="rhodecode-toast.css">
7 <link rel="stylesheet" href="rhodecode-toast.css">
7
8
8 <paper-toast id="p-toast" duration="0" horizontal-offset="100" horizontal-align="auto" vertical-align="top" always-on-top>
9 <paper-toast id="p-toast" duration="0" horizontal-offset="100" horizontal-align="auto" vertical-align="top" always-on-top>
9 <div class="toast-message-holder">
10 <div class="toast-message-holder">
10 <template is="dom-repeat" items="{{toasts}}">
11 <template is="dom-repeat" items="{{toasts}}">
11 <div class="toast-notification">
12 <div class="toast-notification">
12 <span class$="toast-level {{item.level}}">{{item.level}}</span>
13 <span class$="toast-level {{item.level}}">{{item.level}}</span>
13 <rhodecode-unsafe-html text="{{item.message}}"></rhodecode-unsafe-html>
14 <rhodecode-unsafe-html text="{{item.message}}"></rhodecode-unsafe-html>
14 </div>
15 </div>
15 </template>
16 </template>
16 </div>
17 </div>
17 <div class="toast-close">
18 <div class="toast-close">
18 <paper-button on-tap="dismissNotifications" class="btn btn-primary">{{_gettext('Close now')}}</paper-button>
19 <paper-button on-tap="dismissNotifications" class="btn btn-primary">{{_gettext('Close now')}}</paper-button>
19 </div>
20 </div>
20 </paper-toast>
21 </paper-toast>
21 </template>
22 </template>
22
23
23 <script src="rhodecode-toast.js"></script>
24 <script src="rhodecode-toast.js"></script>
24 </dom-module>
25 </dom-module>
@@ -1,10 +1,6 b''
1 <link rel="import" href="../../../../../bower_components/paper-toggle-button/paper-toggle-button.html">
1 <!-- required for stamped out templates that might use common elements -->
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">
6 <link rel="import" href="../../../../../bower_components/iron-ajax/iron-ajax.html">
2 <link rel="import" href="../../../../../bower_components/iron-ajax/iron-ajax.html">
7 <link rel="import" href="shared-styles.html">
3 <link rel="import" href="shared-styles.html">
8 <link rel="import" href="rhodecode-toast/rhodecode-toast.html">
4 <link rel="import" href="rhodecode-toast/rhodecode-toast.html">
9 <link rel="import" href="rhodecode-toggle/rhodecode-toggle.html">
5 <link rel="import" href="rhodecode-toggle/rhodecode-toggle.html">
10 <link rel="import" href="rhodecode-unsafe-html/rhodecode-unsafe-html.html">
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