1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 03:19:56 +00:00
TiddlyWiki5/core/templates/PageTemplate.tid
Jeremy Ruston 957b17a78c Introduce edit mode
There's a wizard for switching into edit mode, and selective display of
UI elements
2012-07-15 22:35:39 +01:00

57 lines
1.4 KiB
Plaintext

title: $:/templates/PageTemplate
<<navigator story:"$:/StoryTiddlers" history:"$:/History" ><
{{navigation-panel{
<<chooser><
<<list all>>
>>
}}}
<<zoomer>>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
{{nav{
* HelloThere
* [[Docs]]
*{{divider-vertical}}
<<button popup:ViewDropDownState class:"btn btn-danger"><View <span class="caret"></span>>>
{{pull-right{
<<reveal state:[[$:/EditMode]] type:nomatch text:yes><
<<button modal param:[[$:/messages/EnterEditMode]] set:[[$:/EditMode]] setTo:yes class:"btn btn-success"><Edit>>
>>
<<reveal state:[[$:/EditMode]] type:match text:yes><
<<button save-wiki class:"btn pull-right"><Save Changes>>
>>
}}}
}}}
<<navigator set:[[$:/CurrentView]]><
<<reveal state:ViewDropDownState type:popup position:below><
<div class="open">
{{dropdown-menu tw-suppress-missing-tiddlylink{
* <<link to:classic>< <<reveal state:[[$:/CurrentView]] type:match text:classic>< <span class="tw-ticked-menu-item"></span> >> Classic>>
* <<link to:sideways>< <<reveal state:[[$:/CurrentView]] type:match text:sideways>< <span class="tw-ticked-menu-item"></span> >> Sideways>>
* <<link to:zoomin>< <<reveal state:[[$:/CurrentView]] type:match text:zoomin>< <span class="tw-ticked-menu-item"></span> >> Zoomin>>
}}}
</div>
>>
>>
</div>
</div>
</div>
<div class="container">
<<story story:"$:/StoryTiddlers" history:"$:/History" storyviewTiddler:[[$:/CurrentView]] storyview:classic >>
</div>
>>