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

View File

@ -4,16 +4,16 @@
<h2><%=l(:label_project_plural)%></h2> <h2><%=l(:label_project_plural)%></h2>
<table class="listTableContent"> <table class="list">
<tr class="ListHead"> <thead><tr>
<%= sort_header_tag('name', :caption => l(:label_project)) %> <%= sort_header_tag('name', :caption => l(:label_project)) %>
<th><%=l(:field_description)%></th> <th><%=l(:field_description)%></th>
<th><%=l(:field_is_public)%></th> <th><%=l(:field_is_public)%></th>
<th><%=l(:label_subproject_plural)%></th> <th><%=l(:label_subproject_plural)%></th>
<%= sort_header_tag('created_on', :caption => l(:field_created_on)) %> <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
<th></th> <th></th>
</tr> </tr></thead>
<tbody>
<% for project in @projects %> <% for project in @projects %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td><%= link_to project.name, :controller => 'projects', :action => 'settings', :id => project %> <td><%= link_to project.name, :controller => 'projects', :action => 'settings', :id => project %>
@ -26,6 +26,7 @@
</td> </td>
</tr> </tr>
<% end %> <% end %>
</tbody>
</table> </table>
<p><%= pagination_links_full @project_pages %> <p><%= pagination_links_full @project_pages %>

View File

@ -4,28 +4,25 @@
<h2><%=l(:label_auth_source_plural)%></h2> <h2><%=l(:label_auth_source_plural)%></h2>
<table class="listTableContent"> <table class="list">
<tr class="ListHead"> <thead><tr>
<th><%=l(:field_name)%></th> <th><%=l(:field_name)%></th>
<th><%=l(:field_type)%></th> <th><%=l(:field_type)%></th>
<th><%=l(:field_host)%></th> <th><%=l(:field_host)%></th>
<th></th> <th></th>
<th></th> <th></th>
</tr> </tr></thead>
<tbody>
<% for source in @auth_sources %> <% for source in @auth_sources %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td><%= link_to source.name, :action => 'edit', :id => source%></td> <td><%= link_to source.name, :action => 'edit', :id => source%></td>
<td align="center"><%= source.auth_method_name %></td> <td align="center"><%= source.auth_method_name %></td>
<td align="center"><%= source.host %></td> <td align="center"><%= source.host %></td>
<td align="center"> <td align="center"><%= link_to l(:button_test), :action => 'test_connection', :id => source %></td>
<%= link_to l(:button_test), :action => 'test_connection', :id => source %> <td align="center"><%= button_to l(:button_delete), { :action => 'destroy', :id => source }, :confirm => l(:text_are_you_sure), :class => "button-small" %></td>
</td> </tr>
<td align="center">
<%= button_to l(:button_delete), { :action => 'destroy', :id => source }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
</td>
</tr>
<% end %> <% end %>
</tbody>
</table> </table>
<%= pagination_links_full @auth_source_pages %> <%= pagination_links_full @auth_source_pages %>

View File

@ -1,7 +1,7 @@
<h2><%=l(:label_custom_field_plural)%></h2> <h2><%=l(:label_custom_field_plural)%></h2>
<table class="listTableContent"> <table class="list">
<tr class="ListHead"> <thead><tr>
<th><%=l(:field_name)%></th> <th><%=l(:field_name)%></th>
<th><%=l(:field_type)%></th> <th><%=l(:field_type)%></th>
<th><%=l(:field_field_format)%></th> <th><%=l(:field_field_format)%></th>
@ -9,7 +9,8 @@
<th><%=l(:field_is_for_all)%></th> <th><%=l(:field_is_for_all)%></th>
<th><%=l(:label_used_by)%></th> <th><%=l(:label_used_by)%></th>
<th></th> <th></th>
</tr> </tr></thead>
<tbody>
<% for custom_field in @custom_fields %> <% for custom_field in @custom_fields %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td> <td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td>
@ -23,6 +24,7 @@
</td> </td>
</tr> </tr>
<% end %> <% end %>
</tbody>
</table> </table>
<%= pagination_links_full @custom_field_pages %> <%= pagination_links_full @custom_field_pages %>

View File

