forked from bofh/fetsite
CHANGE: Layout auf CSS umgestellt
This commit is contained in:
@@ -1,18 +1,34 @@
|
|||||||
|
<div class="row-fluid">
|
||||||
<h3> <%= link_to themengruppe.title, themengruppe %> </h3>
|
<div class="span2">
|
||||||
<p>
|
<%= image_tag themengruppe.picture.thumb.url,{:class=>"img-circle"} %>
|
||||||
<%= if themengruppe.text.split.size > Themengruppe::WORD_COUNT
|
</div>
|
||||||
themengruppe.text.split[0..Themengruppe::WORD_COUNT].join(" ") + " ..."
|
<div class="span10">
|
||||||
else
|
<h3><%= link_to themengruppe.title, themengruppe %> </h3>
|
||||||
themengruppe.text
|
</div>
|
||||||
end%>
|
</div>
|
||||||
</p>
|
|
||||||
<br/>
|
<br/>
|
||||||
<b><%= I18n.t("themengruppe.themen") %></b>
|
<div class="row-fluid">
|
||||||
<ul>
|
<div class="span12">
|
||||||
<% themengruppe.themen.each do |t| %>
|
<p>
|
||||||
<li>
|
<%= if themengruppe.text.split.size > Themengruppe::WORD_COUNT
|
||||||
<%= render t %>
|
themengruppe.text.split[0..Themengruppe::WORD_COUNT].join(" ") + " ..."
|
||||||
</li>
|
else
|
||||||
<% end %>
|
themengruppe.text
|
||||||
</ul>
|
end%>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row-fluid">
|
||||||
|
<div class="span12">
|
||||||
|
<b><%= I18n.t("themengruppe.themen") %></b>
|
||||||
|
<ul>
|
||||||
|
<% themengruppe.themen.each do |t| %>
|
||||||
|
<li>
|
||||||
|
<%= render t %>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +1,23 @@
|
|||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
<% @themengruppen.each_slice(2) do |row| %>
|
||||||
<% @themengruppen.each_slice(2) do |row| %>
|
<div class="row-fluid">
|
||||||
<div class="row-fluid">
|
<% row.each do |themengruppe| %>
|
||||||
<% row.each do |themengruppe| %>
|
<div class="span6 equalheight">
|
||||||
<div class="span6 equalheight">
|
<div class="container-fluid">
|
||||||
<div class="themengruppe">
|
<%= render themengruppe %>
|
||||||
<%= render themengruppe %>
|
<br/>
|
||||||
<p>
|
<div class="row-fluid">
|
||||||
<%= link_to 'Edit', edit_themengruppe_path(themengruppe) %>
|
<%= link_to 'Edit', edit_themengruppe_path(themengruppe) %>
|
||||||
</p>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<br/>
|
||||||
<% end %>
|
</div>
|
||||||
</div>
|
<% end %>
|
||||||
<% end %>
|
</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
|
||||||
|
<br/>
|
||||||
|
|
||||||
<script class="hidden-phone">
|
<script class="hidden-phone">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user