Initial views.
[ecs.git] / app / views / admin / communities / show.html.haml.bak
blob7a8f4b29dc25d4609635b6874c182f6b125070ef
1 -#
2   Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012 Heiko Bernloehr (FreeIT.de).
3   
4   This file is part of ECS.
5   
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.
10   
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.
15   
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)
24   |
25   = link_to 'Back', admin_communities_url
27 .normal-skip
28   %span.box5
29     %label.box2.table-resource-label(for="community_name") Name:
30     = h @community.name
32 - unless @community.description.blank?
33   %p
34     .formular-input-width.table-border
35       .table-header
36         %label.table-resource-label Description (optional):
37       = @community.description.gsub(/\r\n/, '<BR>')
39 - unless (participants= Participant.for_community(@community)).blank?
40   %p
41     .show-output-width.table-border
42       .table-header
43         %label.table-resource-label Participants joining this community:
44     
45       %table.list(width="100%")
46         %tr(align="left")
47           %th ID:
48           %th Name:
49           %th Description:
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)
53             %td= participant.name
54             %td= h(participant.description).gsub(/\r\n/, '<BR>')
57   = link_to 'Edit', edit_admin_community_url(:id => @community)
58   |
59   = link_to 'Back', admin_communities_url