Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated the project calendar for greater accessibility.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3769 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information...
commit 28519714e0dcd97cb61266d69dfdf5909d4acb88 1 parent f18c0c7
Eric Davis authored June 15, 2010
4  app/views/common/_calendar.rhtml
... ...
@@ -1,12 +1,12 @@
1 1
 <table class="cal">
2 2
 <thead>
3  
-<tr><td></td><% 7.times do |i| %><th><%= day_name( (calendar.first_wday+i)%7 ) %></th><% end %></tr>
  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 4
 </thead>
5 5
 <tbody>
6 6
 <tr>
7 7
 <% day = calendar.startdt
8 8
 while day <= calendar.enddt %>
9  
-<%= "<th>#{day.cweek}</th>" if day.cwday == calendar.first_wday %>
  9
+<%= "<td class='week-number' title='#{ l(:label_week) }'>#{day.cweek}</td>" if day.cwday == calendar.first_wday %>
10 10
 <td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %>">
11 11
 <p class="day-num"><%= day.day %></p>	
12 12
 <% calendar.events_on(day).each do |i| %>
5  public/stylesheets/application.css
@@ -519,10 +519,11 @@ vertical-align: bottom;
519 519
 
520 520
 /***** Calendar *****/
521 521
 table.cal {border-collapse: collapse; width: 100%; margin: 0px 0 6px 0;border: 1px solid #d7d7d7;}
522  
-table.cal thead th {width: 14%;}
  522
+table.cal thead th {width: 14%; background-color:#EEEEEE; padding: 4px; }
  523
+table.cal thead th.week-number {width: auto;}
523 524
 table.cal tbody tr {height: 100px;}
524  
-table.cal th { background-color:#EEEEEE; padding: 4px; }
525 525
 table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em;}
  526
+table.cal td.week-number { background-color:#EEEEEE; padding: 4px; border:none; font-size: 1em;}
526 527
 table.cal td p.day-num {font-size: 1.1em; text-align:right;}
527 528
 table.cal td.odd p.day-num {color: #bbb;}
528 529
 table.cal td.today {background:#ffffdd;}

0 notes on commit 2851971

Please sign in to comment.
Something went wrong with that request. Please try again.