@ -4,26 +4,25 @@
<h2><%=l(:label_issue_status_plural)%></h2> <h2><%=l(:label_issue_status_plural)%></h2>
<table class="listTableContent"> <table class="list">
<tr class="ListHead"> <thead><tr>
<th><%=l(:field_status)%></th> <th><%=l(:field_status)%></th>
<th><%=l(:field_is_default)%></th> <th><%=l(:field_is_default)%></th>
<th><%=l(:field_is_closed)%></th> <th><%=l(:field_is_closed)%></th>
<th><%=l(:field_html_color)%></th>
<th></th> <th></th>
</tr> </tr></thead>
<tbody>
<% for status in @issue_statuses %> <% for status in @issue_statuses %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td><%= link_to status.name, :action => 'edit', :id => status %></td> <td><div class="square" style="background:#<%= status.html_color %>;"></div> <%= link_to status.name, :action => 'edit', :id => status %></td>
<td align="center"><%= image_tag 'true' if status.is_default? %></td> <td align="center"><%= image_tag 'true' if status.is_default? %></td>
<td align="center"><%= image_tag 'true' if status.is_closed? %></td> <td align="center"><%= image_tag 'true' if status.is_closed? %></td>
<td><div style="background-color:#<%= status.html_color %>">&nbsp</div></td>
<td align="center"> <td align="center">
<%= button_to l(:button_delete), { :action => 'destroy', :id => status }, :confirm => l(:text_are_you_sure), :class => "button-small" %> <%= button_to l(:button_delete), { :action => 'destroy', :id => status }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
</td> </td>
</tr> </tr>
<% end %> <% end %>
</tbody>
</table> </table>
<%= pagination_links_full @issue_status_pages %> <%= pagination_links_full @issue_status_pages %>

View File

@ -1,28 +1,25 @@
<% if issues.length > 0 %> <% if issues.length > 0 %>
<table cellspacing="0" cellpadding="1" width="100%" border="0" class="listTable"> <table class="list">
<tr><td> <thead><tr>
<table class="listTableContent">
<tr class="ListHead">
<th>#</th> <th>#</th>
<th><%=l(:field_tracker)%></th> <th><%=l(:field_tracker)%></th>
<th><%=l(:field_subject)%></th> <th><%=l(:field_subject)%></th>
</tr> </tr></thead>
<tbody>
<% for issue in issues %> <% for issue in issues %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td align="center" style="font-weight:bold;color:#<%= issue.status.html_color %>;"> <th align="center">
<%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %><br /> <%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %>
</td> </th>
<td><p class="small"><%= issue.project.name %> - <%= issue.tracker.name %><br /> <td><p class="small"><%= issue.project.name %> - <%= issue.tracker.name %><br />
<%= issue.status.name %> - <%= format_time(issue.updated_on) %></p></td> <%= issue.status.name %> - <%= format_time(issue.updated_on) %></p></td>
<td> <td>
<p class="small"><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></p> <p class="small"><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></p>
</td> </td>
</tr> </tr>
<% end %> <% end %>
</table> </tbody>
</td> </table>
</tr>
</table>
<% else %> <% else %>
<i><%=l(:label_no_data)%></i> <i><%=l(:label_no_data)%></i>
<% end %> <% end %>

View File

@ -91,7 +91,7 @@
<%= link_to l(:label_document_plural), {:controller => 'projects', :action => 'list_documents', :id => @project }, :class => "menuItem" %> <%= link_to l(:label_document_plural), {:controller => 'projects', :action => 'list_documents', :id => @project }, :class => "menuItem" %>
<%= link_to l(:label_member_plural), {:controller => 'projects', :action => 'list_members', :id => @project }, :class => "menuItem" %> <%= link_to l(:label_member_plural), {:controller => 'projects', :action => 'list_members', :id => @project }, :class => "menuItem" %>
<%= link_to l(:label_attachment_plural), {:controller => 'projects', :action => 'list_files', :id => @project }, :class => "menuItem" %> <%= link_to l(:label_attachment_plural), {:controller => 'projects', :action => 'list_files', :id => @project }, :class => "menuItem" %>
<%= link_to l(:label_repository), {:controller => 'repositories', :action => 'show', :id => @project}, :class => "menuItem" if @project.repository and !@project.repository.new_record? %></li> <%= link_to l(:label_repository), {:controller => 'repositories', :action => 'show', :id => @project}, :class => "menuItem" if @project.repository and !@project.repository.new_record? %>
<%= link_to_if_authorized l(:label_settings), {:controller => 'projects', :action => 'settings', :id => @project }, :class => "menuItem" %> <%= link_to_if_authorized l(:label_settings), {:controller => 'projects', :action => 'settings', :id => @project }, :class => "menuItem" %>
</div> </div>
<% end %> <% end %>

