Sha256: 8e89fd26f5c565111842885a213f7821fe020c1e2658ac0d65fbc660cde0f3ca

Contents?: true

Size: 1.49 KB

Versions: 52

Compression:

Stored size: 1.49 KB

Contents

# plugin_checker.rb
#
# Copyright (c) 2012 MATSUOKA Kohei <kmachu@gmail.com>
# You can redistribute it and/or modify it under GPL2.
#

def plugin_checker_js_settings
	enable_js('plugin_checker.js')
	add_js_setting('$tDiary.plugins', plugins.to_json)
	add_js_setting('$tDiary.mode', @mode.to_json)
end

if /\A(form|edit|preview|showcomment)\z/ === @mode
  add_header_proc do
    <<-STYLE
    <style>
    div.plugin_checker {
      font-size: small;
      margin: 0.5em;
      padding: 0.5em;
      border: solid 1px #999;
	    border-radius: 5px;
	    -moz-box-shadow:0 1px 3px rgba(0,0,0,0.25),0 -1px 0 rgba(0,0,0,0.1) inset;
	    -webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25),0 -1px 0 rgba(0,0,0,0.1) inset;
	    box-shadow:0 1px 3px rgba(0,0,0,0.25),0 -1px 0 rgba(0,0,0,0.1) inset;
      background: #feffff; /* Old browsers */
      background: -moz-linear-gradient(top,  #feffff 0%, #fbfcd4 100%); /* FF3.6+ */
      background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#feffff), color-stop(100%,#fbfcd4)); /* Chrome,Safari4+ */
      background: -webkit-linear-gradient(top,  #feffff 0%,#fbfcd4 100%); /* Chrome10+,Safari5.1+ */
      background: -o-linear-gradient(top,  #feffff 0%,#fbfcd4 100%); /* Opera 11.10+ */
      background: -ms-linear-gradient(top,  #feffff 0%,#fbfcd4 100%); /* IE10+ */
      background: linear-gradient(to bottom,  #feffff 0%,#fbfcd4 100%); /* W3C */
    }
    div.plugin_checker ul {
      margin: 1em;
    }
    </style>
    STYLE
  end
  plugin_checker_js_settings
end

Version data entries

52 entries across 46 versions & 2 rubygems

Version Path
tdiary-contrib-5.3.0 plugin/plugin_checker.rb
tdiary-contrib-5.2.4 plugin/plugin_checker.rb
tdiary-contrib-5.2.3 plugin/plugin_checker.rb
tdiary-contrib-5.2.2 plugin/plugin_checker.rb
tdiary-contrib-5.2.1 plugin/plugin_checker.rb
tdiary-contrib-5.2.0 plugin/plugin_checker.rb
tdiary-contrib-5.1.7 plugin/plugin_checker.rb
tdiary-contrib-5.1.6 plugin/plugin_checker.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/plugin_checker.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/plugin/plugin_checker.rb
tdiary-contrib-5.1.5 plugin/plugin_checker.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/plugin_checker.rb
tdiary-contrib-5.1.4 plugin/plugin_checker.rb
tdiary-contrib-5.1.3 plugin/plugin_checker.rb
tdiary-contrib-5.1.2 plugin/plugin_checker.rb
tdiary-contrib-5.1.1 plugin/plugin_checker.rb
tdiary-contrib-5.1.0 plugin/plugin_checker.rb
tdiary-contrib-5.0.13 plugin/plugin_checker.rb
tdiary-contrib-5.0.12 plugin/plugin_checker.rb
tdiary-contrib-5.0.11 plugin/plugin_checker.rb