git ssb

10+

Matt McKegg / patchwork



Commit 3a7fde1f59607e49da0facd487cdab55b65be9f9

Merge pull request #697 from soapdog/feature-add-version-to-settings-pane

Adding patchwork version information to the settings screen
Matt McKegg authored on 12/18/2017, 2:24:36 AM
GitHub committed on 12/18/2017, 2:24:36 AM
Parent: ea5e90e1679dc9de82a5bcfc234728eee8112c40
Parent: f2455a01ab1393669b02aa0a03d1e57bb3b2c88a

Files changed

locales/en.jsonchanged
modules/page/html/render/settings.jschanged
locales/en.jsonView
@@ -195,6 +195,7 @@
195195 "%s people from your network replied to this message on ": {
196196 "one": "%s person from your network replied to this message on ",
197197 "other": "%s people from your network replied to this message on "
198198 },
199- "(you)": "(you)"
200-}
199 + "(you)": "(you)",
200 + "Information": "Information"
201 +}
modules/page/html/render/settings.jsView
@@ -1,6 +1,7 @@
11 var { h, when } = require('mutant')
22 var nest = require('depnest')
3 +var packageInfo = require('../../../../package.json')
34
45 var themeNames = Object.keys(require('../../../../styles'))
56
67 exports.needs = nest({
@@ -91,8 +92,14 @@
9192 checkbox(onlySubscribed, {
9293 label: i18n('Only include posts from subscribed channels')
9394 })
9495 ])
96 + ]),
97 +
98 + h('section', [
99 + h('h2', i18n('Information')),
100 +
101 + h('p', `${packageInfo.productName} ${packageInfo.version}`)
95102 ])
96103 ])
97104 ])
98105 ])

Built with git-ssb-web