email/unreadpoly/elements/xinu-email-unread.html
Bill Thiede a905520cc6 unreadpoly: move xinu-email-{unread,app} into elements/
Also wired up refresh button to refetch /unread
2014-08-03 22:32:17 -07:00

33 lines
850 B
HTML

<link rel="import" href="../bower_components/polymer/polymer.html">
<polymer-element name="xinu-email-unread" attributes="boxes" noscript>
<template>
<style>
a {
color: #000;
text-decoration: none;
}
/*
.item {
background: linear-gradient(#fff, #f8f8f8);
padding: .5em;
}
.item:hover {
background: linear-gradient(#e8e8e8, #eee);
}
*/
</style>
<template repeat="{{box in boxes}}">
<a href="#{{box.name}}" target="_self">
<paper-item icon="folder" horizontal layout>
<div flex>{{box.name}}</div>
<div end>{{box.count}}</div>
</paper-item>
</a>
</template>
</template>
</polymer-element>