Sha256: 5e0eca8c358d73595831a41a3eddd008603c39886a4e8d795837e60e577ac6a5

Contents?: true

Size: 1.33 KB

Versions: 39

Compression:

Stored size: 1.33 KB

Contents

# -*- coding: utf-8 -*-
#
# en/category-lite.rb : tDiary plugin for show category pages (light edition)
#
# Copyright (C) 2015 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>
	HTML
	r
end

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

Version data entries

39 entries across 34 versions & 2 rubygems

Version Path
tdiary-contrib-5.3.0 plugin/en/category-lite.rb
tdiary-contrib-5.2.4 plugin/en/category-lite.rb
tdiary-contrib-5.2.3 plugin/en/category-lite.rb
tdiary-contrib-5.2.2 plugin/en/category-lite.rb
tdiary-contrib-5.2.1 plugin/en/category-lite.rb
tdiary-contrib-5.2.0 plugin/en/category-lite.rb
tdiary-contrib-5.1.7 plugin/en/category-lite.rb
tdiary-contrib-5.1.6 plugin/en/category-lite.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/plugin/en/category-lite.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/en/category-lite.rb
tdiary-contrib-5.1.5 plugin/en/category-lite.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/en/category-lite.rb
tdiary-contrib-5.1.4 plugin/en/category-lite.rb
tdiary-contrib-5.1.3 plugin/en/category-lite.rb
tdiary-contrib-5.1.2 plugin/en/category-lite.rb
tdiary-contrib-5.1.1 plugin/en/category-lite.rb
tdiary-contrib-5.1.0 plugin/en/category-lite.rb
tdiary-contrib-5.0.13 plugin/en/category-lite.rb
tdiary-contrib-5.0.12 plugin/en/category-lite.rb
tdiary-contrib-5.0.11 plugin/en/category-lite.rb