calender eintrag im compact view

This commit is contained in:
Andreas Stephanides
2014-02-16 15:34:33 +01:00
parent 82388150ff
commit b7c577d3b9
2 changed files with 8 additions and 4 deletions

View File

@@ -17,8 +17,11 @@
<% if neuigkeit.has_calentries? %>
<div class="pull-right" href="#">
<%= image_tag("/iconnavy/time.png") %>
<%= neuigkeit.calentries.first.text %>
<% unless neuigkeit.calentries.upcoming.empty? %>
<%= neuigkeit.calentries.upcoming.first.text %>
<% else unless neuigkeit.calentries.recent.empty? %>
<%= neuigkeit.calentries.recent.first.text %>
<% end %><% end %>
</div>
<% end %>