Files
fetsite/app/views/gremien/show.html.erb
Andreas Stephanides 9a2bf17e81 fetprofile redesign
2014-10-27 15:40:12 +01:00

63 lines
1.4 KiB
Plaintext

<%= render 'fetprofiles/tabs' %>
<div class="content-wrap content-column">
<p id="notice"><%= notice %></p>
<div class="content-wrap content-column">
<%= link_to I18n.t('common.edit'), edit_gremium_path(@gremium) if can? :edit, @gremium%>
<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">
<% @nlinks.each do |l| %>
<li><%= render l.neuigkeit if can? :show, l.neuigkeit %></li>
<% end %>
</ul>
<%= paginate @nlinks, theme:'twitter-bootstrap' %>
</div>
</div>
</div>
</div>
</div>