_organization.rhtml 1.96 KB

<tr>
  <td colspan='2'>
    <div class='ui-tabs'>
      
      <ul>
        <% if logged_in? && current_person.follows?(@profile) %>
          <li class='tab'><a href='#profile-wall'><%= _('Wall') %></a></li>
        <% end %>
        <li class='tab'><a href='#profile-network'><%= _('What\'s new') %></a></li>
        <li class='tab'><a href='#community-profile'><%= _('Profile') %></a></li>
      </ul>

      <% if logged_in? && current_person.follows?(@profile) %>
        <%= render :partial => 'profile_wall' %>
      <% end %>
      <%= render :partial => 'profile_network' %>

      <div id='community-profile'>
        <table>
          <tr>
            <th colspan='2'><%= _('Basic information')%></th>
          </tr>
          
          <tr>
            <td class='field-name'><%= _('Members') %></td>
            <td>
              <%= link_to profile.members.count, :controller => 'profile', :action => 'members' %>
            </td>
          </tr>
          
          <%= display_field(_('Type:'), profile, :privacy_setting, true) %>
          
          <%= display_field(_('Location:'), profile, :location, true) %>
          
          <tr>
            <td class='field-name'><%= _('Created at:')  %></td>
            <td><%= show_date(profile.created_at) %></td>
          </tr>
          
          <% if profile.kind_of?(Enterprise) && !profile.environment.enabled?('disable_products_for_enterprises') %>
            <tr>
              <td></td>
              <td>
                <%= link_to _('Products/Services'), :controller => 'catalog', :action => 'index' %>
              </td>
            </tr>
          <% end %>
          
          <tr>
            <td class='field-name'><%= _('Administrators:') %></td>
            <td>
              <%= profile.admins.map { |admin| link_to(admin.short_name, admin.url)}.join(', ') %>
            </td>
          </tr>
          
          <%= render :partial => 'common' %>
        </table>
      </div>
    </div>
  </td>
</tr>