From 1a2ee0964c7fb35920d7036c389cdcf882254328 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 24 May 2012 13:55:52 -0300 Subject: [PATCH] Adding hostpot for extra content on profile basic info --- app/views/profile_editor/_organization.rhtml | 2 ++ app/views/profile_editor/_person.rhtml | 2 ++ lib/noosfero/plugin.rb | 6 ++++++ test/functional/profile_editor_controller_test.rb | 43 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 53 insertions(+), 0 deletions(-) diff --git a/app/views/profile_editor/_organization.rhtml b/app/views/profile_editor/_organization.rhtml index e89ba28..9fedbd1 100644 --- a/app/views/profile_editor/_organization.rhtml +++ b/app/views/profile_editor/_organization.rhtml @@ -4,6 +4,8 @@ <%= required f.text_field(:name) %> + <%= @plugins.dispatch(:profile_info_extra_contents).collect { |content| instance_eval(&content) }.join("") %> + <% if @environment.enabled?('enable_organization_url_change') %>