Files: 2241b99edee2e9e03c9015b258f3c80d5973a9fc / modules / feed / html / follow-warning.js
745 bytesRaw
1 | var nest = require('depnest') |
2 | var { when, h } = require('mutant') |
3 | |
4 | exports.needs = nest({ |
5 | 'intl.sync.i18n': 'first' |
6 | }) |
7 | |
8 | exports.gives = nest({ |
9 | 'feed.html.followWarning': true |
10 | }) |
11 | |
12 | exports.create = function (api) { |
13 | const i18n = api.intl.sync.i18n |
14 | return nest('feed.html.followWarning', function warning (condition, explanation) { |
15 | var content = h('div', {classList: 'NotFollowingAnyoneWarning'}, h('section', [ |
16 | h('h1', i18n('You are not following anyone')), |
17 | h('p', explanation), |
18 | h('p', [i18n('For help getting started, see the guide at '), |
19 | h('a', {href: 'https://scuttlebutt.nz/getting-started.html'}, 'https://scuttlebutt.nz/getting-started.html')] |
20 | ) |
21 | ])) |
22 | |
23 | return when(condition, content) |
24 | }) |
25 | } |
26 |
Built with git-ssb-web