mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-17 08:31:38 +00:00
tweaking todo and styles...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
16f640b896
commit
7de02e470f
11
index.html
11
index.html
@ -4,17 +4,6 @@
|
|||||||
<title>pWiki</title>
|
<title>pWiki</title>
|
||||||
</head>
|
</head>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
.raw,
|
|
||||||
.text
|
|
||||||
{
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.checked {
|
|
||||||
text-decoration: line-through;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script src="ext-lib/jquery.js"></script>
|
<script src="ext-lib/jquery.js"></script>
|
||||||
|
|||||||
54
wiki.js
54
wiki.js
@ -668,6 +668,16 @@ var data = {
|
|||||||
// System pages...
|
// System pages...
|
||||||
'System/style': {
|
'System/style': {
|
||||||
text: ''
|
text: ''
|
||||||
|
+'.raw,\n'
|
||||||
|
+'.text {\n'
|
||||||
|
+' display: block;\n'
|
||||||
|
+'}\n'
|
||||||
|
+'\n'
|
||||||
|
+'input[type="checkbox"][checked]~*,'
|
||||||
|
+'.checked {\n'
|
||||||
|
+' text-decoration: line-through;\n'
|
||||||
|
+'}\n'
|
||||||
|
+'\n'
|
||||||
+'.button {\n'
|
+'.button {\n'
|
||||||
+' text-decoration: none;\n'
|
+' text-decoration: none;\n'
|
||||||
+' margin: 5px;\n'
|
+' margin: 5px;\n'
|
||||||
@ -780,11 +790,34 @@ var data = {
|
|||||||
|
|
||||||
// XXX experimental...
|
// XXX experimental...
|
||||||
// XXX need sorting...
|
// XXX need sorting...
|
||||||
|
// ToDo view...
|
||||||
|
'Templates/todo': {
|
||||||
|
text: ''
|
||||||
|
+'<div>'
|
||||||
|
+'<input type="checkbox" disabled/>'
|
||||||
|
+'<span class="raw" contenteditable tabindex="0" '
|
||||||
|
+'saveto="@source(../path)/@now()" style="display:inline-block">'
|
||||||
|
+'...'
|
||||||
|
+'</span>'
|
||||||
|
+'</div>'
|
||||||
|
+'<br>'
|
||||||
|
+'<macro src="../*">'
|
||||||
|
+'<div class="todo-item">'
|
||||||
|
+'<input type="checkbox"/>'
|
||||||
|
+'<span class="raw" contenteditable tabindex="0" '
|
||||||
|
+'saveto="@source(./path)" style="display:inline-block">'
|
||||||
|
+'@include(./raw)'
|
||||||
|
+'</span> '
|
||||||
|
+'<a class="button" href="#@source(./path)/delete">×</a>'
|
||||||
|
+'</div>'
|
||||||
|
+'</macro>'
|
||||||
|
+'\n',
|
||||||
|
},
|
||||||
|
// ToDo viewer...
|
||||||
'Templates/_todo': {
|
'Templates/_todo': {
|
||||||
text: ''
|
text: ''
|
||||||
+'<include src="../_view"/>\n'
|
+'<include src="../_view"/>\n'
|
||||||
+'\n'
|
+'\n'
|
||||||
+'<div>'
|
|
||||||
// XXX temporary until I figure out how to deal with the saveto=".."
|
// XXX temporary until I figure out how to deal with the saveto=".."
|
||||||
// in implicit vs. explicit _view
|
// in implicit vs. explicit _view
|
||||||
+'<slot name="title" class="title" contenteditable saveto="..">'
|
+'<slot name="title" class="title" contenteditable saveto="..">'
|
||||||
@ -792,24 +825,7 @@ var data = {
|
|||||||
+'</slot>\n'
|
+'</slot>\n'
|
||||||
+'\n'
|
+'\n'
|
||||||
+'<slot name="page-content">\n'
|
+'<slot name="page-content">\n'
|
||||||
+'<div>'
|
+'@include(../todo)'
|
||||||
+'<input type="checkbox"/>'
|
|
||||||
+'<span class="raw" contenteditable tabindex="0" '
|
|
||||||
+'saveto="../@now()" style="display:inline-block">'
|
|
||||||
+'...'
|
|
||||||
+'</span>'
|
|
||||||
+'</div>'
|
|
||||||
+'<br>'
|
|
||||||
+'<macro src="../*">'
|
|
||||||
+'<div>'
|
|
||||||
+'<input type="checkbox"/>'
|
|
||||||
+'<span class="raw" contenteditable tabindex="0" '
|
|
||||||
+'saveto="@source(./path)" style="display:inline-block">'
|
|
||||||
+'@include(./raw)'
|
|
||||||
+'</span> '
|
|
||||||
+'<a href="#@source(./path)/delete">×</a>'
|
|
||||||
+'</div>'
|
|
||||||
+'</macro>'
|
|
||||||
+'</slot>'
|
+'</slot>'
|
||||||
+'\n',
|
+'\n',
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user