Sha256: 84b8644c16e3a78906ca29f8f73cf268bd302ccaf671d0255fbc2abdcfdf3d47
Contents?: true
Size: 1.3 KB
Versions: 54
Compression:
Stored size: 1.3 KB
Contents
<div class="space_center"></div> <div class="block"> <div class="content"> <% bow = (Time.now - 6.days).beginning_of_week %> <%= render :partial => 'events/calendar_month', :locals => { :position => :top, :date => bow.to_date } %> <table id="sidebar_calendar"> <% 28.times do |i| %> <% day = bow + i.days %> <%= raw cycle(*(Array.wrap("<tr>") + 6.times.map{""}) + Array.wrap(:name => "tr_start")) %> <td id="sidebar_day_<%= day.day %>_<%= day.month %>_<%= day.year %>"> <%= link_to day.day, polymorphic_path([profile_or_current_subject, Event.new], :date => day.to_i, :view => "agendaWeek") %> </td> <%= raw cycle(*(6.times.map{""} + Array.wrap('</tr>') + Array.wrap(:name => "tr_end"))) %> <% end %> </table> <%= javascript_tag do %> $(function(){ SocialStream.Calendar.init({ eventsPath: "<%= escape_javascript polymorphic_path([@current_subject, Event.new]) %>", start: "<%= bow.to_i %>", end: "<%= (bow + 28.days).to_i %>" }); }); <% end %> <%= render :partial => 'events/calendar_month', :locals => { :position => :bottom, :date => (bow + 28.days).to_date } %> </div> </div>
Version data entries
54 entries across 54 versions & 2 rubygems