View File

@ -9,18 +9,19 @@
@issues ||= [] @issues ||= []
%> %>
<table class="calenderTable"> <table class="list with-cells">
<tr class="ListHead"> <thead><tr>
<td></td> <th></th>
<% 1.upto(7) do |d| %> <% 1.upto(7) do |d| %>
<td align="center" width="14%"><%= day_name(d) %></td> <th align="center" width="14%"><%= day_name(d) %></th>
<% end %> <% end %>
</tr> </tr></thead>
<tbdoy>
<tr height="100"> <tr height="100">
<% day = @date_from <% day = @date_from
while day <= @date_to while day <= @date_to
if day.cwday == 1 %> if day.cwday == 1 %>
<td valign="middle"><%= day.cweek %></td> <th valign="middle"><%= day.cweek %></th>
<% end %> <% end %>
<td valign="top" width="14%" class="<%= day.month==@month ? "even" : "odd" %>"> <td valign="top" width="14%" class="<%= day.month==@month ? "even" : "odd" %>">
<p align="right"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p> <p align="right"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p>
@ -42,4 +43,5 @@ while day <= @date_to
day = day + 1 day = day + 1
end %> end %>
</tr> </tr>
</tbody>
</table> </table>

View File

@ -25,18 +25,21 @@
</table> </table>
<br /> <br />
<table class="calenderTable"> <table class="list with-cells">
<tr class="ListHead"> <thead>
<td></td> <tr>
<th></th>
<% 1.upto(7) do |d| %> <% 1.upto(7) do |d| %>
<td align="center" width="14%"><%= day_name(d) %></td> <th width="14%"><%= day_name(d) %></th>
<% end %> <% end %>
</tr> </tr>
</thead>
<tbody>
<tr height="100"> <tr height="100">
<% day = @date_from <% day = @date_from
while day <= @date_to while day <= @date_to
if day.cwday == 1 %> if day.cwday == 1 %>
<td valign="middle"><%= day.cweek %></td> <th><%= day.cweek %></th>
<% end %> <% end %>
<td valign="top" width="14%" class="<%= day.month==@month ? "even" : "odd" %>"> <td valign="top" width="14%" class="<%= day.month==@month ? "even" : "odd" %>">
<p align="right"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p> <p align="right"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p>
@ -58,9 +61,9 @@ while day <= @date_to
day = day + 1 day = day + 1
end %> end %>
</tr> </tr>
</tbody>
</table> </table>
<br />
<%= image_tag 'arrow_from' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_day) %><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_to' %>&nbsp;&nbsp;<%= l(:text_tip_task_end_day) %><br />
<%= image_tag 'arrow_bw' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_end_day) %><br /> <%= image_tag 'arrow_bw' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_end_day) %><br />

View File

@ -1,12 +1,12 @@
<h2><%=l(:label_public_projects)%></h2> <h2><%=l(:label_public_projects)%></h2>
<table class="listTableContent"> <table class="list">
<tr class="ListHead"> <thead><tr>
<%= sort_header_tag('name', :caption => l(:label_project)) %> <%= sort_header_tag('name', :caption => l(:label_project)) %>
<th><%=l(:field_description)%></th> <th><%=l(:field_description)%></th>
<%= sort_header_tag('created_on', :caption => l(:field_created_on)) %> <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
</tr> </tr></thead>
<tbody>
<% for project in @projects %> <% for project in @projects %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td><%= link_to project.name, :action => 'show', :id => project %> <td><%= link_to project.name, :action => 'show', :id => project %>
@ -14,6 +14,7 @@
<td align="center"><%= format_date(project.created_on) %> <td align="center"><%= format_date(project.created_on) %>
</tr> </tr>
<% end %> <% end %>
</tbody>
</table> </table>
<%= pagination_links_full @project_pages %> <%= pagination_links_full @project_pages %>

