links überarbeitet

This commit is contained in:
Andreas Stephanides
2013-08-27 20:43:16 +02:00
parent 58a5802dac
commit a38eec97a5
5 changed files with 69 additions and 44 deletions

View File

@@ -1,20 +1,41 @@
<p id="notice"><%= notice %></p>
<%= render 'fetprofiles/tabs' %>
<h1>
<%= @gremium.name %>
</h1>
<p>
<%= @gremium.desc %>
</p>
<% @gremium.memberships.order(:typ).active.each do |m| %>
<%= image_tag m.fetprofile.picture.portrait %>
<%= m.fetprofile.name + " ist" + render(m) %>
<% end %>
<p>
<%= Gremium::TYPEN[@gremium.typ.to_i].to_s %>
</p>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<%= render 'fetprofiles/tabs' %>
<p id="notice"><%= notice %></p>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<h1>
<%= @gremium.name %>
</h1>
<% Gremium::TYPEN[@gremium.typ.to_i].to_s %>
<p>
<%= @gremium.desc %>
</p>
</div>
</div>
<%= link_to 'Edit', edit_gremium_path(@gremium) %> |
<% @gremium.memberships.order(:typ).active.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.picture.portrait %>
<p>
<%= m.fetprofile.name %> <br><%= render(m) %>
</p>
</div>
<% end %>
<% end %>
</div>
<% end %>
<%= link_to 'Edit', edit_gremium_path(@gremium) %> |
</div>
</div>
</div>