2 Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Heiko Bernloehr (FreeIT.de).
4 This file is part of ECS.
6 ECS is free software: you can redistribute it and/or modify it
7 under the terms of the GNU Affero General Public License as
8 published by the Free Software Foundation, either version 3 of
9 the License, or (at your option) any later version.
11 ECS is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Affero General Public License for more details.
16 You should have received a copy of the GNU Affero General Public
17 License along with ECS. If not, see <http://www.gnu.org/licenses/>.
20 %h1.box1 Show Community
23 = link_to 'Edit', edit_admin_community_url(:id => @community)
25 = link_to 'Back', admin_communities_url
29 %label.box2.table-resource-label(for="community_name") Name:
32 - unless @community.description.blank?
34 .formular-input-width.table-border
36 %label.table-resource-label Description (optional):
37 = @community.description.gsub(/\r\n/, '<BR>')
39 - unless (participants= Participant.for_community(@community)).blank?
41 .show-output-width.table-border
43 %label.table-resource-label Participants joining this community:
45 %table.list(width="100%")
50 - participants.each do |participant|
51 %tr{:class => [cycle('list-line-odd', 'list-line-even')]}
52 %td= link_to h(participant.id), admin_participant_path(participant)
54 %td= h(participant.description).gsub(/\r\n/, '<BR>')
57 = link_to 'Edit', edit_admin_community_url(:id => @community)
59 = link_to 'Back', admin_communities_url