forked from bofh/fetsite
29 lines
809 B
Plaintext
Executable File
29 lines
809 B
Plaintext
Executable File
|
|
<%= link_to [neuigkeit.rubrik,neuigkeit], {class: :linkbox} do %>
|
|
<div class="media">
|
|
<div class="pull-left" href="#">
|
|
<p><br><%= image_tag neuigkeit.picture.thumb.url unless neuigkeit.picture.url.nil? %>
|
|
</p>
|
|
</div>
|
|
<div class="media-body">
|
|
<div>
|
|
<small><%= neuigkeit.rubrik.name %></small>
|
|
<small class="pull-right"> <%= "am "+ I18n.l(neuigkeit.try(:datum).try(:to_date)) unless neuigkeit.try(:datum).try(:to_date).nil? %></small>
|
|
</div>
|
|
<h1>
|
|
<%= neuigkeit.title%>
|
|
</h1>
|
|
<%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%>
|
|
</div>
|
|
<% if neuigkeit.has_calentries? %>
|
|
<div class="pull-right" href="#">
|
|
<%= image_tag("/iconnavy/time.png") %>
|
|
|
|
<%= neuigkeit.calentries.first.text %>
|
|
</div>
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|