annotate .svn/pristine/25/25dce4703e6f8e8002b5671dfd69151214860a9a.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 038ba2d95de8
children
rev   line source
Chris@1296 1 <table class="cal">
Chris@1296 2 <thead>
Chris@1296 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@1296 4 </thead>
Chris@1296 5 <tbody>
Chris@1296 6 <tr>
Chris@1296 7 <% day = calendar.startdt
Chris@1296 8 while day <= calendar.enddt %>
Chris@1296 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@1296 10 <td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %>">
Chris@1296 11 <p class="day-num"><%= day.day %></p>
Chris@1296 12 <% calendar.events_on(day).each do |i| %>
Chris@1296 13 <% if i.is_a? Issue %>
Chris@1296 14 <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip">
Chris@1296 15 <%= h("#{i.project} -") unless @project && @project == i.project %>
Chris@1296 16 <%= link_to_issue i, :truncate => 30 %>
Chris@1296 17 <span class="tip"><%= render_issue_tooltip i %></span>
Chris@1296 18 </div>
Chris@1296 19 <% else %>
Chris@1296 20 <span class="icon icon-package">
Chris@1296 21 <%= h("#{i.project} -") unless @project && @project == i.project %>
Chris@1296 22 <%= link_to_version i%>
Chris@1296 23 </span>
Chris@1296 24 <% end %>
Chris@1296 25 <% end %>
Chris@1296 26 </td>
Chris@1296 27 <%= '</tr><tr>'.html_safe if day.cwday==calendar.last_wday and day!=calendar.enddt %>
Chris@1296 28 <% day = day + 1
Chris@1296 29 end %>
Chris@1296 30 </tr>
Chris@1296 31 </tbody>
Chris@1296 32 </table>