Sha256: 2a3cbd4ecb43cc9303ce0422775ab92fa45e93e58da525e9932da8fe2ea43a8b

Contents?: true

Size: 1.54 KB

Versions: 18

Compression:

Stored size: 1.54 KB

Contents

# en/todo.rb
#
# English resources for todo.rb
#
# Copyright (c) 2001,2002,2003 Junichiro KITA <kita@kitaj.no-ip.com>
# Distributed under the GPL
# 

def todo_msg_today; "today"; end
def todo_msg_in_time(days); "#{days} day(s) left to go"; end
def todo_msg_late(days); "#{days} day(s) delay"; end
def todo_config_label; "Edit ToDo"; end

add_conf_proc('ToDo', 'ToDo plugin') do
	saveconf_todo
	todo_init

	<<-HTML
	<h3 class="subtitle">How to use</h3>
	<p>put '&lt;%=todo%&gt;' in the <a href="#{h @update}?conf=header">Header/Footer</a>.</p>
	<h3 class="subtitle">Edit ToDo</h3>
	<p>Each line has one ToDo entry, which is in the form of:</p>
	<pre>priority[deadline] what to do</pre>
	<p>'priority' and 'what to do' is separated by a apace character.</p>
	<p>Priority is optional.  If you specify priority, put an integer between 1 and 99, otherwise the entry is ignored.</p>
	<p>Deadline is optional.  If you specify deadline, put '[' and ']' around deadline.  Deadline is parsed by <a href="http://www.ruby-lang.org/ja/man-1.6/?cmd=view;name=ParseDate">ParseDate module</a></p>
	<p><textarea name="todo.todos" cols="70" rows="15">#{h @todos.join("\n")}</textarea></p>

	<h3 class="subtitle">Title for ToDo</h3>
	<p><input name="todo.title" value="#{h(@conf['todo.title']) if @conf['todo.title']}"></p>

	<h3 class="subtitle">Max number of ToDo entries to be displayed</h3>
	<p><input name="todo.n" value="#{h @conf['todo.n']}" size="3"> entries</p>
	HTML
end

# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End:
# vim: ts=3

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
tdiary-4.0.2.20140201 misc/plugin/en/todo.rb
tdiary-4.0.2 misc/plugin/en/todo.rb
tdiary-4.0.1.20131102 misc/plugin/en/todo.rb
tdiary-4.0.1.20130929 misc/plugin/en/todo.rb
tdiary-4.0.1.20130903 misc/plugin/en/todo.rb
tdiary-4.0.1 misc/plugin/en/todo.rb
tdiary-4.0.0.20130826 misc/plugin/en/todo.rb
tdiary-4.0.0 misc/plugin/en/todo.rb
tdiary-3.2.2.20130727 misc/plugin/en/todo.rb
tdiary-3.2.2.20130722 misc/plugin/en/todo.rb
tdiary-3.2.2.20130720 misc/plugin/en/todo.rb
tdiary-3.2.2.20130617 misc/plugin/en/todo.rb
tdiary-3.2.2.20130614 misc/plugin/en/todo.rb
tdiary-3.2.2.20130604 misc/plugin/en/todo.rb
tdiary-3.2.2.20130527 misc/plugin/en/todo.rb
tdiary-3.2.2.20130518 misc/plugin/en/todo.rb
tdiary-3.2.2.20130508 misc/plugin/en/todo.rb
tdiary-3.2.2.20130507 misc/plugin/en/todo.rb