Sha256: 973f677871deb0713ec4d4c3cbe63a8608397650b766900546f3dd0a75e4cc06
Contents?: true
Size: 1.33 KB
Versions: 4
Compression:
Stored size: 1.33 KB
Contents
<%= div_for event do %> <%= link_to event, :class => "event_date" do %> <div class="event_date_image"> <div class="event_day"> <%= event.start_at.day %> </div> <div class="event_month"> <%= l event.start_at, :format => "%b" %> </div> <% unless event.all_day? %> <div class="event_hour"> <%= l event.start_at, :format => "%H:%M" %> </div> <% end %> </div> <% end %> <%= javascript_tag do %> var d = new Date(<%= 1000*event.start_at.to_i %>); $("#<%= dom_id event %> .event_day").text($.datepicker.formatDate('d', d)); $("#<%= dom_id event %> .event_month").text($.datepicker.formatDate('M', d)); if($("#<%= dom_id event %> .event_hour").length) { var minutes = d.getMinutes(); if (minutes<10) minutes = "0" + minutes; $("#<%= dom_id event %> .event_hour").text(d.getHours() + ':' + minutes); } <% end %> <div class="event_poster"> <%= event_timeline_thumb(event) %> <% if can? :update, event %> <div class="event_poster_update"> <%= link_to t('event.poster.update'), edit_event_path(event, :poster => true), :remote => true %> </div> <% end %> </div> <div class="event_details"> <div class="title"> <%= link_to event.title, event %> </div> </div> <% end %> <div class="clearfloat"></div>
Version data entries
4 entries across 4 versions & 2 rubygems