1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 19:39:57 +00:00
TiddlyWiki5/tw5dropbox/mainwiki/wiki/PageTemplate.tid
Jeremy Ruston f77b3a54ca Switch from the old navigator macro the new navigationcatcher macro
We'll probably rename the navigationcatcher macro, because the name is
rubbish.
2012-10-24 22:33:33 +01:00

30 lines
897 B
Plaintext

title: $:/templates/PageTemplate
<!-- The navigator catches navigation events and updates the story and history tiddlers -->
<<navigationcatcher story:"$:/StoryTiddlers" history:"$:/History" ><
<!-- The top navigation bar -->
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
{{nav{
<<reveal state:[[$:/plugins/dropbox/IsLoggedIn]] type:match text:no>< <<dropbox.login>< Log me in >> >>
<<reveal state:[[$:/plugins/dropbox/IsLoggedIn]] type:match text:yes>< Logged in as (($:/plugins/dropbox/UserName)) - <<dropbox.logout>< Log me out >> >>
[[App|TiddlyWiki5 in the Sky with Dropbox]]
}}}
</div>
</div>
</div>
<!-- The main story references the same story and history tiddlers as the outer navigator -->
<div class="container">
<<story story:"$:/StoryTiddlers" history:"$:/History" storyviewTiddler:[[$:/CurrentView]] storyview:classic >>
</div>
>>