Files: 94fee4c60e06e9664fbbc1e09f7208d11ba546b6 / message / html / meta / private.js
435 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('message.html.meta') |
5 | |
6 | exports.needs = nest({ |
7 | 'about.obs.name': 'first', |
8 | 'message.obs.likes': 'first' |
9 | }) |
10 | |
11 | exports.create = (api) => { |
12 | return nest('message.html.meta', private) |
13 | |
14 | function private (msg) { |
15 | if (msg.value.private) { |
16 | return h('i.fa.fa-lock', { |
17 | title: 'Private' |
18 | }) |
19 | } else { |
20 | return null; |
21 | } |
22 | } |
23 | } |
24 |
Built with git-ssb-web