Commit 8d0004fb60952d76ec787bc0ad1add1a08103f70

Authored by Antonio Terceiro
1 parent d1078127

ActionItem1044: displaying number of members for organizations

Showing 1 changed file with 5 additions and 3 deletions   Show diff stats
app/views/profile/_organization.rhtml
@@ -3,13 +3,15 @@ @@ -3,13 +3,15 @@
3 </tr> 3 </tr>
4 <%= display_field(_('Name:'), profile, :name) { |name| link_to name, profile.url } %> 4 <%= display_field(_('Name:'), profile, :name) { |name| link_to name, profile.url } %>
5 <tr> 5 <tr>
6 - <td colspan='2'>  
7 - <%= link_to _('Members'), :controller => 'profile', :action => 'members' %> 6 + <td></td>
  7 + <td>
  8 + <%= link_to _('Members') + " (%s)" % profile.members.count, :controller => 'profile', :action => 'members' %>
8 </td> 9 </td>
9 </tr> 10 </tr>
10 <% if profile.kind_of?(Enterprise) && !profile.environment.enabled?('disable_products_for_enterprises') %> 11 <% if profile.kind_of?(Enterprise) && !profile.environment.enabled?('disable_products_for_enterprises') %>
11 <tr> 12 <tr>
12 - <td colspan='2'> 13 + <td></td>
  14 + <td>
13 <%= link_to _('Products/Services'), :controller => 'catalog', :action => 'index' %> 15 <%= link_to _('Products/Services'), :controller => 'catalog', :action => 'index' %>
14 </td> 16 </td>
15 </tr> 17 </tr>