View File

@ -6,8 +6,8 @@
<% delete_allowed = authorize_for('versions', 'destroy_file') %> <% delete_allowed = authorize_for('versions', 'destroy_file') %>
<table class="listTableContent"> <table class="list">
<tr class="ListHead"> <thead><tr>
<th><%=l(:field_version)%></th> <th><%=l(:field_version)%></th>
<th><%=l(:field_filename)%></th> <th><%=l(:field_filename)%></th>
<th><%=l(:label_date)%></th> <th><%=l(:label_date)%></th>
@ -15,11 +15,11 @@
<th>D/L</th> <th>D/L</th>
<th>MD5</th> <th>MD5</th>
<% if delete_allowed %><th></th><% end %> <% if delete_allowed %><th></th><% end %>
</tr> </tr></thead>
<tbody>
<% for version in @versions %> <% for version in @versions %>
<% unless version.attachments.empty? %> <% 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 %> <% for file in version.attachments %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td></td> <td></td>
@ -40,4 +40,5 @@
reset_cycle %> reset_cycle %>
<% end %> <% end %>
<% end %> <% end %>
</tbody>
</table> </table>

View File

@ -38,54 +38,44 @@
<p><i><%= l(:label_no_data) %></i></p> <p><i><%= l(:label_no_data) %></i></p>
<% else %> <% else %>
&nbsp; &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' ) %> <%= start_form_tag({:controller => 'projects', :action => 'move_issues', :id => @project}, :id => 'issues_form' ) %>
<table class="listTableContent"> <table class="list">
<thead><tr>
<tr class="ListHead"> <th></th>
<td></td>
<%= sort_header_tag('issues.id', :caption => '#') %> <%= 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('issues.tracker_id', :caption => l(:field_tracker)) %>
<%= sort_header_tag('issue_statuses.name', :caption => l(:field_status)) %>
<th><%=l(:field_subject)%></th> <th><%=l(:field_subject)%></th>
<%= sort_header_tag('users.lastname', :caption => l(:field_author)) %> <%= sort_header_tag('users.lastname', :caption => l(:field_author)) %>
<%= sort_header_tag('issues.created_on', :caption => l(:field_created_on)) %> <%= sort_header_tag('issues.created_on', :caption => l(:field_created_on)) %>
<%= sort_header_tag('issues.updated_on', :caption => l(:field_updated_on)) %> <%= sort_header_tag('issues.updated_on', :caption => l(:field_updated_on)) %>
</tr> </tr></thead>
<tbody>
<% for issue in @issues %> <% for issue in @issues %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td width="15"><%= check_box_tag "issue_ids[]", issue.id %></td> <th width="15"><%= check_box_tag "issue_ids[]", issue.id %></th>
<td align="center"><%= link_to issue.long_id, :controller => 'issues', :action => 'show', :id => issue %></td> <td align="center"><%= link_to issue.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>
<td align="center"><%= issue.tracker.name %></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><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></td>
<td align="center"><%= issue.author.display_name %></td> <td align="center"><%= issue.author.display_name %></td>
<td align="center"><%= format_time(issue.created_on) %></td> <td align="center"><%= format_time(issue.created_on) %></td>
<td align="center"><%= format_time(issue.updated_on) %></td> <td align="center"><%= format_time(issue.updated_on) %></td>
</tr> </tr>
<% end %> <% end %>
</tbody>
</table> </table>
<div class="contextual"> <div class="contextual">
<%= l(:label_export_to) %> <%= 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' %> <%= link_to 'PDF', {:action => 'export_issues_pdf', :id => @project}, :class => 'pic picPdf' %>
</div> </div>
<p>
<%= submit_tag l(:button_move), :class => "button-small" %>
<%= end_form_tag %>
&nbsp;
<%= pagination_links_full @issue_pages %> <%= pagination_links_full @issue_pages %>
[ <%= @issue_pages.current.first_item %> - <%= @issue_pages.current.last_item %> / <%= @issue_count %> ] [ <%= @issue_pages.current.first_item %> - <%= @issue_pages.current.last_item %> / <%= @issue_count %> ]
</p>
<%= submit_tag l(:button_move) %>
<%= end_form_tag %>
<% end %> <% end %>
<% end %> <% end %>

