git ssb

10+

Matt McKegg / patchwork



Tree: 593dfd760dee299082f615e02f2747f1c6f660ec

Files: 593dfd760dee299082f615e02f2747f1c6f660ec / modules / feed / html / follow-warning.js

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

Built with git-ssb-web