File: edit_today.rb

package info (click to toggle)
tdiary 5.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,092 kB
  • sloc: ruby: 23,031; javascript: 1,029; xml: 325; makefile: 26; sh: 2
file content (22 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# English resources of edit_today plugin.

@edit_today_caption = 'Edit'

def edit_today_edit_label( date )
	date.strftime( 'Edit %Y-%m-%d' )
end

def edit_today_conf_html
	<<-HTML
	<h3 class="subtitle">Link String</h3>
	<p>Specify string to link to edit page. If you have image file, you can specify icon on this link.</p>
	<p><input name="edit_today_caption" size="70" value="#{h @conf['edit_today.caption']}"></p>
	HTML
end

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