1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-10 23:06:06 +00:00

Move tiddlyweb stuff into a separate ServerControlPanel

Eventually we'll need a more general purpose mechanism for plugins to
add UI to the control panel
This commit is contained in:
Jeremy Ruston
2013-04-16 11:17:27 +01:00
parent 64eadcfc41
commit ba7b886067
3 changed files with 14 additions and 17 deletions

View File

@@ -0,0 +1,12 @@
title: $:/templates/ServerControlPanel
----
<$reveal state="$:/status/IsLoggedIn" type="nomatch" text="yes">
Log in to ~TiddlyWeb: <$button message="tw-login" class="btn btn-info">Login</$button>
</$reveal>
<$reveal state="$:/status/IsLoggedIn" type="match" text="yes">
Log out of ~TiddlyWeb: <$button message="tw-logout" class="btn btn-warning">Logout</$button>
</$reveal>
<$button message="tw-server-refresh" class="btn btn-warning">Refresh</$button> to fetch changes from the server immediately