View File

@ -2,17 +2,17 @@
<p><i><%=l(:label_no_data)%></i></p> <p><i><%=l(:label_no_data)%></i></p>
<% else %> <% else %>
<% col_width = 70 / (@statuses.length+3) %> <% col_width = 70 / (@statuses.length+3) %>
<table class="reportTableContent"> <table class="list">
<tr> <thead><tr>
<td width="25%"></td> <th width="25%"></th>
<% for status in @statuses %> <% for status in @statuses %>
<td align="center" width="<%= col_width %>%" bgcolor="#<%= status.html_color %>"><small><%= status.name %></small></td> <th width="<%= col_width %>%" style="text-align:left;"><div class="square" style="background:#<%= status.html_color %>;"></div> <small><%= status.name %></small></th>
<% end %> <% end %>
<td align="center" width="<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></td> <th align="center" width="<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th>
<td align="center" width="<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></td> <th align="center" width="<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></th>
<td align="center" width="<%= col_width %>%"><strong><%=l(:label_total)%></strong></td> <th align="center" width="<%= col_width %>%"><strong><%=l(:label_total)%></strong></th>
</tr> </tr></thead>
<tbody>
<% for row in rows %> <% for row in rows %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project, <td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project,
@ -40,8 +40,9 @@
:set_filter => 1, :set_filter => 1,
"#{field_name}" => row.id, "#{field_name}" => row.id,
"status_id" => "*" %></td> "status_id" => "*" %></td>
<% end %>
</tr> </tr>
<% end %>
</tbody>
</table> </table>
<% end <% end
reset_cycle %> reset_cycle %>

View File

@ -1,14 +1,14 @@
<% if @statuses.empty? or rows.empty? %> <% if @statuses.empty? or rows.empty? %>
<p><i><%=l(:label_no_data)%></i></p> <p><i><%=l(:label_no_data)%></i></p>
<% else %> <% else %>
<table class="reportTableContent"> <table class="list">
<tr> <thead><tr>
<td width="25%"></td> <th width="25%"></th>
<td align="center" width="25%"><%=l(:label_open_issues_plural)%></td> <th align="center" width="25%"><%=l(:label_open_issues_plural)%></th>
<td align="center" width="25%"><%=l(:label_closed_issues_plural)%></td> <th align="center" width="25%"><%=l(:label_closed_issues_plural)%></th>
<td align="center" width="25%"><%=l(:label_total)%></td> <th align="center" width="25%"><%=l(:label_total)%></th>
</tr> </tr></thead>
<tbody>
<% for row in rows %> <% for row in rows %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project, <td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project,
@ -29,8 +29,9 @@
:set_filter => 1, :set_filter => 1,
"#{field_name}" => row.id, "#{field_name}" => row.id,
"status_id" => "*" %></td> "status_id" => "*" %></td>
<% end %>
</tr> </tr>
<% end %>
</tbody>
</table> </table>
<% end <% end
reset_cycle %> reset_cycle %>

View File

@ -4,12 +4,12 @@
<h2><%=l(:label_role_plural)%></h2> <h2><%=l(:label_role_plural)%></h2>
<table class="listTableContent"> <table class="list">
<tr class="ListHead"> <thead><tr>
<th><%=l(:label_role)%></th> <th><%=l(:label_role)%></th>
<th></th> <th></th>
</tr> </tr></thead>
<tbody>
<% for role in @roles %> <% for role in @roles %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td><%= link_to role.name, :action => 'edit', :id => role %></td> <td><%= link_to role.name, :action => 'edit', :id => role %></td>
@ -17,6 +17,7 @@
<%= button_to l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small" %> <%= button_to l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small" %>
</tr> </tr>
<% end %> <% end %>
</tbody>
</table> </table>
<%= pagination_links_full @role_pages %> <%= pagination_links_full @role_pages %>

View File

