forked from bofh/fetsite
themengruppe -> linkbox
This commit is contained in:
@@ -1,15 +1,19 @@
|
|||||||
<%= link_to themengruppe,{:class=>'themengruppe'} do %>
|
<%= link_to themengruppe,{:class=>'linkbox'} do %>
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span2">
|
<div class="span6">
|
||||||
|
<div class="media">
|
||||||
|
<span class="pull-left">
|
||||||
<%= image_tag themengruppe.picture.thumb.url,{:class=>"img-rounded"} %>
|
<%= image_tag themengruppe.picture.thumb.url,{:class=>"img-rounded"} %>
|
||||||
</div>
|
</span>
|
||||||
<div class="span10">
|
<div class="media-body">
|
||||||
<h3><%=themengruppe.title%> </h3>
|
<h3><%=themengruppe.title%> </h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span12">
|
<div class="span6">
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<%= if themengruppe.text.split.size > Themengruppe::WORD_COUNT
|
<%= if themengruppe.text.split.size > Themengruppe::WORD_COUNT
|
||||||
themengruppe.text.split[0..Themengruppe::WORD_COUNT].join(" ") + " ..."
|
themengruppe.text.split[0..Themengruppe::WORD_COUNT].join(" ") + " ..."
|
||||||
@@ -18,12 +22,10 @@
|
|||||||
end%>
|
end%>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
<div class="span6">
|
||||||
<div class="span12">
|
<!--<b><%= I18n.t("themengruppe.themen") %></b>
|
||||||
<b><%= I18n.t("themengruppe.themen") %></b>
|
--><ul>
|
||||||
<ul>
|
|
||||||
<% themengruppe.themen.each do |t| %>
|
<% themengruppe.themen.each do |t| %>
|
||||||
<li>
|
<li>
|
||||||
<%= render t %>
|
<%= render t %>
|
||||||
@@ -31,5 +33,9 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
<div class="container-fluid">
|
<ul class="unstyled linkbox-list">
|
||||||
<% @themengruppen.each_slice(2) do |row| %>
|
<li>
|
||||||
<div class="row-fluid">
|
<% @themengruppen.each do |themengruppe| %>
|
||||||
<% row.each do |themengruppe| %>
|
|
||||||
<div class="span6 equalheight">
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<%= render themengruppe %>
|
<%= render themengruppe %>
|
||||||
<br/>
|
<br/>
|
||||||
@@ -12,12 +13,11 @@
|
|||||||
-->
|
-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</li>
|
||||||
<% end %>
|
</ul>
|
||||||
</div>
|
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user