studium +picture new Layout

This commit is contained in:
Andreas Stephanides
2013-09-30 21:18:04 +02:00
parent 5c4bc925e6
commit 2c91a8db7e
4 changed files with 38 additions and 21 deletions

View File

@@ -1,14 +1,20 @@
<%= link_to studium_path(studium, :ansicht=>'semesteransicht') ,{:class=>"studium"} do %>
<%= link_to studium_path(studium, :ansicht=>'semesteransicht') ,{:class=>"linkbox"} do %>
<div class="media">
<div class="pull-left">
<%= image_tag studium.picture.thumb.url %>
</div>
<h2>
<%= studium.name + " " + studium.zahl.to_s %>
</h2>
<p>
<b><%= studium.typ%> </b>
</p>
<p><b><%=I18n.t("studien.desc")%>:</b><br>
<div class="media-body">
<h2>
<%= studium.name + " " + studium.zahl.to_s %>
</h2>
<p>
<b><%= studium.typ%> </b>
</p>
<p><b><%=I18n.t("studien.desc")%>:</b><br>
<%= !(studium.desc.to_s == "") ? studium.desc.html_safe : I18n.t("keine.beschreibung")%>
</p>
</p>
</div>
</div>
<% end %>