TiddlyWiki5/core/templates/PageTemplate.tid

88 wiersze
2.1 KiB
Plaintext
Czysty Zwykły widok Historia

title: $:/templates/PageTemplate
<!-- The navigator catches navigation events and updates the story and history tiddlers -->
2012-10-25 21:19:50 +00:00
<<navigator><
<!-- The top navigation bar -->
2012-06-10 21:02:16 +00:00
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
2012-11-03 12:33:56 +00:00
2012-06-10 21:02:16 +00:00
{{nav{
<!-- Navigation menu -->
2012-06-10 21:02:16 +00:00
* HelloThere
* [[Docs]]
*{{divider-vertical}}
<!-- Search box -->
<form class="form-search">
{{search-query{
<<edit tiddler:[[$:/search/text]] type:search requireFocus:yes>>
}}}
<div style="position:absolute; z-index:1000;">
<<reveal state:[[$:/search/text]] type:nomatch text:""><
<div class="open">
{{dropdown-menu{
* <<list filter:"[!is[shadow]searchVia[$:/search/text]sort[title]limit[50]]" template:"$:/templates/SearchResultTemplate" emptyMessage:"//No results//">>
}}}
</div>
>>
</div>
</form>
<!-- New tiddler button -->
<<button NewTiddler class:"btn btn-success"><New>>
<!-- Full screen button -->
<<button full-screen class:"btn btn-warning"><Full screen>>
<!-- Edit button dropdown -->
{{pull-right{
<<reveal state:[[$:/EditMode]] type:nomatch text:yes><
<<button modal param:[[$:/messages/EnterEditMode]] set:[[$:/EditMode]] setTo:yes class:"btn btn-success"><Edit>>
>>
<!-- Save changes is only visible in edit mode -->
<<reveal state:[[$:/EditMode]] type:match text:yes><
<<button save-wiki param:"$:/core/templates/tiddlywiki5.encrypted.template.html" class:"btn pull-right"><Save Changes (encrypted)>>
>>
<<reveal state:[[$:/EditMode]] type:match text:yes><
<<button save-wiki class:"btn pull-right"><Save Changes>>
>>
}}}
}}}
2012-06-10 21:02:16 +00:00
</div>
</div>
</div>
<!-- The main story references the same story and history tiddlers as the outer navigator -->
<div class="container">
2012-11-03 12:33:56 +00:00
<div class="row">
<div class="span2">
<div style="position:fixed;">
<<scrollable width:"104px"><
2012-11-04 19:49:13 +00:00
<<list filter:"[list[$:/StoryList]]" history:"$:/HistoryList" listview:classic itemClass:"tw-menu-list-item">>
>>
2012-11-03 12:33:56 +00:00
</div>
</div>
<div class="span10">
<<list filter:"[list[$:/StoryList]]" history:"$:/HistoryList" template:"$:/templates/ViewTemplate" editTemplate:"$:/templates/EditTemplate" listview:classic itemClass:"tw-tiddler-frame">>
</div>
</div>
2012-06-10 21:02:16 +00:00
</div>
>>