Files
fetsite/app/views/gremien/show.html.erb
Andreas Stephanides 9e26c49f0e theme_anpassung
2014-01-15 13:47:35 +01:00

41 lines
1.0 KiB
Plaintext

<%= render 'fetprofiles/tabs' %>
<p id="notice"><%= notice %></p>
<div class="content-wrap content-column">
<div class="container-fluid">
<div class="row-fluid">
<h1>
<%= @gremium.name %>
</h1>
<% Gremium::TYPEN[@gremium.typ.to_i].to_s %>
<p>
<%= @gremium.desc.html_safe %>
</p>
<% unless @gremium.thema.nil? %>
<p><%= link_to "Mehr zum Gremium lesen ..." ,themengruppe_path(@gremium.thema.themengruppe , {:thema=>@gremium.thema.id})%></p>
<% end %>
</div>
<% @memberships.each_slice(4) do |r| %>
<div class="row-fluid">
<% r.each do |m| %>
<%= link_to m.fetprofile do %>
<div class="span3" style="vertical-align:middle; text-align:center">
<%= image_tag m.fetprofile.try(:picture).try(:portrait) %>
<p>
<% if m.fetprofile.nil?%>
PROFIL fehlt
<% else %>
<%= m.fetprofile.name %> <br>
<%= render(m) %>
<% end %>
</p>
</div>
<% end %>
<% end %>
</div>
<% end %>
</div>
</div>
<%= link_to I18n.t('common.edit'), edit_gremium_path(@gremium) %>