mirror of
https://github.com/flynx/pWiki.git
synced 2025-11-02 03:50:10 +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...
|
||||
//
|
||||
// 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???
|
||||
'var': Macro(
|
||||
['name', 'text',
|
||||
@ -2848,21 +2850,21 @@ module.Templates = {
|
||||
// XXX for some reason this does not list files...
|
||||
FlatNotes: {
|
||||
text: object.doc`
|
||||
@var(template FlatNotes/EmptyPage)
|
||||
@var(editor_template FlatNotes/EmptyPage)
|
||||
|
||||
<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>
|
||||
@var(path "@source(s ./path)")
|
||||
<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="javascript:pwiki.delete('@var(path)')"
|
||||
>×</a>
|
||||
</div>
|
||||
<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>
|
||||
</macro>` },
|
||||
// XXX this is not resolved...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user