Files
fetsite/app/views/gremien/show.html.erb
2014-05-08 15:53:46 +02:00

54 lines
1.2 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 thema_path(@gremium.thema) do%>
<%= fa_icon "book 2x border" %> Mehr über <%=@gremium.fall4 %> erfahren
<% end %>
</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 class="row-fluid">
<div class="span12">
<ul class="unstyled">
<% @gremium.nlinks.each do |l| %>
<li><%= render l.neuigkeit if can? :show, l.neuigkeit %></li>
<% end %>
</ul>
</div>
</div>
</div>
</div>
<%= link_to I18n.t('common.edit'), edit_gremium_path(@gremium) %>