<% #-- # Copyright (C) 2010 Tero Hänninen # Copyright (C) 2010 Marko Peltola # 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) -%>

<%=h @group.name -%>

<%= render_markdown(@group.description) %>
<% pull_box("Members") do -%> <% if @memberships.empty? -%>
  • None
<% end -%> <% @memberships.group_by(&:role).each do |role, memberships| -%>
  • <%=h role.name -%>s
      <% memberships.each do |membership| -%>
    • <%= avatar(membership.user, :size => 16, :style => "tiny") %> <%= link_to h(membership.user.title), user_path(membership.user) -%>
    • <% end -%>
    <% end -%>
<% end -%> <% pull_box("Team repositories") do -%>
    <% if @group.repositories.mainlines.empty? -%>
  • None
  • <% end -%> <% @group.repositories.mainlines.each do |repository| -%> <% if repository.can_be_viewed_by?(current_user, logged_in?) -%>
  • <%= link_to "#{h(repository.project.title)}/#{h(repository.name)}", group_project_repository_path(@group, repository.project, repository) -%> <%= paragraphs_with_more render_markdown(repository.description), repository.id -%>
  • <% end -%> <% end -%>
<% end -%>

Team activity

<%= render :partial => "events/events", :locals => { :events => @events } -%> <% content_for :sidebar do -%>
  • <%= image_tag @group.avatar.url(:thumb) %>
  • <% if @group.creator -%>
  • Started by: <%= link_to h(@group.creator.title), @group.creator -%>
  • <% end -%>
  • Created: <%= @group.created_at.to_s(:short) -%>
<% end -%>