File: items.op

package info (click to toggle)
lua-orbit 2.2.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,956 kB
  • sloc: javascript: 2,216; sql: 78; sh: 32; makefile: 31; xml: 20
file content (9 lines) | stat: -rwxr-xr-x 294 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
$lua{[[
  items = todo_list:find_all{ order = "created_at desc" }
]]}
$if{$items|1}[==[
$items[[
<li item_id="$id"><input class="item" type="checkbox" $if{$done}[=[checked]=] item_id="$id"/> $title
  <a href = "#" class = "remove" item_id = "$id">Remove</a></li>
]]
]==],[==[Nothing to do!]==]