%
  #--
  #   Copyright (C) 2012 Gitorious AS
  #   Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
  #
  #   This program is free software: you can redistribute it and/or modify
  #   it under the terms of the GNU Affero General Public License as published by
  #   the Free Software Foundation, either version 3 of the License, or
  #   (at your option) any later version.
  #
  #   This program is distributed in the hope that it will be useful,
  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #   GNU Affero General Public License for more details.
  #
  #   You should have received a copy of the GNU Affero General Public License
  #   along with this program.  If not, see .
  #++
  %>
<%= breadcrumbs_from(@group) -%>
  
    <%= pull_box("Members", :class => "pull-box-365") do -%>
      <%= render :partial => "#{@group.class.name.underscore}_members" %>
    <% end -%>
    <%= pull_box("Team repositories", :class => "pull-box-365") do -%>
      
        <% if @mainlines.empty? -%>
          - None
 
        <% end -%>
        <% @mainlines.each do |repository| -%>
          - 
            <%= link_to "#{h(repository.project.title)}/#{h(repository.name)}",
                project_repository_path(repository.project, repository) -%>
            
              <%= paragraphs_with_more render_markdown(repository.description), repository.id -%>
            
          
 
        <% end -%>
      
    <% end -%>
  
 
  
    <%= pull_box("Projects", :class => "pull-box-365") do -%>
      
        <% if @projects.empty? -%>
          - None
 
        <% end -%>
        <% @projects.each do |project| -%>
          - <%= link_to h(project.title), project -%>
 
        <% end -%>
      
    <% end -%>
    <%= pull_box("Repository clones", :class => "pull-box-365") do -%>
      
    <% end -%>
  
 
  
 
Team activity
<%= render :partial => "events/events", :locals => { :events => @events, :container_css_class => "w-750" } -%>
<%= content_for :sidebar do -%>
  <%=h @group.name -%>
  <%= render_markdown(@group.description) %>
  
  
    <% if group_admin?(@group, current_user) -%>
      <% if Team.can_have_members?(@group) -%>
        - <%= link_to t("views.groups.edit_memberships"), [@group, :memberships] -%>
 
        - <%= link_to t("views.memberships.add_new_member"),
                new_group_membership_path(@group) -%>
 
      <% end -%>
      - <%= link_to t('views.groups.edit_team'), edit_group_path(@group) %>
 
    <% end -%>
  
<% end -%>