Files: 634a3e47dc6133cc55dae03d47dc86880af6282c / messages / vote.js
452 bytesRaw
1 | var u = require('yap-util') |
2 | module.exports = u.createRenderer(function (data, apply) { |
3 | return ['div.Message', |
4 | //currently, a vote message has no need for a cache tag. |
5 | //unless we decide to show other peers that have liked this. |
6 | //u.cacheTag(toUrl('message', {id: data.key}), data.key, ), |
7 | ['h3', 'Yup!'], |
8 | ['div.EmbeddedMessage', |
9 | apply('message', {id: data.value.content.vote && data.value.content.vote.link}), |
10 | ] |
11 | ] |
12 | }) |
13 | |
14 | |
15 |
Built with git-ssb-web