Commit 3a7fde1f59607e49da0facd487cdab55b65be9f9
Merge pull request #697 from soapdog/feature-add-version-to-settings-pane
Adding patchwork version information to the settings screenMatt 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.json | changed |
modules/page/html/render/settings.js | changed |
locales/en.json | ||
---|---|---|
@@ -195,6 +195,7 @@ | ||
195 | 195 … | "%s people from your network replied to this message on ": { |
196 | 196 … | "one": "%s person from your network replied to this message on ", |
197 | 197 … | "other": "%s people from your network replied to this message on " |
198 | 198 … | }, |
199 | - "(you)": "(you)" | |
200 | -} | |
199 … | + "(you)": "(you)", | |
200 … | + "Information": "Information" | |
201 … | +} |
modules/page/html/render/settings.js | ||
---|---|---|
@@ -1,6 +1,7 @@ | ||
1 | 1 … | var { h, when } = require('mutant') |
2 | 2 … | var nest = require('depnest') |
3 … | +var packageInfo = require('../../../../package.json') | |
3 | 4 … | |
4 | 5 … | var themeNames = Object.keys(require('../../../../styles')) |
5 | 6 … | |
6 | 7 … | exports.needs = nest({ |
@@ -91,8 +92,14 @@ | ||
91 | 92 … | checkbox(onlySubscribed, { |
92 | 93 … | label: i18n('Only include posts from subscribed channels') |
93 | 94 … | }) |
94 | 95 … | ]) |
96 … | + ]), | |
97 … | + | |
98 … | + h('section', [ | |
99 … | + h('h2', i18n('Information')), | |
100 … | + | |
101 … | + h('p', `${packageInfo.productName} ${packageInfo.version}`) | |
95 | 102 … | ]) |
96 | 103 … | ]) |
97 | 104 … | ]) |
98 | 105 … | ]) |
Built with git-ssb-web