lib/capitate/task_node.rb in capitate-0.2.14 vs lib/capitate/task_node.rb in capitate-0.2.15
- old
+ new
@@ -125,21 +125,30 @@
while(!names.empty?) do
links << %{ "#{names.last}":#{names.join("-")}.html }
names.pop
end
end
+
# Write breadcrumb
file.puts %{ "home":../index.html > "recipes":index.html > #{links.reverse.join(" > ")} }
+ # Write task count
+ # count = 0
+ # each_node do |snode, level|
+ # count += snode.tasks.length
+ # end
+ # file.puts %{\n\n*#{count}* tasks!\n\n}
+
#
# Namespace
#
unless nodes.empty?
file.puts "\n\nh2. Namespaces\n\n"
each_node do |snode, level|
#li_level = (0..level).collect { "*" }.join
+ li_level = "*"
if snode.tasks.length > 0
- file.puts %{* "#{snode.full_name(":")}":#{snode.full_name}.html (#{snode.tasks.length}) \n}
+ file.puts %{#{li_level} "#{snode.full_name(":")}":#{snode.full_name}.html (#{snode.tasks.length}) \n}
end
end
end
#
\ No newline at end of file