mirror of
https://github.com/flynx/pWiki.git
synced 2025-11-02 20:10:07 +00:00
notes and tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
027033b548
commit
511ca4f4b1
@ -1445,6 +1445,8 @@ object.Constructor('Page', BasePage, {
|
|||||||
// NOTE: var value is parsed only on assignment and not on dereferencing...
|
// NOTE: var value is parsed only on assignment and not on dereferencing...
|
||||||
//
|
//
|
||||||
// XXX should alpha/Alpha be 0 (current) or 1 based???
|
// XXX should alpha/Alpha be 0 (current) or 1 based???
|
||||||
|
// XXX do we need a default attr???
|
||||||
|
// ...i.e. if not defined set to ..
|
||||||
// XXX INC_DEC do we need inc/dec and parent???
|
// XXX INC_DEC do we need inc/dec and parent???
|
||||||
'var': Macro(
|
'var': Macro(
|
||||||
['name', 'text',
|
['name', 'text',
|
||||||
@ -2848,21 +2850,21 @@ module.Templates = {
|
|||||||
// XXX for some reason this does not list files...
|
// XXX for some reason this does not list files...
|
||||||
FlatNotes: {
|
FlatNotes: {
|
||||||
text: object.doc`
|
text: object.doc`
|
||||||
@var(template FlatNotes/EmptyPage)
|
@var(editor_template FlatNotes/EmptyPage)
|
||||||
|
|
||||||
<slot title/>
|
<slot title/>
|
||||||
<slot header><content/><a href="#./$NOW/edit:template=@var(template)">🗎</a></slot>
|
<slot header><content/><a href="#./$NOW/edit:template=@var(editor_template)">🗎</a></slot>
|
||||||
<macro src="*:sort=-mtime:$ARGS" strict>
|
<macro src="*:sort=-mtime:$ARGS" strict>
|
||||||
@var(path "@source(s ./path)")
|
@var(path "@source(s ./path)")
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<a href="#@var(path)/edit:template=@var(template)">@source(./title/quote)</a>
|
<a href="#@var(path)/edit:template=@var(editor_template)">@source(./title/quote)</a>
|
||||||
<a class="show-on-hover" href="#@var(path)/info">🛈</a>
|
<a class="show-on-hover" href="#@var(path)/info">🛈</a>
|
||||||
<a class="show-on-hover"
|
<a class="show-on-hover"
|
||||||
href="javascript:pwiki.delete('@var(path)')"
|
href="javascript:pwiki.delete('@var(path)')"
|
||||||
>×</a>
|
>×</a>
|
||||||
</div>
|
</div>
|
||||||
<else>
|
<else>
|
||||||
<a href="#./$NOW/edit:template=@var(template)" class="placeholder">Empty</a>
|
<a href="#./$NOW/edit:template=@var(editor_template)" class="placeholder">Empty</a>
|
||||||
</else>
|
</else>
|
||||||
</macro>` },
|
</macro>` },
|
||||||
// XXX this is not resolved...
|
// XXX this is not resolved...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user