From 515421060511b88b6bc36db6d9f1b309f1786069 Mon Sep 17 00:00:00 2001 From: ParleyMartins Date: Thu, 16 Oct 2014 09:24:26 -0300 Subject: [PATCH] Implement new rule of profile tabs. --- lib/ext/profile_helper.rb | 3 +++ views/profile/_profile_tab.html.erb | 7 +------ 2 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 lib/ext/profile_helper.rb diff --git a/lib/ext/profile_helper.rb b/lib/ext/profile_helper.rb new file mode 100644 index 0000000..bb28642 --- /dev/null +++ b/lib/ext/profile_helper.rb @@ -0,0 +1,3 @@ +module ProfileHelper extend ProfileHelper + PERSON_CATEGORIES[:mpog_profile_information] = [:secondary_email, :institutions] +end diff --git a/views/profile/_profile_tab.html.erb b/views/profile/_profile_tab.html.erb index ce58c54..4fc67b0 100644 --- a/views/profile/_profile_tab.html.erb +++ b/views/profile/_profile_tab.html.erb @@ -1,8 +1,3 @@ - - - - - <%= display_field(_('Secondary E-mail:'), profile, :secondary_email, true) %> - <%= display_field(_('Institution:'), profile, :institutions, true) %> + <%= display_mpog_profile_information %>
<%= _('Mpog Profile Information')%>
-- libgit2 0.21.2