]> source.dussan.org Git - redmine.git/commitdiff
XHTML compliance improvements
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 5 Jan 2007 19:10:57 +0000 (19:10 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 5 Jan 2007 19:10:57 +0000 (19:10 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@150 e93f8b46-1217-0410-a6f0-8f06a7374b81

18 files changed:
app/views/issues/show.rhtml
app/views/layouts/base.rhtml
app/views/projects/activity.rhtml
app/views/projects/calendar.rhtml
app/views/projects/gantt.rhtml
app/views/projects/list.rhtml
app/views/projects/list_issues.rhtml
app/views/projects/show.rhtml
app/views/queries/_filters.rhtml
app/views/reports/_details.rhtml
app/views/reports/_simple.rhtml
app/views/repositories/_dir_list.rhtml
app/views/repositories/browse.rhtml
app/views/repositories/diff.rhtml
app/views/repositories/revision.rhtml
app/views/repositories/revisions.rhtml
app/views/repositories/show.rhtml
public/stylesheets/application.css

index a6fb46604fc890b7f36fbe991c37662f80c4b5ea..208e5be12fd6c58e07d87bbb4060c84e10da56b3 100644 (file)
@@ -7,8 +7,8 @@
 <div class="box">\r
 <table width="100%">\r
 <tr>\r
-    <td width="15%"><b><%=l(:field_status)%> :</b></td><td width="35%"><%= @issue.status.name %></td>\r
-    <td width="15%"><b><%=l(:field_priority)%> :</b></td><td width="35%"><%= @issue.priority.name %></td>\r
+    <td style="width:15%"><b><%=l(:field_status)%> :</b></td><td style="width:35%"><%= @issue.status.name %></td>\r
+    <td style="width:15%"><b><%=l(:field_priority)%> :</b></td><td style="width:35%"><%= @issue.priority.name %></td>\r
 </tr>\r
 <tr>\r
     <td><b><%=l(:field_assigned_to)%> :</b></td><td><%= @issue.assigned_to ? @issue.assigned_to.name : "-" %></td>\r
index 0f7be43a36144112818bc1a77575988b59aa45f3..56ffbcf8053d20907828af66326254e9ca78988c 100644 (file)
@@ -49,7 +49,7 @@
                <li class="submenu"><%= link_to l(:label_administration), { :controller => 'admin' }, :class => "picAdmin", :onmouseover => "buttonMouseover(event, 'menuAdmin');" %></li>\r
        <% end %>\r
                        \r
-       <li class="right"><%= link_to l(:label_help), { :controller => 'help', :ctrl => params[:controller], :page => params[:action] }, :target => "new", :class => "picHelp" %></li>\r
+       <li class="right"><%= link_to l(:label_help), { :controller => 'help', :ctrl => params[:controller], :page => params[:action] }, :onclick => "window.open(this.href); return false;", :class => "picHelp" %></li>\r
        \r
        <% if loggedin? %>\r
                <li class="right"><%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => "picUser" %></li>  \r
        <div id="footer">\r
                <p>\r
                <%= auto_link $RDM_FOOTER_SIG %> |\r
-               <a href="http://redmine.rubyforge.org/" target="_new"><%= RDM_APP_NAME %></a> <%= RDM_APP_VERSION %>\r
+               <a href="http://redmine.rubyforge.org/"><%= RDM_APP_NAME %></a> <%= RDM_APP_VERSION %>\r
                </p>\r
        </div>\r
 \r
index 9a4a07aff9995d450841030092f900fca0f3c662..cb7a3bfe18ceba1bb28bcb689306cb9d14a4140d 100644 (file)
@@ -2,16 +2,19 @@
 \r
 <div>\r
 <div class="rightbox">\r
-  <%= start_form_tag %>\r
+<%= start_form_tag %>\r
 <p><%= select_month(@month, :prefix => "month", :discard_type => true) %>\r
 <%= select_year(@year, :prefix => "year", :discard_type => true) %></p>\r
-    <%= check_box_tag 'show_issues', 1, @show_issues %><%= hidden_field_tag 'show_issues', 0 %> <%=l(:label_issue_plural)%><br />\r
-    <%= check_box_tag 'show_news', 1, @show_news %><%= hidden_field_tag 'show_news', 0 %> <%=l(:label_news_plural)%><br />\r
-    <%= check_box_tag 'show_files', 1, @show_files %><%= hidden_field_tag 'show_files', 0 %> <%=l(:label_attachment_plural)%><br />\r
-    <%= check_box_tag 'show_documents', 1, @show_documents %><%= hidden_field_tag 'show_documents', 0 %> <%=l(:label_document_plural)%><br />\r
-    <p><center><%= submit_tag l(:button_apply), :class => 'button-small' %></center></p>\r
-  <%= end_form_tag %>\r
-  </div>\r
+<p>\r
+    <%= check_box_tag 'show_issues', 1, @show_issues %><%= hidden_field_tag 'show_issues', 0, :id => nil %> <%=l(:label_issue_plural)%><br />\r
+    <%= check_box_tag 'show_news', 1, @show_news %><%= hidden_field_tag 'show_news', 0, :id => nil %> <%=l(:label_news_plural)%><br />\r
+    <%= check_box_tag 'show_files', 1, @show_files %><%= hidden_field_tag 'show_files', 0, :id => nil %> <%=l(:label_attachment_plural)%><br />\r
+    <%= check_box_tag 'show_documents', 1, @show_documents %><%= hidden_field_tag 'show_documents', 0, :id => nil %> <%=l(:label_document_plural)%>\r
+</p>\r
+<p class="textcenter"><%= submit_tag l(:button_apply), :class => 'button-small' %></p>\r
+<%= end_form_tag %>\r
+</div>\r
+\r
 <% @events_by_day.keys.sort {|x,y| y <=> x }.each do |day| %>\r
   <h3><%= day_name(day.cwday) %> <%= day.day %></h3>\r
   <ul>\r
index ab26d0b84875adeef20247a042bf1433e95c73b5..8bd970fe6e9371f43dbf29f771a7519211cbfba2 100644 (file)
@@ -1,21 +1,20 @@
 <h2><%= l(:label_calendar) %></h2>\r
 \r
+    <%= start_form_tag :action => 'calendar', :id => @project %>\r
 <table width="100%">\r
 <tr>\r
-<td align="left" width="150">\r
+<td align="left" style="width:150px">\r
     <%= link_to_remote ('&#171; ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")), \r
                         {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},\r
                         {:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}\r
                         %>\r
 </td>\r
 <td align="center">\r
-    <%= start_form_tag :action => 'calendar', :id => @project %>\r
     <%= select_month(@month, :prefix => "month", :discard_type => true) %>\r
     <%= select_year(@year, :prefix => "year", :discard_type => true) %>\r
     <%= submit_tag l(:button_submit), :class => "button-small" %>\r
-    <%= end_form_tag %>\r
 </td>\r
-<td align="right" width="150">\r
+<td align="right" style="width:150px">\r
     <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'), \r
                         {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},\r
                         {:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}\r
@@ -23,6 +22,7 @@
 </td>\r
 </tr>\r
 </table>\r
+    <%= end_form_tag %>\r
 <br />\r
 \r
 <table class="list with-cells">\r
 <tr>\r
 <th></th>\r
 <% 1.upto(7) do |d| %>\r
-    <th width="14%"><%= day_name(d) %></th>\r
+    <th style="width:14%"><%= day_name(d) %></th>\r
 <% end %>\r
 </tr>\r
 </thead>\r
 <tbody>\r
-<tr height="100">\r
+<tr style="height:100px">\r
 <% day = @date_from\r
 while day <= @date_to\r
        if day.cwday == 1 %>\r
        <th><%= day.cweek %></th>\r
        <% end %>       \r
-       <td valign="top" width="14%" class="<%= day.month==@month ? "even" : "odd" %>">\r
-       <p align="right"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p>     \r
+       <td valign="top" style="width:14%" class="<%= day.month==@month ? "even" : "odd" %>">\r
+       <p class="textright"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p> \r
        <% day_issues = []\r
        @issues.each { |i| day_issues << i if i.start_date == day or i.due_date == day } \r
        day_issues.each do |i| %>       \r
@@ -56,7 +56,7 @@ while day <= @date_to
                <small><%= link_to "#{i.tracker.name} ##{i.id}", { :controller => 'issues', :action => 'show', :id => i }, :title => "#{i.subject}" %>: <%=h i.subject.sub(/^(.{30}[^\s]*\s).*$/, '\1 (...)') %></small><br />\r
        <% end %>\r
     </td>\r
-       <%= '</tr><tr height="100">' if day.cwday >= 7 and day!=@date_to %>\r
+       <%= '</tr><tr style="height:100px">' if day.cwday >= 7 and day!=@date_to %>\r
        <%\r
        day = day + 1\r
 end %>\r
index 6199107c5e0def06d7850682a58322c8442fdfe4..33d87e6dc123875ea0b549180affab721e4a7b07 100644 (file)
@@ -9,12 +9,14 @@
 <tr>\r
 <td align="left">\r
 <%= start_form_tag %>\r
-<input type="text" name="months" size="2" value="<%= @months %>">\r
+<p>\r
+<input type="text" name="months" size="2" value="<%= @months %>" />\r
 <%= l(:label_months_from) %>\r
 <%= select_month(@month_from, :prefix => "month", :discard_type => true) %>\r
 <%= select_year(@year_from, :prefix => "year", :discard_type => true) %>\r
 <%= hidden_field_tag 'zoom', @zoom %>\r
 <%= submit_tag l(:button_submit), :class => "button-small" %>\r
+</p>\r
 <%= end_form_tag %>\r
 </td>\r
 <td align="right">\r
 </table>\r
 <br />\r
 \r
-<style>\r
-.m_bg {\r
-  position:absolute;\r
-  top:0;\r
-  height:16px;\r
-  border-top: 1px solid #c0c0c0;\r
-  border-bottom: 1px solid #c0c0c0;\r
-  border-right: 1px solid #c0c0c0;\r
-  text-align: center;\r
-  overflow: hidden;\r
-}\r
-\r
-.task {\r
-  position: absolute;\r
-  height:8px;\r
-  font-size:0.8em;\r
-  color:#888;\r
-  background:#aaa;\r
-  padding:0;\r
-  margin:0;\r
-  line-height:0.8em;\r
-}\r
-\r
-.task_late {\r
-  background:#f66;\r
-}\r
-\r
-.task_done {\r
-  background:#66f;\r
-}  \r
-</style>\r
-\r
 <% zoom = 1\r
 @zoom.times { zoom = zoom * 2 }\r
 \r
@@ -89,13 +59,13 @@ g_height = [(20 * @issues.length + 6), 206].max
 t_height = g_height + headers_heigth\r
 %>\r
 \r
-<table width="100%" border=0 cellspacing=0 cellpading=0>\r
+<table width="100%" style="border:0; border-collapse: collapse;">\r
 <tr>\r
-<td width=260>\r
+<td style="width:260px;">\r
 \r
 <div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width + 1 %>px;">\r
-<div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_heigth %>px;background: #eee;" class="m_bg"></div>\r
-<div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;" class="m_bg"></div>\r
+<div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_heigth %>px;background: #eee;" class="gantt_hdr"></div>\r
+<div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;" class="gantt_hdr"></div>\r
 <%\r
 #\r
 # Tasks subjects\r
@@ -113,7 +83,7 @@ end %>
 <td>\r
 \r
 <div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width %>;overflow:auto;">\r
-<div style="width:<%= g_width-1 %>px;height:<%= headers_heigth %>px;background: #eee;" class="m_bg">&nbsp;</div>\r
+<div style="width:<%= g_width-1 %>px;height:<%= headers_heigth %>px;background: #eee;" class="gantt_hdr">&nbsp;</div>\r
 <% \r
 #\r
 # Months headers\r
@@ -124,7 +94,7 @@ height = (show_weeks ? header_heigth : header_heigth + g_height)
 @months.times do \r
        width = ((month_f >> 1) - month_f) * zoom - 1\r
        %>\r
-       <div style="left:<%= left %>px;width:<%= width %>px;height:<%= height %>px;" class="m_bg">\r
+       <div style="left:<%= left %>px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr">\r
        <%= link_to "#{month_f.year}-#{month_f.month}", { :year => month_f.year, :month => month_f.month, :zoom => @zoom, :months => @months }, :title => "#{month_name(month_f.month)} #{month_f.year}"%>\r
        </div>\r
        <% \r
@@ -147,7 +117,7 @@ if show_weeks
                week_f = @date_from + (7 - @date_from.cwday + 1)\r
                width = (7 - @date_from.cwday + 1) * zoom-1\r
                %>\r
-               <div style="left:<%= left %>px;top:19px;width:<%= width %>px;height:<%= height %>px;" class="m_bg">&nbsp;</div>\r
+               <div style="left:<%= left %>px;top:19px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr">&nbsp;</div>\r
                <% \r
                left = left + width+1\r
        end %>\r
@@ -155,7 +125,7 @@ if show_weeks
        while week_f <= @date_to\r
                width = (week_f + 6 <= @date_to) ? 7 * zoom -1 : (@date_to - week_f + 1) * zoom-1\r
                %>\r
-               <div style="left:<%= left %>px;top:19px;width:<%= width %>px;height:<%= height %>px;" class="m_bg">\r
+               <div style="left:<%= left %>px;top:19px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr">\r
                <small><%= week_f.cweek if width >= 16 %></small>\r
                </div>\r
                <% \r
@@ -175,7 +145,7 @@ if show_days
        (@date_to - @date_from + 1).to_i.times do \r
        width =  zoom - 1\r
        %>\r
-       <div style="left:<%= left %>px;top:37px;width:<%= width %>px;height:<%= height %>px;font-size:0.7em;<%= "background:#f1f1f1;" if wday > 5 %>" class="m_bg">\r
+       <div style="left:<%= left %>px;top:37px;width:<%= width %>px;height:<%= height %>px;font-size:0.7em;<%= "background:#f1f1f1;" if wday > 5 %>" class="gantt_hdr">\r
        <%= day_name(wday)[0,1] %>\r
        </div>\r
        <% \r
@@ -236,7 +206,6 @@ end %>
 <table width="100%">\r
 <tr>\r
 <td align="left"><%= link_to ('&#171; ' + l(:label_previous)), :year => (@date_from << @months).year, :month => (@date_from << @months).month, :zoom => @zoom, :months => @months %></td>\r
-<td>\r
 <td align="right"><%= link_to (l(:label_next) + ' &#187;'), :year => (@date_from >> @months).year, :month => (@date_from >> @months).month, :zoom => @zoom, :months => @months %></td>\r
 </tr>\r
 </table>
\ No newline at end of file
index 59580797da235c4c0675fea3a8dd09b968659eca..0723a7081c5ea5531ba6b6368b186b7c015511e4 100644 (file)
@@ -9,9 +9,9 @@
   <tbody>
 <% for project in @projects %>
   <tr class="<%= cycle("odd", "even") %>">\r
-       <td><%= link_to project.name, :action => 'show', :id => project %>\r
-       <td><%=h project.description %>\r
-       <td align="center"><%= format_date(project.created_on) %>\r
+       <td><%= link_to project.name, :action => 'show', :id => project %></td>\r
+       <td><%=h project.description %></td>\r
+       <td align="center"><%= format_date(project.created_on) %></td>\r
   </tr>
 <% end %>
   </tbody>
index 7ccc5961127076dd99e17c66ec81597af239cbc8..e71a7b2d3a196cc7098e8aaf4fa7170cdf7a75df 100644 (file)
@@ -57,7 +57,7 @@
        <tbody>\r
        <% for issue in @issues %>
        <tr class="<%= cycle("odd", "even") %>">\r
-           <th width="15"><%= check_box_tag "issue_ids[]", issue.id %></th>\r
+           <th style="width:15px;"><%= check_box_tag "issue_ids[]", issue.id, false, :id => "issue_#{issue.id}" %></th>\r
                <td align="center"><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>\r
                <td align="center"><%= issue.tracker.name %></td>\r
                <td><div class="square" style="background:#<%= issue.status.html_color %>;"></div> <%= issue.status.name %></td>\r
 <%= link_to 'CSV', {:action => 'export_issues_csv', :id => @project}, :class => 'icon file' %>,\r
 <%= link_to 'PDF', {:action => 'export_issues_pdf', :id => @project}, :class => 'pic picPdf' %>\r
 </div>\r
-\r
-<%= submit_tag l(:button_move), :class => "button-small" %>\r
-<%= end_form_tag %>\r
+<p><%= submit_tag l(:button_move), :class => "button-small" %>\r
 &nbsp;\r
 <%= pagination_links_full @issue_pages %>\r
 [ <%= @issue_pages.current.first_item %> - <%= @issue_pages.current.last_item %> / <%= @issue_count %> ]\r
-\r
+</p>\r
+<%= end_form_tag %>\r
 <% end %>\r
 <% end %>
\ No newline at end of file
index 518ec38ffc99f213a066eb04de4bd62960b9a305..be5b67abbc6c59155944ff3df2c12554a66ccb30 100644 (file)
@@ -27,7 +27,7 @@
       </li>\r
     <% end %>\r
     </ul>\r
-    <center><small><%= link_to l(:label_issue_view_all), :controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1 %></small></center>\r
+    <p class="textcenter"><small><%= link_to l(:label_issue_view_all), :controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1 %></small></p>\r
   </div>
 </div>\r
 \r
   <div class="box">\r
     <h3><%=l(:label_news_latest)%></h3>  \r
     <%= render :partial => 'news/news', :collection => @news %>
-    <center><small><%= link_to l(:label_news_view_all), :controller => 'projects', :action => 'list_news', :id => @project %></small></center>\r
+    <p class="textcenter"><small><%= link_to l(:label_news_view_all), :controller => 'projects', :action => 'list_news', :id => @project %></small></p>\r
   </div>  \r
-</div>\r
-\r
-       \r
-\r
-
-\r
-       \r
+</div>
\ No newline at end of file
index 4cfce899f4f551912e4f0f2dbbe326a8f8595778..4c20d86fff3cce2399272f2343259ee929f06242 100644 (file)
@@ -1,5 +1,5 @@
-<script>\r
-\r
+<script type="text/javascript">\r
+//<![CDATA[\r
 function add_filter() {\r
     select = $('add_filter_select');\r
     field = select.value\r
@@ -20,74 +20,74 @@ function toggle_filter(field) {
     check_box = $('cb_' + field);\r
     \r
     if (check_box.checked) {\r
-        Element.show("operators[" + field + "]");\r
+        Element.show("operators_" + field);\r
         toggle_operator(field);\r
     } else {\r
-        Element.hide("operators[" + field + "]");\r
-        Element.hide("values_div[" + field + "]");\r
+        Element.hide("operators_" + field);\r
+        Element.hide("div_values_" + field);\r
   }\r
 }\r
 \r
 function toggle_operator(field) {\r
-  operator = $("operators[" + field + "]");\r
+  operator = $("operators_" + field);\r
   switch (operator.value) {\r
     case "!*":\r
     case "*":\r
     case "t":\r
     case "o":\r
     case "c":\r
-      Element.hide("values_div[" + field + "]");\r
+      Element.hide("div_values_" + field);\r
       break;\r
     default:\r
-      Element.show("values_div[" + field + "]");\r
+      Element.show("div_values_" + field);\r
       break;\r
   }\r
 }\r
 \r
 function toggle_multi_select(field) {\r
-    select = $('values[' + field + '][]');\r
+    select = $('values_' + field);\r
     if (select.multiple == true) {\r
         select.multiple = false;\r
     } else {\r
         select.multiple = true;\r
     }\r
 }\r
-\r
+//]]>\r
 </script>\r
 \r
 <fieldset style="margin:0;"><legend><%= l(:label_filter_plural) %></legend>\r
-<table width="100%" cellpadding=0 cellspacing=0>\r
+<table width="100%">\r
 <tr>\r
 <td>\r
-<table>\r
+<table style="padding:0;">\r
 <% query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.each do |filter| %>\r
     <% field = filter[0]\r
        options = filter[1] %>\r
     <tr <%= 'style="display:none;"' unless query.has_filter?(field) %> id="tr_<%= field %>">\r
-    <td valign="top" width="200">\r
+    <td valign="top" style="width:200px;">\r
         <%= check_box_tag 'fields[]', field, query.has_filter?(field), :onclick => "toggle_filter('#{field}');", :id => "cb_#{field}" %>\r
         <label for="cb_<%= field %>"><%= l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) %></label>\r
     </td>\r
-    <td valign="top" width="150">\r
-        <%= select_tag "operators[#{field}]", options_for_select(operators_for_select(options[:type]), query.operator_for(field)), :onchange => "toggle_operator('#{field}');", :class => "select-small", :style => "vertical-align: top;" %>\r
+    <td valign="top" style="width:150px;">\r
+        <%= select_tag "operators[#{field}]", options_for_select(operators_for_select(options[:type]), query.operator_for(field)), :id => "operators_#{field}", :onchange => "toggle_operator('#{field}');", :class => "select-small", :style => "vertical-align: top;" %>\r
     </td>\r
     <td valign="top">    \r
-    <div id="values_div[<%= field %>]">\r
+    <div id="div_values_<%= field %>">\r
     <% case options[:type]\r
     when :list, :list_optional, :list_status %>\r
-        <select <%= "multiple=true" if query.values_for(field) and query.values_for(field).length > 1 %>" name="values[<%= field %>][]" id="values[<%= field %>][]" class="select-small" style="vertical-align: top;">\r
+        <select <%= "multiple=true" if query.values_for(field) and query.values_for(field).length > 1 %> name="values[<%= field %>][]" id="values_<%= field %>" class="select-small" style="vertical-align: top;">\r
         <%= options_for_select options[:values], query.values_for(field) %>        \r
         </select>\r
         <%= link_to_function image_tag('expand'), "toggle_multi_select('#{field}');" %>\r
     <% when :date, :date_past %>\r
-        <%= text_field_tag "values[#{field}][]", query.values_for(field), :size => 3, :class => "select-small" %> <%= l(:label_day_plural) %>\r
+        <%= text_field_tag "values[#{field}][]", query.values_for(field), :id => "values_#{field}", :size => 3, :class => "select-small" %> <%= l(:label_day_plural) %>\r
     <% when :text %>\r
-        <%= text_field_tag "values[#{field}][]", query.values_for(field), :size => 30, :class => "select-small" %>\r
+        <%= text_field_tag "values[#{field}][]", query.values_for(field), :id => "values_#{field}", :size => 30, :class => "select-small" %>\r
     <% end %>\r
     </div>\r
+    <script type="text/javascript">toggle_filter('<%= field %>');</script>\r
     </td>\r
     </tr>\r
-    <script>toggle_filter('<%= field %>');</script>\r
 <% end %>\r
 </table>\r
 </td>\r
index 1d791e0c7631918929b7cb8b7d3c12eb11d3c921..e52538f73e551274dcd40d542dd8ec13c4633f5b 100644 (file)
@@ -4,13 +4,13 @@
 <% col_width = 70 / (@statuses.length+3) %>\r
 <table class="list">\r
 <thead><tr>\r
-<th width="25%"></th>\r
+<th style="width:25%"></th>\r
 <% for status in @statuses %>\r
-<th width="<%= col_width %>%" style="text-align:left;"><div class="square" style="background:#<%= status.html_color %>;"></div> <small><%= status.name %></small></th>\r
+<th style="text-align:left;width:<%= col_width %>%"><div class="square" style="background:#<%= status.html_color %>;"></div> <small><%= status.name %></small></th>\r
 <% end %>\r
-<th align="center" width="<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th>\r
-<th align="center" width="<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></th>\r
-<th align="center" width="<%= col_width %>%"><strong><%=l(:label_total)%></strong></th>\r
+<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th>\r
+<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></th>\r
+<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_total)%></strong></th>\r
 </tr></thead>\r
 <tbody>\r
 <% for row in rows %>\r
index 24cbd9b7f2edb34144ba55994a95afdb25ee1263..1e66210f96d0d0b83e6bd780fc1c1a46af1f51ac 100644 (file)
@@ -3,10 +3,10 @@
 <% else %>\r
 <table class="list">\r
 <thead><tr>\r
-<th width="25%"></th>\r
-<th align="center" width="25%"><%=l(:label_open_issues_plural)%></th>\r
-<th align="center" width="25%"><%=l(:label_closed_issues_plural)%></th>\r
-<th align="center" width="25%"><%=l(:label_total)%></th>\r
+<th style="width:25%"></th>\r
+<th align="center" style="width:25%"><%=l(:label_open_issues_plural)%></th>\r
+<th align="center" style="width:25%"><%=l(:label_closed_issues_plural)%></th>\r
+<th align="center" style="width:25%"><%=l(:label_total)%></th>\r
 </tr></thead>\r
 <tbody>\r
 <% for row in rows %>\r
index 635fba5288099ba565f4b7c14ac5ee1e8c662ac3..7b80c5f1f56f8fa7b241a7fd6a55319025960a92 100644 (file)
@@ -20,4 +20,4 @@
 end %>\r
 </tbody>\r
 </table>\r
-<p align="right"><em><%= l(:label_total) %>: <%= human_size(total_size) %></em></p>
\ No newline at end of file
+<p class="textright"><em><%= l(:label_total) %>: <%= human_size(total_size) %></em></p>
\ No newline at end of file
index 92ad8478bfd6994f6a0df6d9cbe882fc38dd902f..cdd4e68823eaed4d418b297aab74c65735042ab5 100644 (file)
@@ -1,11 +1,14 @@
-<%= stylesheet_link_tag "scm" %>\r
-\r
 <div class="contextual">\r
 <%= start_form_tag %>\r
-<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>\r
-<%= submit_tag 'OK' %>\r
+<p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>\r
+<%= submit_tag 'OK' %></p>\r
+<%= end_form_tag %>\r
 </div>\r
 \r
 <h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2>\r
 \r
-<%= render :partial => 'dir_list' %>
\ No newline at end of file
+<%= render :partial => 'dir_list' %>\r
+\r
+<% content_for :header_tags do %>\r
+<%= stylesheet_link_tag "scm" %>\r
+<% end %>
\ No newline at end of file
index d4350cb614d627ee7520abbb93b304fd99655d00..0060e7867831be1c95634c6624b6672697b7f80f 100644 (file)
@@ -1,7 +1,5 @@
 <h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2>\r
 \r
-<%= stylesheet_link_tag "scm" %>\r
-\r
 <table class="list">\r
 <thead><tr><th>@<%= @rev %></th><th>@<%= @rev_to  %></th><th></th></tr></thead>\r
 <tbody>\r
@@ -52,4 +50,8 @@ line_num_r = 0 %>
 \r
 <% end %>\r
 </tbody>\r
-</table>
\ No newline at end of file
+</table>\r
+\r
+<% content_for :header_tags do %>\r
+<%= stylesheet_link_tag "scm" %>\r
+<% end %>
\ No newline at end of file
index 19e980825bd9250239350f01f5eeb7a762d0694d..f616a0180c9c5ac36b1678630aa840a94346b861 100644 (file)
@@ -1,9 +1,8 @@
-<%= stylesheet_link_tag "scm" %>\r
-\r
 <div class="contextual">\r
 <%= start_form_tag %>\r
-<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>\r
-<%= submit_tag 'OK' %>\r
+<p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>\r
+<%= submit_tag 'OK' %></p>\r
+<%= end_form_tag %>\r
 </div>\r
 \r
 <h2><%= l(:label_revision) %> <%= @revision.identifier %></h2>\r
@@ -32,4 +31,8 @@
 <% end %>\r
 </tbody>\r
 </table>\r
-<p><%= lwr(:label_modification, @revision.paths.length) %></p>
\ No newline at end of file
+<p><%= lwr(:label_modification, @revision.paths.length) %></p>\r
+\r
+<% content_for :header_tags do %>\r
+<%= stylesheet_link_tag "scm" %>\r
+<% end %>
\ No newline at end of file
index 851c8585856ea2b102a0f84ce3b83f502007d64f..6ab8df400e924dfdcb750090d6027820f8fa84e4 100644 (file)
@@ -1,9 +1,8 @@
-<%= stylesheet_link_tag "scm" %>\r
-\r
 <div class="contextual">\r
 <%= start_form_tag %>\r
-<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>\r
-<%= submit_tag 'OK' %>\r
+<p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>\r
+<%= submit_tag 'OK' %></p>\r
+<%= end_form_tag %>\r
 </div>\r
 \r
 <h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => @entry.kind, :revision => @rev } %></h2>\r
 <th align="center"><%= link_to revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier %></th>\r
 <td align="center"><em><%=h revision.author %></em></td>\r
 <td align="center"><%= format_time(revision.time) %></td>\r
-<td width="70%"><%= textilizable(revision.message) %></td>\r
+<td style="width:70%"><%= textilizable(revision.message) %></td>\r
 <td align="center"><%= link_to 'Diff', :action => 'diff', :id => @project, :path => @path, :rev => revision.identifier if @entry.is_file? && revision != @revisions.last %></td>\r
 </tr>\r
 <% end %>\r
 </tbody>\r
 </table>\r
-<p><%= lwr(:label_modification, @revisions.length) %></p>
\ No newline at end of file
+<p><%= lwr(:label_modification, @revisions.length) %></p>\r
+\r
+<% content_for :header_tags do %>\r
+<%= stylesheet_link_tag "scm" %>\r
+<% end %>
\ No newline at end of file
index 4c95f88448b26e651ea29085744f8af3734fe6af..9c2adc9293109f58e87f78d2dd8793ae04b98e69 100644 (file)
@@ -1,5 +1,3 @@
-<%= stylesheet_link_tag "scm" %>
-
 <h2><%= l(:label_repository) %></h2>
 
 <h3><%= l(:label_revision_plural) %></h3>
@@ -12,4 +10,8 @@
 
 
 <h3><%= l(:label_browse) %></h3>
-<%= render :partial => 'dir_list' %>
\ No newline at end of file
+<%= render :partial => 'dir_list' %>
+
+<% content_for :header_tags do %>
+<%= stylesheet_link_tag "scm" %>
+<% end %>
\ No newline at end of file
index 2b1c53794d0d5c1b22ba8919623f7b5ecceaa91c..9663491c8bf63faa3dd5bf817717709f527e060b 100644 (file)
@@ -505,6 +505,31 @@ font-size: 0.8em;
 font-size: 1em;\r
 }\r
 \r
+/***** Gantt chart *****/\r
+.gantt_hdr {\r
+  position:absolute;\r
+  top:0;\r
+  height:16px;\r
+  border-top: 1px solid #c0c0c0;\r
+  border-bottom: 1px solid #c0c0c0;\r
+  border-right: 1px solid #c0c0c0;\r
+  text-align: center;\r
+  overflow: hidden;\r
+}\r
+\r
+.task {\r
+  position: absolute;\r
+  height:8px;\r
+  font-size:0.8em;\r
+  color:#888;\r
+  background:#aaa;\r
+  padding:0;\r
+  margin:0;\r
+  line-height:0.8em;\r
+}\r
+\r
+.task_late { background:#f66; }\r
+.task_done { background:#66f; }  \r
 \r
 /***** CSS FORM ******/\r
 .tabular p{\r