Rename sidebar to contents
parent
e9b30d2bbc
commit
440818dcaf
|
@ -10,10 +10,10 @@
|
|||
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<t:if t:value="sidebar">
|
||||
<t:if t:value="contents">
|
||||
<td valign="top" style="width: 210px;">
|
||||
<div class="sidebar">
|
||||
<t:bind t:name="sidebar">
|
||||
<div class="contents">
|
||||
<t:bind t:name="contents">
|
||||
<h2>
|
||||
<t:a t:href="$wiki/view" t:query="title">
|
||||
<t:label t:name="title" />
|
||||
|
|
|
@ -344,8 +344,8 @@ M: revision feed-entry-url id>> revision-url ;
|
|||
[ "author" value user-edits-url ] >>url
|
||||
[ list-user-edits ] >>entries ;
|
||||
|
||||
: init-sidebar ( -- )
|
||||
"Sidebar" latest-revision [ "sidebar" [ from-object ] nest-form ] when*
|
||||
: init-sidebars ( -- )
|
||||
"Contents" latest-revision [ "contents" [ from-object ] nest-form ] when*
|
||||
"Footer" latest-revision [ "footer" [ from-object ] nest-form ] when* ;
|
||||
|
||||
: <wiki> ( -- dispatcher )
|
||||
|
@ -367,7 +367,7 @@ M: revision feed-entry-url id>> revision-url ;
|
|||
<list-changes-feed-action> "changes.atom" add-responder
|
||||
<delete-action> "delete" add-responder
|
||||
<boilerplate>
|
||||
[ init-sidebar ] >>init
|
||||
[ init-sidebars ] >>init
|
||||
{ wiki "wiki-common" } >>template ;
|
||||
|
||||
: init-wiki ( -- )
|
||||
|
|
Loading…
Reference in New Issue