Kleine Anpassungen Calentry

This commit is contained in:
Andreas Stephanides
2013-08-11 17:05:56 +02:00
parent a5a02e065a
commit ff31ba6bff
3 changed files with 7 additions and 6 deletions

View File

@@ -11,6 +11,9 @@ class Calentry < ActiveRecord::Base
def start_time
start
end
def start1
start.to_date
end
def name
summary
end

View File

@@ -10,7 +10,7 @@
<ul class="list-group">
<% @calendar.calentries.each do |entry| %>
<li class="list-group-item">
<%= link_to entry.summary+ " - " + I18n.l(entry.start), entry %>
<%= link_to entry.summary+ " - " + I18n.l(entry.start1), entry %>
</li>
<% end %>
</ul>