From c0e786385914481d4e017cd60d9e8a1a4aeff8ed Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 8 Aug 2013 09:22:55 -0300 Subject: [PATCH] Removing ApplicationHelper include from plugin --- plugins/google_analytics/lib/google_analytics_plugin.rb | 1 - plugins/google_analytics/views/profile-editor-extras.rhtml | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/google_analytics/lib/google_analytics_plugin.rb b/plugins/google_analytics/lib/google_analytics_plugin.rb index 8ff1b8a..4508597 100644 --- a/plugins/google_analytics/lib/google_analytics_plugin.rb +++ b/plugins/google_analytics/lib/google_analytics_plugin.rb @@ -6,7 +6,6 @@ class GoogleAnalyticsPlugin < Noosfero::Plugin include ActionView::Helpers::FormHelper include ActionView::Helpers::UrlHelper include ActionView::Helpers::TagHelper - include ApplicationHelper def self.plugin_name "Google Analytics" diff --git a/plugins/google_analytics/views/profile-editor-extras.rhtml b/plugins/google_analytics/views/profile-editor-extras.rhtml index 07173c4..478fbd9 100644 --- a/plugins/google_analytics/views/profile-editor-extras.rhtml +++ b/plugins/google_analytics/views/profile-editor-extras.rhtml @@ -1,3 +1,5 @@ +<% extend ApplicationHelper %> +

<%= _('Statistics') %>

<%= labelled_form_field(_('Google Analytics Profile ID'), text_field(:profile_data, :google_analytics_profile_id, :value => profile_id)) %> <%= link_to(_('See how to configure statistics for your profile'), '/doc/plugins/google_analytics', :target => '_blank') %> -- libgit2 0.21.2