gluon-config-mode-mesh-vpn: Move display of key to translations
When rebooting the node in config mode, currently the fastd key is forcefully displayed in a fixed format. This is confusing in communities where fastd accepts all keys and no key submission is needed. Furthermore, some communities might want to personalize the display of the key (see #387). This patch moves the displaying <div> from the package's lua file to the translation files of the sample site configuration and mentiones the change in the release notes.
This commit is contained in:
parent
4405f39869
commit
eb590bdc12
@ -57,6 +57,7 @@ Releases
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
|
releases/v2015.2
|
||||||
releases/v2015.1.2
|
releases/v2015.1.2
|
||||||
releases/v2015.1.1
|
releases/v2015.1.1
|
||||||
releases/v2015.1
|
releases/v2015.1
|
||||||
|
37
docs/releases/v2015.2.rst
Normal file
37
docs/releases/v2015.2.rst
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
Gluon 2015.2 (in development)
|
||||||
|
=============================
|
||||||
|
|
||||||
|
Added (and removed) hardware support
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
||||||
|
New features
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
||||||
|
Bugfixes
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
|
||||||
|
Site changes
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
* ``i18n/``
|
||||||
|
|
||||||
|
- The translations of ``gluon-config-mode:pubkey`` now have to show the fastd
|
||||||
|
public key itself if desired, making its format and whether it is shown at
|
||||||
|
all configurable. To retain the old format, add ``<p>`` to the beginning of
|
||||||
|
your translations and append::
|
||||||
|
|
||||||
|
"</p>"
|
||||||
|
"<div class=\"the-key\">"
|
||||||
|
" # <%= hostname %>"
|
||||||
|
" <br/>"
|
||||||
|
"<%= pubkey %>"
|
||||||
|
"</div>"
|
||||||
|
|
||||||
|
Internals
|
||||||
|
~~~~~~~~~
|
||||||
|
|
||||||
|
|
||||||
|
Known Issues
|
||||||
|
~~~~~~~~~~~~
|
@ -18,12 +18,18 @@ msgstr ""
|
|||||||
|
|
||||||
msgid "gluon-config-mode:pubkey"
|
msgid "gluon-config-mode:pubkey"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Dies ist der öffentliche Schlüssel deines Freifunk-Knotens. Erst nachdem "
|
"<p>Dies ist der öffentliche Schlüssel deines Freifunk-Knotens. Erst nachdem "
|
||||||
"er auf den Servern des Entenhausener Freifunk-Projektes eingetragen wurde, "
|
"er auf den Servern des Entenhausener Freifunk-Projektes eingetragen wurde, "
|
||||||
"kann sich dein Knoten mit dem Entenhausener Mesh-VPN zu verbinden. Bitte "
|
"kann sich dein Knoten mit dem Entenhausener Mesh-VPN zu verbinden. Bitte "
|
||||||
"schicke dazu diesen Schlüssel und den Namen deines Knotens "
|
"schicke dazu diesen Schlüssel und den Namen deines Knotens "
|
||||||
"(<em><%=hostname%></em>) an "
|
"(<em><%=hostname%></em>) an "
|
||||||
"<a href=\"mailto:keys@entenhausen.freifunk.net\">keys@entenhausen.freifunk.net</a>."
|
"<a href=\"mailto:keys@entenhausen.freifunk.net\">keys@entenhausen.freifunk.net</a>."
|
||||||
|
"</p>"
|
||||||
|
"<div class=\"the-key\">"
|
||||||
|
" # <%= hostname %>"
|
||||||
|
" <br/>"
|
||||||
|
"<%= pubkey %>"
|
||||||
|
"</div>"
|
||||||
|
|
||||||
msgid "gluon-config-mode:reboot"
|
msgid "gluon-config-mode:reboot"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -17,11 +17,17 @@ msgstr ""
|
|||||||
|
|
||||||
msgid "gluon-config-mode:pubkey"
|
msgid "gluon-config-mode:pubkey"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"This is your Freifunk node's public key. The node won't be able to "
|
"<p>This is your Freifunk node's public key. The node won't be able to "
|
||||||
"connect to the mesh VPN until the key has been registered on the Freifunk "
|
"connect to the mesh VPN until the key has been registered on the Freifunk "
|
||||||
"Duckburg servers. "
|
"Duckburg servers. "
|
||||||
"To register the key send it together with your node's name (<em><%=hostname%></em>) to "
|
"To register the key send it together with your node's name (<em><%=hostname%></em>) to "
|
||||||
"<a href=\"mailto:keys@entenhausen.freifunk.net\">keys@entenhausen.freifunk.net</a>."
|
"<a href=\"mailto:keys@entenhausen.freifunk.net\">keys@entenhausen.freifunk.net</a>."
|
||||||
|
"</p>"
|
||||||
|
"<div class=\"the-key\">"
|
||||||
|
" # <%= hostname %>"
|
||||||
|
" <br/>"
|
||||||
|
"<%= pubkey %>"
|
||||||
|
"</div>"
|
||||||
|
|
||||||
|
|
||||||
msgid "gluon-config-mode:reboot"
|
msgid "gluon-config-mode:reboot"
|
||||||
|
@ -12,12 +12,7 @@ else
|
|||||||
local pubkey = util.trim(util.exec("/etc/init.d/fastd show_key " .. "mesh_vpn"))
|
local pubkey = util.trim(util.exec("/etc/init.d/fastd show_key " .. "mesh_vpn"))
|
||||||
local hostname = uci:get_first("system", "system", "hostname")
|
local hostname = uci:get_first("system", "system", "hostname")
|
||||||
|
|
||||||
local msg = [[<p>]] .. i18n.translate('gluon-config-mode:pubkey') .. [[</p>
|
local msg = i18n.translate('gluon-config-mode:pubkey')
|
||||||
<div class="the-key">
|
|
||||||
# <%= hostname %>
|
|
||||||
<br/>
|
|
||||||
<%= pubkey %>
|
|
||||||
</div>]]
|
|
||||||
|
|
||||||
return function ()
|
return function ()
|
||||||
luci.template.render_string(msg, { pubkey=pubkey
|
luci.template.render_string(msg, { pubkey=pubkey
|
||||||
|
Loading…
Reference in New Issue
Block a user