unreadpoly: move xinu-email-{unread,app} into elements/

Also wired up refresh button to refetch /unread
This commit is contained in:
2014-08-03 22:32:17 -07:00
parent 6a144bca28
commit a905520cc6
3 changed files with 108 additions and 89 deletions

View File

@@ -0,0 +1,32 @@
<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>