neuigkeiten ->linkbox

This commit is contained in:
Andreas Stephanides
2013-09-26 10:11:30 +02:00
parent 9894213eb4
commit 62ac5a031d
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<%= link_to [neuigkeit.rubrik,neuigkeit] do %> <%= link_to [neuigkeit.rubrik,neuigkeit], {class: :linkbox} do %>
<div class="media neuigkeit_block"> <div class="media">
<div class="pull-left" href="#"> <div class="pull-left" href="#">
<p><br><%= image_tag neuigkeit.picture.thumb.url unless neuigkeit.picture.url.nil? %> <p><br><%= image_tag neuigkeit.picture.thumb.url unless neuigkeit.picture.url.nil? %>
</p> </p>
@@ -14,5 +14,5 @@
<%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%> <%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%>
</div> </div>
</div> </div>
<br>
<% end %> <% end %>

View File

@@ -1,7 +1,7 @@
<%= render 'tabs' %> <%= render 'tabs' %>
<h1><%= I18n.t("rubrik.title")%></h1> <h1><%= I18n.t("rubrik.title")%></h1>
<ul class="unstyled" style="max-width:70em"> <ul class="unstyled linkbox-list" style="max-width:70em">
<% @neuigkeiten.each do |n| %> <% @neuigkeiten.each do |n| %>
<li><%= render n %> </li> <li><%= render n %> </li>
<% end %> <% end %>