%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%> <%= hidden_field_tag 'back_url', url_for(:params => request.query_parameters), :id => nil %>
<%= day.day %> (<%= abbr_day_name(day.cwday) %>)
<% calendar.events_on(day).each do |i| %> <% if i.is_a? Issue %> <% starting = day == i.start_date %> <% ending = day == i.due_date %> <%= tag.div class: [ i.css_classes, 'tooltip hascontextmenu', starting: starting, ending: ending] do %> <%= "#{i.project} -" unless @project && @project == i.project %> <%= sprite_icon('bullet-go') if starting && starting != ending %> <%= sprite_icon('bullet-end') if ending && starting != ending %> <%= sprite_icon('bullet-go-end') if starting && ending %> <%= link_to_issue i, :truncate => 30 %> <%= render_issue_tooltip i %> <%= check_box_tag 'ids[]', i.id, false, :style => 'display:none;', :id => nil %> <% end %> <% else %> <%= sprite_icon 'package' %> <%= "#{i.project} -" unless @project && @project == i.project %> <%= link_to_version i %> <% end %> <% end %>