Browse Source

shorten long line of app/views/common/_calendar.html.erb

git-svn-id: http://svn.redmine.org/redmine/trunk@20027 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Toshi MARUYAMA 3 years ago
parent
commit
5401a65a81
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      app/views/common/_calendar.html.erb

+ 6
- 1
app/views/common/_calendar.html.erb View File

@@ -2,7 +2,12 @@
<%= hidden_field_tag 'back_url', url_for(:params => request.query_parameters), :id => nil %>
<table class="cal">
<thead>
<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>
<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>

Loading…
Cancel
Save