1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 15:24:50 +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

@ -31,6 +31,7 @@ title: $:/templates/SideBar
</$reveal> </$reveal>
<$reveal type="match" state="$:/state/sideBarTabSet" text="toolsTab" qualifyTiddlerTitles="yes"> <$reveal type="match" state="$:/state/sideBarTabSet" text="toolsTab" qualifyTiddlerTitles="yes">
{{$:/templates/ControlPanel}} {{$:/templates/ControlPanel}}
{{$:/templates/ServerControlPanel}}
</$reveal> </$reveal>
<$reveal type="match" state="$:/state/sideBarTabSet" text="moreTab" qualifyTiddlerTitles="yes"> <$reveal type="match" state="$:/state/sideBarTabSet" text="moreTab" qualifyTiddlerTitles="yes">
{{$:/templates/MoreSideBar}} {{$:/templates/MoreSideBar}}

View File

@ -1,20 +1,4 @@
title: TiddlyWiki5 Personal Client Server Edition title: TiddlyWiki5 Personal Client Server Edition
modified: 201304152100
Experimental clientserver edition of TiddlyWiki5. Experimental clientserver edition of TiddlyWiki5.
----
Current [[login status|$:/status/IsLoggedIn]]: {{$:/status/IsLoggedIn}}
Current [[username|$:/status/UserName]]: {{$:/status/UserName}}
----
<$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

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