annotate .svn/pristine/25/25dce4703e6f8e8002b5671dfd69151214860a9a.svn-base @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents
children
rev   line source
Chris@1295 1 <table class="cal">
Chris@1295 2 <thead>
Chris@1295 3 <tr><th scope="col" title="<%= l(:label_week) %>" class="week-number"></th><% 7.times do |i| %><th scope="col"><%= day_name( (calendar.first_wday+i)%7 ) %></th><% end %></tr>
Chris@1295 4 </thead>
Chris@1295 5 <tbody>
Chris@1295 6 <tr>
Chris@1295 7 <% day = calendar.startdt
Chris@1295 8 while day <= calendar.enddt %>
Chris@1295 9 <%= ("<td class='week-number' title='#{ l(:label_week) }'>#{(day+(11-day.cwday)%7).cweek}</td>".html_safe) if day.cwday == calendar.first_wday %>
Chris@1295 10 <td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %>">
Chris@1295 11 <p class="day-num"><%= day.day %></p>
Chris@1295 12 <% calendar.events_on(day).each do |i| %>
Chris@1295 13 <% if i.is_a? Issue %>
Chris@1295 14 <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip">
Chris@1295 15 <%= h("#{i.project} -") unless @project && @project == i.project %>
Chris@1295 16 <%= link_to_issue i, :truncate => 30 %>
Chris@1295 17 <span class="tip"><%= render_issue_tooltip i %></span>
Chris@1295 18 </div>
Chris@1295 19 <% else %>
Chris@1295 20 <span class="icon icon-package">
Chris@1295 21 <%= h("#{i.project} -") unless @project && @project == i.project %>
Chris@1295 22 <%= link_to_version i%>
Chris@1295 23 </span>
Chris@1295 24 <% end %>
Chris@1295 25 <% end %>
Chris@1295 26 </td>
Chris@1295 27 <%= '</tr><tr>'.html_safe if day.cwday==calendar.last_wday and day!=calendar.enddt %>
Chris@1295 28 <% day = day + 1
Chris@1295 29 end %>
Chris@1295 30 </tr>
Chris@1295 31 </tbody>
Chris@1295 32 </table>