summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-06-15 23:20:32 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-06-15 23:20:32 +0000
commit28519714e0dcd97cb61266d69dfdf5909d4acb88 (patch)
tree38437b59e9b85a72ffe696217627e7d160831faa /app/views/common
parentf18c0c790b8df5b4a7ca63be5976349fc6b22abd (diff)
downloadredmine-28519714e0dcd97cb61266d69dfdf5909d4acb88.tar.gz
redmine-28519714e0dcd97cb61266d69dfdf5909d4acb88.zip
Updated the project calendar for greater accessibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3769 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/_calendar.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/common/_calendar.rhtml b/app/views/common/_calendar.rhtml
index 2a5d9ae2a..d0cf2a07a 100644
--- a/app/views/common/_calendar.rhtml
+++ b/app/views/common/_calendar.rhtml
@@ -1,12 +1,12 @@
<table class="cal">
<thead>
-<tr><td></td><% 7.times do |i| %><th><%= day_name( (calendar.first_wday+i)%7 ) %></th><% end %></tr>
+<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>
</thead>
<tbody>
<tr>
<% day = calendar.startdt
while day <= calendar.enddt %>
-<%= "<th>#{day.cweek}</th>" if day.cwday == calendar.first_wday %>
+<%= "<td class='week-number' title='#{ l(:label_week) }'>#{day.cweek}</td>" if day.cwday == calendar.first_wday %>
<td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %>">
<p class="day-num"><%= day.day %></p>
<% calendar.events_on(day).each do |i| %>