@ -4,12 +4,12 @@
<h2><%=l(:label_tracker_plural)%></h2> <h2><%=l(:label_tracker_plural)%></h2>
<table class="listTableContent"> <table class="list">
<tr class="ListHead"> <thead><tr>
<th><%=l(:label_tracker)%></th> <th><%=l(:label_tracker)%></th>
<th></th> <th></th>
</tr> </tr></thead>
<tbody>
<% for tracker in @trackers %> <% for tracker in @trackers %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td><%= link_to tracker.name, :action => 'edit', :id => tracker %></td> <td><%= link_to tracker.name, :action => 'edit', :id => tracker %></td>
@ -18,6 +18,7 @@
</td> </td>
</tr> </tr>
<% end %> <% end %>
</tbody>
</table> </table>
<%= pagination_links_full @tracker_pages %> <%= pagination_links_full @tracker_pages %>

View File

@ -4,8 +4,8 @@
<h2><%=l(:label_user_plural)%></h2> <h2><%=l(:label_user_plural)%></h2>
<table class="listTableContent"> <table class="list">
<tr class="ListHead"> <thead><tr>
<%= sort_header_tag('login', :caption => l(:field_login)) %> <%= sort_header_tag('login', :caption => l(:field_login)) %>
<%= sort_header_tag('firstname', :caption => l(:field_firstname)) %> <%= sort_header_tag('firstname', :caption => l(:field_firstname)) %>
<%= sort_header_tag('lastname', :caption => l(:field_lastname)) %> <%= sort_header_tag('lastname', :caption => l(:field_lastname)) %>
@ -14,8 +14,9 @@
<%= sort_header_tag('status', :caption => l(:field_status)) %> <%= sort_header_tag('status', :caption => l(:field_status)) %>
<%= sort_header_tag('created_on', :caption => l(:field_created_on)) %> <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
<%= sort_header_tag('last_login_on', :caption => l(:field_last_login_on)) %> <%= sort_header_tag('last_login_on', :caption => l(:field_last_login_on)) %>
<th></th> <th></th>
</tr> </tr></thead>
<tbody>
<% for user in @users %> <% for user in @users %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<td><%= link_to user.login, :action => 'edit', :id => user %></td> <td><%= link_to user.login, :action => 'edit', :id => user %></td>
@ -39,6 +40,7 @@
</td> </td>
</tr> </tr>
<% end %> <% end %>
</tbody>
</table> </table>
<p><%= pagination_links_full @user_pages %> <p><%= pagination_links_full @user_pages %>

View File

