unreadpoly: move xinu-email-{unread,app} into elements/
Also wired up refresh button to refetch /unread
This commit is contained in:
32
unreadpoly/elements/xinu-email-unread.html
Normal file
32
unreadpoly/elements/xinu-email-unread.html
Normal 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>
|
||||
Reference in New Issue
Block a user