Files: 7a4602b4d8ba03a08fa8dc8623644a1673938ce4 / 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