@ -49,7 +49,6 @@ color:#303030;
#header{ #header{
height:4.5em; height:4.5em;
/*width:758px;*/
margin:0; margin:0;
background:#467aa7; background:#467aa7;
color:#ffffff; color:#ffffff;
@ -60,7 +59,7 @@ margin-bottom:1px;
padding:10px 0 0 20px; padding:10px 0 0 20px;
font-size:2em; font-size:2em;
background-color:inherit; background-color:inherit;
color:#fff; /*rgb(152, 26, 33);*/ color:#fff;
letter-spacing:-1px; letter-spacing:-1px;
font-weight:bold; font-weight:bold;
font-family: Trebuchet MS,Georgia,"Times New Roman",serif; font-family: Trebuchet MS,Georgia,"Times New Roman",serif;
@ -79,7 +78,6 @@ font-family: Trebuchet MS,Georgia,"Times New Roman",serif;
#navigation{ #navigation{
height:2.2em; height:2.2em;
line-height:2.2em; line-height:2.2em;
/*width:758px;*/
margin:0; margin:0;
background:#578bb8; background:#578bb8;
color:#ffffff; color:#ffffff;
@ -105,7 +103,6 @@ display:block;
padding:0px 10px 0px 22px; padding:0px 10px 0px 22px;
font-size:0.8em; font-size:0.8em;
font-weight:normal; font-weight:normal;
/*text-transform:uppercase;*/
text-decoration:none; text-decoration:none;
background-color:inherit; background-color:inherit;
color: #ffffff; color: #ffffff;
@ -137,6 +134,16 @@ background-color: #80b0da;
.picCsv { background: url(../images/csv.png) no-repeat 4px 50%;} .picCsv { background: url(../images/csv.png) no-repeat 4px 50%;}
.pic { padding-left: 18px; margin-left: 3px; } .pic { padding-left: 18px; margin-left: 3px; }
.icon {
background-position: 0% 40%;
background-repeat: no-repeat;
padding-left: 20px;
}
.folder { background-image: url(../images/folder.png); }
.file { background-image: url(../images/file.png); }
/**************** Content styles ****************/ /**************** Content styles ****************/
html>body #content { html>body #content {
@ -145,13 +152,10 @@ min-height: 500px;
} }
#content{ #content{
/*float:right;*/
/*width:530px;*/
width: auto; width: auto;
height:500px; height:500px;
font-size:0.9em; font-size:0.9em;
padding:20px 10px 10px 20px; padding:20px 10px 10px 20px;
/*position: absolute;*/
margin-left: 120px; margin-left: 120px;
border-left: 1px dashed #c0c0c0; border-left: 1px dashed #c0c0c0;
@ -170,6 +174,7 @@ font-family: Trebuchet MS,Georgia,"Times New Roman",serif;
#content h2 a{font-weight:normal;} #content h2 a{font-weight:normal;}
#content h3{margin:0 0 12px 0; font-size:1.4em;color:#707070;font-family: Trebuchet MS,Georgia,"Times New Roman",serif;} #content h3{margin:0 0 12px 0; font-size:1.4em;color:#707070;font-family: Trebuchet MS,Georgia,"Times New Roman",serif;}
#content h4{font-size: 1em; margin-bottom: 12px; margin-top: 20px; font-weight: normal; border-bottom: dotted 1px #c0c0c0;}
#content a:hover,#subcontent a:hover{text-decoration:underline;} #content a:hover,#subcontent a:hover{text-decoration:underline;}
#content ul,#content ol{margin:0 5px 16px 35px;} #content ul,#content ol{margin:0 5px 16px 35px;}
#content dl{margin:0 5px 10px 25px;} #content dl{margin:0 5px 10px 25px;}
@ -179,37 +184,16 @@ font-family: Trebuchet MS,Georgia,"Times New Roman",serif;
/***********************************************/ /***********************************************/
/*
form{
padding:15px;
margin:0 0 20px 0;
border:1px solid #c0c0c0;
background-color:#CEE1ED;
width:600px;
}
*/
form { form {
display: inline; display: inline;
} }
.noborder {
border:0px;
background-color:#fff;
width:100%;
}
textarea {
padding:0;
margin:0;
}
blockquote { blockquote {
padding-left: 6px; padding-left: 6px;
border-left: 2px solid #ccc; border-left: 2px solid #ccc;
} }
input { input, select {
vertical-align: middle; vertical-align: middle;
} }
@ -218,30 +202,18 @@ input.button-small
font-size: 0.8em; font-size: 0.8em;
} }
select {
vertical-align: middle;
}
.select-small .select-small
{ {
border: 1px solid #7F9DB9;
padding: 1px;
font-size: 0.8em; font-size: 0.8em;
} }
.active-filter
{
background-color: #F9FA9E;
}
label { label {
font-weight: bold; font-weight: bold;
font-size: 1em; font-size: 1em;
} }
fieldset { fieldset {
border:1px solid #7F9DB9; border:1px solid #c0c0c0;
padding: 6px; padding: 6px;
} }
@ -254,56 +226,52 @@ legend {
color: #bb0000; color: #bb0000;
} }
table.listTableContent {
border:1px solid #578bb8;
width:100%;
border-collapse: collapse;
}
table.listTableContent td {
padding:2px;
}
tr.ListHead {
background-color:#467aa7;
color:#FFFFFF;
text-align:center;
}
tr.ListHead a {
color:#FFFFFF;
text-decoration:underline;
}
.odd { .odd {
background-color:#f0f1f2; background-color:#f6f7f8;
} }
.even { .even {
background-color: #fff; background-color: #fff;
} }
table.reportTableContent {
border:1px solid #c0c0c0;
width:99%;
border-collapse: collapse;
}
table.reportTableContent td {
padding:2px;
}
table.calenderTable {
border:1px solid #578bb8;
width:99%;
border-collapse: collapse;
}
table.calenderTable td {
border:1px solid #578bb8;
}
hr { border:none; border-bottom: dotted 1px #c0c0c0; } hr { border:none; border-bottom: dotted 1px #c0c0c0; }
div.square {
border: 1px solid #999;
float: left;
margin: .4em .5em 0 0;
overflow: hidden;
width: .6em; height: .6em;
}
table p {
margin:0;
padding:0;
}
/********** Table used to display lists of things ***********/
table.list {
width:100%;
border-collapse: collapse;
border: 1px dotted #d0d0d0;
margin-bottom: 6px;
}
table.with-cells td {
border: 1px solid #d7d7d7;
}
table.list thead th {
text-align: center;
background: #eee;
border: 1px solid #d7d7d7;
}
table.list tbody th {
font-weight: normal;
background: #eed;
border: 1px solid #d7d7d7;
}
/**************** Sidebar styles ****************/ /**************** Sidebar styles ****************/
@ -337,31 +305,10 @@ font-family: Trebuchet MS,Georgia,"Times New Roman",serif;
.menublock li ul li{margin-bottom:0;} .menublock li ul li{margin-bottom:0;}
.menublock li ul a{font-weight:normal;} .menublock li ul a{font-weight:normal;}
/**************** Searchbar styles ****************/
#searchbar{margin:0 0 20px 0;}
#searchbar form fieldset{margin-left:10px; border:0 solid;}
#searchbar #s{
height:1.2em;
width:110px;
margin:0 5px 0 0;
border:1px solid #a0a0a0;
}
#searchbar #searchbutton{
width:auto;
padding:0 1px;
border:1px solid #808080;
font-size:0.9em;
text-align:center;
}
/**************** Footer styles ****************/ /**************** Footer styles ****************/
#footer{ #footer{
clear:both; clear:both;
/*width:758px;*/
padding:5px 0; padding:5px 0;
margin:0; margin:0;
font-size:0.9em; font-size:0.9em;
@ -400,7 +347,6 @@ overflow:hidden;
width:12px; width:12px;
height:12px; height:12px;
background-repeat: no-repeat; background-repeat: no-repeat;
cursor:hand;
cursor:pointer; cursor:pointer;
background-image:url('../images/close.png'); background-image:url('../images/close.png');
} }
@ -438,12 +384,6 @@ line-height:1.5em;
cursor: move; cursor: move;
} }
.topright{
position: absolute;
right: 25px;
top: 100px;
}
.login { .login {
width: 50%; width: 50%;
text-align: left; text-align: left;
@ -455,14 +395,6 @@ img.calendar-trigger {
margin-left: 4px; margin-left: 4px;
} }
#history h4, #comments h4 {
font-size: 1em;
margin-bottom: 12px;
margin-top: 20px;
font-weight: normal;
border-bottom: dotted 1px #c0c0c0;
}
#history p { #history p {
margin-left: 34px; margin-left: 34px;
} }

