Files: ed00f21688c47a809f1724a50ce7a3239f9929a6 / message / html / meta / private.js
411 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', privateMeta) |
13 | |
14 | function privateMeta (msg) { |
15 | if (msg.value.private) { |
16 | return h('i.fa.fa-lock', { |
17 | title: 'Private' |
18 | }) |
19 | } |
20 | } |
21 | } |
22 |
Built with git-ssb-web