34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
<div class="media">
|
|
<div class="pull-left">
|
|
<p><br>
|
|
<% unless neuigkeit.picture_robust.url.nil? %><%= image_tag neuigkeit.picture_robust.thumb.url %>
|
|
<% end %> </p>
|
|
</div>
|
|
<div class="media-body">
|
|
<div>
|
|
<small><%= ff_icon(neuigkeit.rubrik.icon) unless neuigkeit.rubrik.icon.nil? or neuigkeit.rubrik.icon.empty? %> <span><%= neuigkeit.rubrik.name %></span></small>
|
|
<% unless neuigkeit.has_calentries? || neuigkeit.has_meeting? %> <small class="pull-right"><% unless neuigkeit.try(:datum).try(:to_date).nil? %>
|
|
<%= I18n.t("neuigkeit.am") %>
|
|
<span datetime="<%= neuigkeit.try(:datum).to_formatted_s(:iso8601) unless neuigkeit.try(:datum).nil? %>"> <%= I18n.l(neuigkeit.try(:datum).try(:to_date))%> </span>
|
|
<% end %> </small> <% else %> <% end %>
|
|
</div>
|
|
<h1 >
|
|
<%= neuigkeit.title%>
|
|
</h1><div>
|
|
<%= raw(neuigkeit.text_first_words) unless neuigkeit.text.nil?%></div>
|
|
</div>
|
|
<% if neuigkeit.has_calentries? %>
|
|
<div class="pull-right" href="#">
|
|
<%= fa_icon("calendar 2x") %>
|
|
<%= neuigkeit.relevant_calentry.text %>
|
|
</div>
|
|
<% elsif neuigkeit.has_meeting? %>
|
|
<div class="pull-right" href="#">
|
|
<%= fa_icon("calendar 2x") %>
|
|
<%= neuigkeit.meeting.calentry.text %>
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|