To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 25 / 25dce4703e6f8e8002b5671dfd69151214860a9a.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.22 KB)
| 1 | 1296:038ba2d95de8 | Chris | <table class="cal"> |
|---|---|---|---|
| 2 | <thead> |
||
| 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> |
||
| 4 | </thead> |
||
| 5 | <tbody> |
||
| 6 | <tr> |
||
| 7 | <% day = calendar.startdt |
||
| 8 | while day <= calendar.enddt %> |
||
| 9 | <%= ("<td class='week-number' title='#{ l(:label_week) }'>#{(day+(11-day.cwday)%7).cweek}</td>".html_safe) if day.cwday == calendar.first_wday %>
|
||
| 10 | <td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %>"> |
||
| 11 | <p class="day-num"><%= day.day %></p> |
||
| 12 | <% calendar.events_on(day).each do |i| %> |
||
| 13 | <% if i.is_a? Issue %> |
||
| 14 | <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip"> |
||
| 15 | <%= h("#{i.project} -") unless @project && @project == i.project %>
|
||
| 16 | <%= link_to_issue i, :truncate => 30 %> |
||
| 17 | <span class="tip"><%= render_issue_tooltip i %></span> |
||
| 18 | </div> |
||
| 19 | <% else %> |
||
| 20 | <span class="icon icon-package"> |
||
| 21 | <%= h("#{i.project} -") unless @project && @project == i.project %>
|
||
| 22 | <%= link_to_version i%> |
||
| 23 | </span> |
||
| 24 | <% end %> |
||
| 25 | <% end %> |
||
| 26 | </td> |
||
| 27 | <%= '</tr><tr>'.html_safe if day.cwday==calendar.last_wday and day!=calendar.enddt %> |
||
| 28 | <% day = day + 1 |
||
| 29 | end %> |
||
| 30 | </tr> |
||
| 31 | </tbody> |
||
| 32 | </table> |