##// END OF EJS Templates
polymer: simplify shared components
polymer: simplify shared components

File last commit:

r746:1770638a default
r746:1770638a default
Show More
rhodecode-toast.html
25 lines | 1.2 KiB | text/html | HtmlLexer
<link rel="import" href="../../../../../../bower_components/paper-button/paper-button.html">
<link rel="import" href="../../../../../../bower_components/paper-toast/paper-toast.html">
<link rel="import" href="../rhodecode-unsafe-html/rhodecode-unsafe-html.html">
<dom-module id="rhodecode-toast">
<template>
<style include="shared-styles"></style>
<link rel="stylesheet" href="rhodecode-toast.css">
<paper-toast id="p-toast" duration="0" horizontal-offset="100" horizontal-align="auto" vertical-align="top" always-on-top>
<div class="toast-message-holder">
<template is="dom-repeat" items="{{toasts}}">
<div class="toast-notification">
<span class$="toast-level {{item.level}}">{{item.level}}</span>
<rhodecode-unsafe-html text="{{item.message}}"></rhodecode-unsafe-html>
</div>
</template>
</div>
<div class="toast-close">
<paper-button on-tap="dismissNotifications" class="btn btn-primary">{{_gettext('Close now')}}</paper-button>
</div>
</paper-toast>
</template>
<script src="rhodecode-toast.js"></script>
</dom-module>