This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 649d4545e038108f2e16ad3d55335da45781d033 Author: Sebb <[email protected]> AuthorDate: Mon Jan 10 12:00:36 2022 +0000 Add version info to dropdown so it shows on mobile --- webui/js/source/init.js | 7 ++++++- webui/list.html | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/webui/js/source/init.js b/webui/js/source/init.js index d7c68c2..a41b866 100644 --- a/webui/js/source/init.js +++ b/webui/js/source/init.js @@ -31,6 +31,11 @@ console.log("Initializing key command logger"); window.addEventListener('keyup', keyCommands); window.addEventListener('load', function() { + let powered_by = "Powered by Apache Pony Mail (Foal v/%s ~%s)".format(PONYMAIL_VERSION, PONYMAIL_REVISION); + let pb = document.getElementById("powered_by"); + if (pb) { + pb.innerHTML = powered_by + } document.body.appendChild(new HTML('footer', { class: 'footer hidden-xs' }, [ @@ -39,7 +44,7 @@ window.addEventListener('load', function() { }, [ new HTML('p', { class: 'muted' - }, "Powered by Apache Pony Mail (Foal v/%s ~%s)".format(PONYMAIL_VERSION, PONYMAIL_REVISION)) + }, powered_by) ]) ])); }); diff --git a/webui/list.html b/webui/list.html index c14ea1b..dba7ad5 100644 --- a/webui/list.html +++ b/webui/list.html @@ -104,6 +104,7 @@ the License. --> <input type="radio" id="display_mode_treeview" name="ui_threading" value="treeview" onchange="set_theme('treeview');"> <label for="display_mode_treeview">Treeview</label><br/> <br/> <input type="checkbox" id="display_mode_compact" name="ui_compact_list" value="compact" onchange="set_theme(G_current_listmode, this.checked);"> <label for="display_mode_compact">Compact layout</label><br/> + <input type="checkbox" id="G_show_stats_sidebar" name="ui_stats_sidebar" value="compact" onchange="set_show_stats(this.checked);"> <label for="G_show_stats_sidebar">Show side-bar stats</label><br/> </div> <div> <b>Email display mode:</b><br/><br/> @@ -113,7 +114,8 @@ the License. --> </div> <hr/> <div style="display: block; width: 100%; text-align: center;"> - <input type="checkbox" id="G_show_stats_sidebar" name="ui_stats_sidebar" value="compact" onchange="set_show_stats(this.checked);"> <label for="G_show_stats_sidebar">Show side-bar stats</label><br/> + <!-- text will be overwritten by init.js --> + <span id="powered_by">Powered by Apache Pony Mail (Foal)</span> </div> </div> </li>
