require 'redmine'

require_dependency 'piwik_hooks'

Redmine::Plugin.register :piwik_plugin do
  name 'Piwik plugin'
  author 'Jörg Winter'
  description 'Redmine plugin to insert the Piwik tracking code into Redmine based on user roles.'
  url 'http://projekte.dev.b-net1.de/projects/bn1redminepiwik'
  author_url 'http://www.b-net1.de'

  version '0.1.1'

  requires_redmine :version_or_higher => '0.8.0'

  settings :default => {
    'piwik_log_url' => '',
    'piwik_log_id' => '',
    'piwik_log_anonymous' => true,
    'piwik_log_authenticated' => true,
    'piwik_log_administrator' => true
  }, :partial => 'settings/piwik_settings'


end

