Adds missing thead tags (#5440).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3734 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-05-09 11:19:15 +00:00
parent 36c82ecc1f
commit 0fa124a92c
10 changed files with 60 additions and 60 deletions

View File

@ -5,14 +5,14 @@
<% enumerations = klass.shared %> <% enumerations = klass.shared %>
<% if enumerations.any? %> <% if enumerations.any? %>
<table class="list"> <table class="list"><thead>
<tr> <tr>
<th><%= l(:field_name) %></th> <th><%= l(:field_name) %></th>
<th style="width:15%;"><%= l(:field_is_default) %></th> <th style="width:15%;"><%= l(:field_is_default) %></th>
<th style="width:15%;"><%= l(:field_active) %></th> <th style="width:15%;"><%= l(:field_active) %></th>
<th style="width:15%;"></th> <th style="width:15%;"></th>
<th align="center" style="width:10%;"> </th> <th align="center" style="width:10%;"> </th>
</tr> </tr></thead>
<% enumerations.each do |enumeration| %> <% enumerations.each do |enumeration| %>
<tr class="<%= cycle('odd', 'even') %>"> <tr class="<%= cycle('odd', 'even') %>">
<td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td> <td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td>

View File

@ -4,11 +4,11 @@
<div class="splitcontentleft"> <div class="splitcontentleft">
<% if @group.memberships.any? %> <% if @group.memberships.any? %>
<table class="list memberships"> <table class="list memberships">
<thead> <thead><tr>
<th><%= l(:label_project) %></th> <th><%= l(:label_project) %></th>
<th><%= l(:label_role_plural) %></th> <th><%= l(:label_role_plural) %></th>
<th style="width:15%"></th> <th style="width:15%"></th>
</thead> </tr></thead>
<tbody> <tbody>
<% @group.memberships.each do |membership| %> <% @group.memberships.each do |membership| %>
<% next if membership.new_record? %> <% next if membership.new_record? %>

View File

@ -1,10 +1,10 @@
<div class="splitcontentleft"> <div class="splitcontentleft">
<% if @group.users.any? %> <% if @group.users.any? %>
<table class="list users"> <table class="list users">
<thead> <thead><tr>
<th><%= l(:label_user) %></th> <th><%= l(:label_user) %></th>
<th style="width:15%"></th> <th style="width:15%"></th>
</thead> </tr></thead>
<tbody> <tbody>
<% @group.users.sort.each do |user| %> <% @group.users.sort.each do |user| %>
<tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>"> <tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>">

View File

@ -13,13 +13,13 @@ entries_by_day = entries.group_by(&:spent_on)
<% if entries.any? %> <% if entries.any? %>
<table class="list time-entries"> <table class="list time-entries">
<thead> <thead><tr>
<th><%= l(:label_activity) %></th> <th><%= l(:label_activity) %></th>
<th><%= l(:label_project) %></th> <th><%= l(:label_project) %></th>
<th><%= l(:field_comments) %></th> <th><%= l(:field_comments) %></th>
<th><%= l(:field_hours) %></th> <th><%= l(:field_hours) %></th>
<th></th> <th></th>
</thead> </tr></thead>
<tbody> <tbody>
<% entries_by_day.keys.sort.reverse.each do |day| %> <% entries_by_day.keys.sort.reverse.each do |day| %>
<tr class="odd"> <tr class="odd">

View File

@ -1,42 +1,42 @@
<% form_tag({:controller => 'projects', :action => 'save_activities', :id => @project}, :class => "tabular") do %> <% form_tag({:controller => 'projects', :action => 'save_activities', :id => @project}, :class => "tabular") do %>
<table class="list"> <table class="list">
<tr> <thead><tr>
<th><%= l(:field_name) %></th> <th><%= l(:field_name) %></th>
<th><%= l(:enumeration_system_activity) %></th> <th><%= l(:enumeration_system_activity) %></th>
<% TimeEntryActivity.new.available_custom_fields.each do |value| %> <% TimeEntryActivity.new.available_custom_fields.each do |value| %>
<th><%= h value.name %></th> <th><%= h value.name %></th>
<% end %> <% end %>
<th style="width:15%;"><%= l(:field_active) %></th> <th style="width:15%;"><%= l(:field_active) %></th>
</tr> </tr></thead>
<% @project.activities(true).each do |enumeration| %> <% @project.activities(true).each do |enumeration| %>
<% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %> <% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
<tr class="<%= cycle('odd', 'even') %>"> <tr class="<%= cycle('odd', 'even') %>">
<td> <td>
<%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %> <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
<%= h(enumeration) %> <%= h(enumeration) %>
</td> </td>
<td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td> <td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td>
<% enumeration.custom_field_values.each do |value| %> <% enumeration.custom_field_values.each do |value| %>
<td align="center"> <td align="center">
<%= custom_field_tag "enumerations[#{enumeration.id}]", value %> <%= custom_field_tag "enumerations[#{enumeration.id}]", value %>
</td> </td>
<% end %> <% end %>
<td align="center" style="width:15%;"> <td align="center" style="width:15%;">
<%= ff.check_box :active %> <%= ff.check_box :active %>
</td> </td>
</tr> </tr>
<% end %> <% end %>
<% end %> <% end %>
</table> </table>
<div class="contextual"> <div class="contextual">
<%= link_to(l(:button_reset), {:controller => 'projects', :action => 'reset_activities', :id => @project}, <%= link_to(l(:button_reset), {:controller => 'projects', :action => 'reset_activities', :id => @project},
:method => :delete, :method => :delete,
:confirm => l(:text_are_you_sure), :confirm => l(:text_are_you_sure),
:class => 'icon icon-del') %> :class => 'icon icon-del') %>
</div> </div>
<%= submit_tag l(:button_save) %> <%= submit_tag l(:button_save) %>
<% end %> <% end %>

View File

@ -1,11 +1,11 @@
<% if @project.boards.any? %> <% if @project.boards.any? %>
<table class="list"> <table class="list">
<thead> <thead><tr>
<th><%= l(:label_board) %></th> <th><%= l(:label_board) %></th>
<th><%= l(:field_description) %></th> <th><%= l(:field_description) %></th>
<th></th> <th></th>
<th></th> <th></th>
</thead> </tr></thead>
<tbody> <tbody>
<% @project.boards.each do |board| <% @project.boards.each do |board|
next if board.new_record? %> next if board.new_record? %>

View File

@ -1,10 +1,10 @@
<% if @project.issue_categories.any? %> <% if @project.issue_categories.any? %>
<table class="list"> <table class="list">
<thead> <thead><tr>
<th><%= l(:label_issue_category) %></th> <th><%= l(:label_issue_category) %></th>
<th><%= l(:field_assigned_to) %></th> <th><%= l(:field_assigned_to) %></th>
<th></th> <th></th>
</thead> </tr></thead>
<tbody> <tbody>
<% for category in @project.issue_categories %> <% for category in @project.issue_categories %>
<% unless category.new_record? %> <% unless category.new_record? %>

View File

@ -5,12 +5,12 @@
<div class="splitcontentleft"> <div class="splitcontentleft">
<% if members.any? %> <% if members.any? %>
<table class="list members"> <table class="list members">
<thead> <thead><tr>
<th><%= l(:label_user) %> / <%= l(:label_group) %></th> <th><%= l(:label_user) %> / <%= l(:label_group) %></th>
<th><%= l(:label_role_plural) %></th> <th><%= l(:label_role_plural) %></th>
<th style="width:15%"></th> <th style="width:15%"></th>
<%= call_hook(:view_projects_settings_members_table_header, :project => @project) %> <%= call_hook(:view_projects_settings_members_table_header, :project => @project) %>
</thead> </tr></thead>
<tbody> <tbody>
<% members.each do |member| %> <% members.each do |member| %>
<% next if member.new_record? %> <% next if member.new_record? %>

View File

@ -1,6 +1,6 @@
<% if @project.shared_versions.any? %> <% if @project.shared_versions.any? %>
<table class="list versions"> <table class="list versions">
<thead> <thead><tr>
<th><%= l(:label_version) %></th> <th><%= l(:label_version) %></th>
<th><%= l(:field_effective_date) %></th> <th><%= l(:field_effective_date) %></th>
<th><%= l(:field_description) %></th> <th><%= l(:field_description) %></th>
@ -8,7 +8,7 @@
<th><%= l(:field_sharing) %></th> <th><%= l(:field_sharing) %></th>
<th><%= l(:label_wiki_page) unless @project.wiki.nil? %></th> <th><%= l(:label_wiki_page) unless @project.wiki.nil? %></th>
<th style="width:15%"></th> <th style="width:15%"></th>
</thead> </tr></thead>
<tbody> <tbody>
<% for version in @project.shared_versions.sort %> <% for version in @project.shared_versions.sort %>
<tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>"> <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>">

View File

@ -4,12 +4,12 @@
<div class="splitcontentleft"> <div class="splitcontentleft">
<% if @user.memberships.any? %> <% if @user.memberships.any? %>
<table class="list memberships"> <table class="list memberships">
<thead> <thead><tr>
<th><%= l(:label_project) %></th> <th><%= l(:label_project) %></th>
<th><%= l(:label_role_plural) %></th> <th><%= l(:label_role_plural) %></th>
<th style="width:15%"></th> <th style="width:15%"></th>
<%= call_hook(:view_users_memberships_table_header, :user => @user )%> <%= call_hook(:view_users_memberships_table_header, :user => @user )%>
</thead> </tr></thead>
<tbody> <tbody>
<% @user.memberships.each do |membership| %> <% @user.memberships.each do |membership| %>
<% next if membership.new_record? %> <% next if membership.new_record? %>