diff --git a/config/initializers/show_for.rb b/config/initializers/show_for.rb new file mode 100644 index 0000000..30b4835 --- /dev/null +++ b/config/initializers/show_for.rb @@ -0,0 +1,38 @@ +# Use this setup block to configure all options available in ShowFor. +ShowFor.setup do |config| + # The tag which wraps show_for calls. + # config.show_for_tag = :div + + # The tag which wraps each attribute/association call. Default is :p. + # config.wrapper_tag = :dl + + # The tag used to wrap each label. Default is :strong. + # config.label_tag = :dt + + # The tag used to wrap each content (value). Default is nil. + # config.content_tag = :dd + + # The DOM class set for blank content tags. Default is "blank". + # config.blank_content_class = 'no_content' + + # The separator between label and content. Default is "
". + # config.separator = "
" + + # The tag used to wrap collections. Default is :ul. + # config.collection_tag = :ul + + # The default iterator to be used when invoking a collection/association. + # config.default_collection_proc = lambda { |value| "
  • #{value}
  • " } + + # The default format to be used in I18n when localizing a Date/Time. + # config.i18n_format = :default + + # Whenever a association is given, the first method in association_methods + # in which the association responds to is used to retrieve the association labels. + # config.association_methods = [ :name, :title, :to_s ] + + # If you want to wrap the text inside a label (e.g. to append a semicolon), + # specify label_proc - it will be automatically called, passing in the label text. + # config.label_proc = lambda { |l| l + ":" } + config.label_class = 'label label-danger' +end diff --git a/config/locales/show_for.en.yml b/config/locales/show_for.en.yml new file mode 100644 index 0000000..32fa462 --- /dev/null +++ b/config/locales/show_for.en.yml @@ -0,0 +1,5 @@ +en: + show_for: + blank: "Not specified" + "yes": "Yes" + "no": "No" diff --git a/config/locales/show_for.tr.yml b/config/locales/show_for.tr.yml new file mode 100644 index 0000000..9b47abb --- /dev/null +++ b/config/locales/show_for.tr.yml @@ -0,0 +1,5 @@ +tr: + show_for: + blank: "Belirtilmemiş" + "yes": "Evet" + "no": "Hayır"