Commit b75cdb5c1812d787d3cf9a1942e5e5f854b00e90

Authored by Antonio Terceiro
2 parents 008249ef a4ea1622

Merge branch 'AI3180-profile-tabs-wrong' into 'master'

AI3180: profile tabs wrong

When we create a new tab to put more informations in profile's informations, we cannot indicate if the tab is shown in the beginning or not.

ActionItem3077: http://noosfero.org/Development/ActionItem3180

See merge request !247
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/profile/index.html.erb
... ... @@ -19,7 +19,7 @@
19 19 <table class='profile'>
20 20 <tr>
21 21 <td colspan='2'>
22   - <% plugins_tabs = @plugins.dispatch(:profile_tabs).map { |tab| {:title => tab[:title], :id => tab[:id], :content => instance_exec(&tab[:content]), :start => tab[:title]} }%>
  22 + <% plugins_tabs = @plugins.dispatch(:profile_tabs).map { |tab| {:title => tab[:title], :id => tab[:id], :content => instance_exec(&tab[:content]), :start => tab[:start]} }%>
23 23  
24 24 <% tabs = plugins_tabs.select { |tab| tab[:start] } %>
25 25  
... ...