css cleaning

git-svn-id: http://redmine.rubyforge.org/svn/trunk@108 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2006-12-24 16:35:25 +00:00
parent 6c8e1514aa
commit d3600e729f
19 changed files with 171 additions and 285 deletions
+9 -6
View File
@@ -25,18 +25,21 @@
</table>
<br />
<table class="calenderTable">
<tr class="ListHead">
<td></td>
<table class="list with-cells">
<thead>
<tr>
<th></th>
<% 1.upto(7) do |d| %>
<td align="center" width="14%"><%= day_name(d) %></td>
<th width="14%"><%= day_name(d) %></th>
<% end %>
</tr>
</thead>
<tbody>
<tr height="100">
<% day = @date_from
while day <= @date_to
if day.cwday == 1 %>
<td valign="middle"><%= day.cweek %></td>
<th><%= day.cweek %></th>
<% end %>
<td valign="top" width="14%" class="<%= day.month==@month ? "even" : "odd" %>">
<p align="right"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p>
@@ -58,9 +61,9 @@ while day <= @date_to
day = day + 1
end %>
</tr>
</tbody>
</table>
<br />
<%= image_tag 'arrow_from' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_day) %><br />
<%= image_tag 'arrow_to' %>&nbsp;&nbsp;<%= l(:text_tip_task_end_day) %><br />
<%= image_tag 'arrow_bw' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_end_day) %><br />
+5 -4
View File
@@ -1,12 +1,12 @@
<h2><%=l(:label_public_projects)%></h2>
<table class="listTableContent">
<tr class="ListHead">
<table class="list">
<thead><tr>
<%= sort_header_tag('name', :caption => l(:label_project)) %>
<th><%=l(:field_description)%></th>
<%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
</tr>
</tr></thead>
<tbody>
<% for project in @projects %>
<tr class="<%= cycle("odd", "even") %>">
<td><%= link_to project.name, :action => 'show', :id => project %>
@@ -14,6 +14,7 @@
<td align="center"><%= format_date(project.created_on) %>
</tr>
<% end %>
</tbody>
</table>
<%= pagination_links_full @project_pages %>
+6 -5
View File
@@ -6,8 +6,8 @@
<% delete_allowed = authorize_for('versions', 'destroy_file') %>
<table class="listTableContent">
<tr class="ListHead">
<table class="list">
<thead><tr>
<th><%=l(:field_version)%></th>
<th><%=l(:field_filename)%></th>
<th><%=l(:label_date)%></th>
@@ -15,11 +15,11 @@
<th>D/L</th>
<th>MD5</th>
<% if delete_allowed %><th></th><% end %>
</tr>
</tr></thead>
<tbody>
<% for version in @versions %>
<% unless version.attachments.empty? %>
<tr><td colspan="7"><%= image_tag 'package' %> <b><%= version.name %></b></td></tr>
<tr><th colspan="7" align="left"><%= image_tag 'package' %> <b><%= version.name %></b></th></tr>
<% for file in version.attachments %>
<tr class="<%= cycle("odd", "even") %>">
<td></td>
@@ -40,4 +40,5 @@
reset_cycle %>
<% end %>
<% end %>
</tbody>
</table>
+17 -27
View File
@@ -38,54 +38,44 @@
<p><i><%= l(:label_no_data) %></i></p>
<% else %>
&nbsp;
<table class="listTableContent">
<tr>
<td colspan="6" align="left"><small><%= check_all_links 'issues_form' %></small></td>
<td colspan="2" align="right">
<small><%= l(:label_per_page) %>:</small>
<%= start_form_tag %>
<%= select_tag 'per_page', options_for_select(@results_per_page_options, @results_per_page), :class => 'select-small'%>
<%= submit_tag l(:button_apply), :class => 'button-small'%>
<%= end_form_tag %>
</td>
</tr>
</table>
<%= start_form_tag({:controller => 'projects', :action => 'move_issues', :id => @project}, :id => 'issues_form' ) %>
<table class="listTableContent">
<tr class="ListHead">
<td></td>
<table class="list">
<thead><tr>
<th></th>
<%= sort_header_tag('issues.id', :caption => '#') %>
<%= sort_header_tag('issue_statuses.name', :caption => l(:field_status)) %>
<%= sort_header_tag('issues.tracker_id', :caption => l(:field_tracker)) %>
<%= sort_header_tag('issue_statuses.name', :caption => l(:field_status)) %>
<th><%=l(:field_subject)%></th>
<%= sort_header_tag('users.lastname', :caption => l(:field_author)) %>
<%= sort_header_tag('issues.created_on', :caption => l(:field_created_on)) %>
<%= sort_header_tag('issues.updated_on', :caption => l(:field_updated_on)) %>
</tr>
</tr></thead>
<tbody>
<% for issue in @issues %>
<tr class="<%= cycle("odd", "even") %>">
<td width="15"><%= check_box_tag "issue_ids[]", issue.id %></td>
<td align="center"><%= link_to issue.long_id, :controller => 'issues', :action => 'show', :id => issue %></td>
<td align="center" style="font-weight:bold;color:#<%= issue.status.html_color %>;"><%= issue.status.name %></font></td>
<th width="15"><%= check_box_tag "issue_ids[]", issue.id %></th>
<td align="center"><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
<td align="center"><%= issue.tracker.name %></td>
<td><div class="square" style="background:#<%= issue.status.html_color %>;"></div> <%= issue.status.name %></td>
<td><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></td>
<td align="center"><%= issue.author.display_name %></td>
<td align="center"><%= format_time(issue.created_on) %></td>
<td align="center"><%= format_time(issue.updated_on) %></td>
</tr>
<% end %>
<% end %>
</tbody>
</table>
<div class="contextual">
<%= l(:label_export_to) %>
<%= link_to 'CSV', {:action => 'export_issues_csv', :id => @project}, :class => 'pic picCsv' %>,
<%= link_to 'CSV', {:action => 'export_issues_csv', :id => @project}, :class => 'icon file' %>,
<%= link_to 'PDF', {:action => 'export_issues_pdf', :id => @project}, :class => 'pic picPdf' %>
</div>
<p>
<%= submit_tag l(:button_move), :class => "button-small" %>
<%= end_form_tag %>
&nbsp;
<%= pagination_links_full @issue_pages %>
[ <%= @issue_pages.current.first_item %> - <%= @issue_pages.current.last_item %> / <%= @issue_count %> ]
</p>
<%= submit_tag l(:button_move) %>
<%= end_form_tag %>
<% end %>
<% end %>