View File

@ -3,7 +3,6 @@
} }
.jstEditor textarea, .jstEditor iframe { .jstEditor textarea, .jstEditor iframe {
margin: 0; margin: 0;
border: 1;
} }
.jstHandle { .jstHandle {

View File

@ -1,47 +1,8 @@
div.square {
border: 1px solid #999;
float: left;
margin: .4em .5em 0 0;
overflow: hidden;
width: .6em; height: .6em;
}
div.action_M { background: #fd8 } div.action_M { background: #fd8 }
div.action_D { background: #f88 } div.action_D { background: #f88 }
div.action_A { background: #bfb } div.action_A { background: #bfb }
table.list {
width:100%;
border-collapse: collapse;
border: 1px dotted #d0d0d0;
margin-bottom: 6px;
}
table.list thead th {
text-align: center;
background: #eee;
border: 1px solid #d7d7d7;
}
table.list tbody th {
font-weight: normal;
text-align: center;
background: #eed;
border: 1px solid #d7d7d7;
}
.icon {
background-position: 0% 40%;
background-repeat: no-repeat;
padding-left: 20px;
}
.folder { background-image: url(../images/folder.png); }
.file { background-image: url(../images/file.png); }
tr.spacing { tr.spacing {
border: 1px solid #d7d7d7; border: 1px solid #d7d7d7;
@ -58,9 +19,4 @@ tr.spacing {
.line-code { .line-code {
font-family: "Courier New", monospace; font-family: "Courier New", monospace;
font-size: 1em; font-size: 1em;
}
table p {
margin:0;
padding:0;
} }