mehrere Termine je neuigkeit

This commit is contained in:
Andreas Stephanides
2013-11-13 12:50:04 +01:00
parent 0b6ed94662
commit e62f5a2600
18 changed files with 69 additions and 26 deletions

View File

@@ -1,5 +1,9 @@
<div class="contentbox">
<%= image_tag("/icon_kalender_small.png") %>
<%= link_to I18n.l(calentry.start) +" bis "+ I18n.l(calentry.ende), calendar_path(calentry.calendar) %>
<% if calentry.start.to_date == calentry.ende.to_date
format=:timeonly
else
format =:default
end%>
<%= link_to I18n.l(calentry.start) +" bis "+ I18n.l(calentry.ende,:format=>format), calendar_path(calentry.calendar) %>
</div>