1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#
# en/category.rb : tDiary plugin for show category pages
#
# Copyright (C) 2016 TADA Tadashi
# Distributed under the GPL2 or any later version.
#
@category_conf_label = 'Category'
def category_conf_html
r = <<-HTML
<h3 class="subtitle">Build category index</h3>
<p>
To use the category feature, you should build category index.
Check the box below and press OK to build category index.
</p>
<p><label for="category_initialize">
<input type="checkbox" id="category_initialize" name="category_initialize" value="1">Build category index
</label></p>
<p>
It takes several or several tens of second to create it. But your diaries are many or the server has low spec, it will be timeout. Rebuild index on off-line again.
</p>
<h3 class="subtitle">Edit Support</h3>
<p>
Category names can be shown under the 'Article' form.
</p>
<p>
<select name="category.edit_support">
<option value="1"#{" selected" if @conf['category.edit_support'] == 1}>Flat List</option>
<option value="2"#{" selected" if @conf['category.edit_support'] == 2}>Dropdown List/option>
<option value="0"#{" selected" if @conf['category.edit_support'] == 0}>Hide</option>
</select>
</p>
<h3 class="subtitle">Display Order</h3>
<p><label for="category.show_reverse">
<input type="checkbox" id="category.show_reverse" name="category.show_reverse" value="true"#{" checked" if @conf['category.show_reverse']}>Sorts the list from newest to oldest
</label></p>
HTML
r
end
# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End:
# vim: ts=3
|