annotate .svn/pristine/bb/bbeaa4adc5af51c51d47294e768410269cf13b7e.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 <table class="cal">
Chris@909 2 <thead>
Chris@909 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@909 4 </thead>
Chris@909 5 <tbody>
Chris@909 6 <tr>
Chris@909 7 <% day = calendar.startdt
Chris@909 8 while day <= calendar.enddt %>
Chris@909 9 <%= "<td class='week-number' title='#{ l(:label_week) }'>#{(day+(11-day.cwday)%7).cweek}</td>" if day.cwday == calendar.first_wday %>
Chris@909 10 <td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %>">
Chris@909 11 <p class="day-num"><%= day.day %></p>
Chris@909 12 <% calendar.events_on(day).each do |i| %>
Chris@909 13 <% if i.is_a? Issue %>
Chris@909 14 <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip">
Chris@909 15 <%= h("#{i.project} -") unless @project && @project == i.project %>
Chris@909 16 <%= link_to_issue i, :truncate => 30 %>
Chris@909 17 <span class="tip"><%= render_issue_tooltip i %></span>
Chris@909 18 </div>
Chris@909 19 <% else %>
Chris@909 20 <span class="icon icon-package">
Chris@909 21 <%= h("#{i.project} -") unless @project && @project == i.project %>
Chris@909 22 <%= link_to_version i%>
Chris@909 23 </span>
Chris@909 24 <% end %>
Chris@909 25 <% end %>
Chris@909 26 </td>
Chris@909 27 <%= '</tr><tr>' if day.cwday==calendar.last_wday and day!=calendar.enddt %>
Chris@909 28 <% day = day + 1
Chris@909 29 end %>
Chris@909 30 </tr>
Chris@909 31 </tbody>
Chris@909 32 </table>