Project

General

Profile

Defect #5440 » views_thead.patch

Alain Alain091, 2010-05-06 22:40

View differences:

enumerations/list.rhtml (working copy)
<% enumerations = klass.shared %>
<% if enumerations.any? %>
<table class="list">
<table class="list"><thead>
<tr>
<th><%= l(:field_name) %></th>
<th style="width:15%;"><%= l(:field_is_default) %></th>
<th style="width:15%;"><%= l(:field_active) %></th>
<th style="width:15%;"></th>
<th align="center" style="width:10%;"> </th>
</tr>
</tr></thead>
<% enumerations.each do |enumeration| %>
<tr class="<%= cycle('odd', 'even') %>">
<td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td>
groups/_memberships.html.erb (working copy)
<div class="splitcontentleft">
<% if @group.memberships.any? %>
<table class="list memberships">
<thead>
<thead><tr>
<th><%= l(:label_project) %></th>
<th><%= l(:label_role_plural) %></th>
<th style="width:15%"></th>
</thead>
</tr></thead>
<tbody>
<% @group.memberships.each do |membership| %>
<% next if membership.new_record? %>
groups/_users.html.erb (working copy)
<div class="splitcontentleft">
<% if @group.users.any? %>
<table class="list users">
<thead>
<thead><tr>
<th><%= l(:label_user) %></th>
<th style="width:15%"></th>
</thead>
</tr></thead>
<tbody>
<% @group.users.sort.each do |user| %>
<tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>">
my/blocks/_timelog.rhtml (working copy)
<% if entries.any? %>
<table class="list time-entries">
<thead>
<thead><tr>
<th><%= l(:label_activity) %></th>
<th><%= l(:label_project) %></th>
<th><%= l(:field_comments) %></th>
<th><%= l(:field_hours) %></th>
<th></th>
</thead>
</tr></thead>
<tbody>
<% entries_by_day.keys.sort.reverse.each do |day| %>
<tr class="odd">
projects/settings/_activities.rhtml (working copy)
<% form_tag({:controller => 'projects', :action => 'save_activities', :id => @project}, :class => "tabular") do %>
<table class="list">
<tr>
<thead><tr>
<th><%= l(:field_name) %></th>
<th><%= l(:enumeration_system_activity) %></th>
<% TimeEntryActivity.new.available_custom_fields.each do |value| %>
<th><%= h value.name %></th>
<% end %>
<th style="width:15%;"><%= l(:field_active) %></th>
</tr>
</tr></thead>
<% @project.activities(true).each do |enumeration| %>
<% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
projects/settings/_boards.rhtml (working copy)
<% if @project.boards.any? %>
<table class="list">
<thead>
<thead><tr>
<th><%= l(:label_board) %></th>
<th><%= l(:field_description) %></th>
<th></th>
<th></th>
</thead>
</tr></thead>
<tbody>
<% @project.boards.each do |board|
next if board.new_record? %>
projects/settings/_issue_categories.rhtml (working copy)
<% if @project.issue_categories.any? %>
<table class="list">
<thead>
<thead><tr>
<th><%= l(:label_issue_category) %></th>
<th><%= l(:field_assigned_to) %></th>
<th></th>
</thead>
</tr></thead>
<tbody>
<% for category in @project.issue_categories %>
<% unless category.new_record? %>
projects/settings/_members.rhtml (working copy)
<div class="splitcontentleft">
<% if members.any? %>
<table class="list members">
<thead>
<thead><tr>
<th><%= l(:label_user) %> / <%= l(:label_group) %></th>
<th><%= l(:label_role_plural) %></th>
<th style="width:15%"></th>
<%= call_hook(:view_projects_settings_members_table_header, :project => @project) %>
</thead>
</tr></thead>
<tbody>
<% members.each do |member| %>
<% next if member.new_record? %>
projects/settings/_versions.rhtml (working copy)
<% if @project.shared_versions.any? %>
<table class="list versions">
<thead>
<thead><tr>
<th><%= l(:label_version) %></th>
<th><%= l(:field_effective_date) %></th>
<th><%= l(:field_description) %></th>
......
<th><%= l(:field_sharing) %></th>
<th><%= l(:label_wiki_page) unless @project.wiki.nil? %></th>
<th style="width:15%"></th>
</thead>
</tr></thead>
<tbody>
<% for version in @project.shared_versions.sort %>
<tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>">
users/_memberships.rhtml (working copy)
<div class="splitcontentleft">
<% if @user.memberships.any? %>
<table class="list memberships">
<thead>
<thead><tr>
<th><%= l(:label_project) %></th>
<th><%= l(:label_role_plural) %></th>
<th style="width:15%"></th>
<%= call_hook(:view_users_memberships_table_header, :user => @user )%>
</thead>
</tr></thead>
<tbody>
<% @user.memberships.each do |membership| %>
<% next if membership.new_record? %>
(3-3/3)