mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-19 16:24:51 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
c954ac01fe
@ -215,7 +215,7 @@ exports.startup = function() {
|
|||||||
$tw.perf.report("mainRender",function() {
|
$tw.perf.report("mainRender",function() {
|
||||||
$tw.pageWidgetNode = $tw.wiki.makeWidget(parser,{document: document, parentWidget: $tw.rootWidget});
|
$tw.pageWidgetNode = $tw.wiki.makeWidget(parser,{document: document, parentWidget: $tw.rootWidget});
|
||||||
$tw.pageContainer = document.createElement("div");
|
$tw.pageContainer = document.createElement("div");
|
||||||
$tw.utils.addClass($tw.pageContainer,"tw-page-container");
|
$tw.utils.addClass($tw.pageContainer,"tw-page-container-wrapper");
|
||||||
document.body.insertBefore($tw.pageContainer,document.body.firstChild);
|
document.body.insertBefore($tw.pageContainer,document.body.firstChild);
|
||||||
$tw.pageWidgetNode.render($tw.pageContainer,null);
|
$tw.pageWidgetNode.render($tw.pageContainer,null);
|
||||||
})();
|
})();
|
||||||
|
@ -1,5 +1,17 @@
|
|||||||
title: $:/core/ui/PageTemplate
|
title: $:/core/ui/PageTemplate
|
||||||
|
|
||||||
|
\define containerClasses()
|
||||||
|
tw-page-container tw-page-view-$(themeTitle)$ tw-language-$(languageTitle)$
|
||||||
|
\end
|
||||||
|
|
||||||
|
<$set name="themeTitle" value={{$:/view}}>
|
||||||
|
|
||||||
|
<$set name="currentTiddler" value={{$:/language}}>
|
||||||
|
|
||||||
|
<$set name="languageTitle" value={{!!name}}>
|
||||||
|
|
||||||
|
<div class=<<containerClasses>>>
|
||||||
|
|
||||||
<$navigator story="$:/StoryList" history="$:/HistoryList">
|
<$navigator story="$:/StoryList" history="$:/HistoryList">
|
||||||
|
|
||||||
<$dropzone>
|
<$dropzone>
|
||||||
@ -14,3 +26,10 @@ title: $:/core/ui/PageTemplate
|
|||||||
|
|
||||||
</$navigator>
|
</$navigator>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
Loading…
Reference in New Issue
Block a user