Commit 776d5ce5 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

XHTML compliance improvements

git-svn-id: http://redmine.rubyforge.org/svn/trunk@150 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 28ea3237
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<div class="box"> <div class="box">
<table width="100%"> <table width="100%">
<tr> <tr>
<td width="15%"><b><%=l(:field_status)%> :</b></td><td width="35%"><%= @issue.status.name %></td> <td style="width:15%"><b><%=l(:field_status)%> :</b></td><td style="width:35%"><%= @issue.status.name %></td>
<td width="15%"><b><%=l(:field_priority)%> :</b></td><td width="35%"><%= @issue.priority.name %></td> <td style="width:15%"><b><%=l(:field_priority)%> :</b></td><td style="width:35%"><%= @issue.priority.name %></td>
</tr> </tr>
<tr> <tr>
<td><b><%=l(:field_assigned_to)%> :</b></td><td><%= @issue.assigned_to ? @issue.assigned_to.name : "-" %></td> <td><b><%=l(:field_assigned_to)%> :</b></td><td><%= @issue.assigned_to ? @issue.assigned_to.name : "-" %></td>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<li class="submenu"><%= link_to l(:label_administration), { :controller => 'admin' }, :class => "picAdmin", :onmouseover => "buttonMouseover(event, 'menuAdmin');" %></li> <li class="submenu"><%= link_to l(:label_administration), { :controller => 'admin' }, :class => "picAdmin", :onmouseover => "buttonMouseover(event, 'menuAdmin');" %></li>
<% end %> <% end %>
<li class="right"><%= link_to l(:label_help), { :controller => 'help', :ctrl => params[:controller], :page => params[:action] }, :target => "new", :class => "picHelp" %></li> <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>
<% if loggedin? %> <% if loggedin? %>
<li class="right"><%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => "picUser" %></li> <li class="right"><%= link_to l(:label_logout), { :controller => 'account', :action => 'logout' }, :class => "picUser" %></li>
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
<div id="footer"> <div id="footer">
<p> <p>
<%= auto_link $RDM_FOOTER_SIG %> | <%= auto_link $RDM_FOOTER_SIG %> |
<a href="http://redmine.rubyforge.org/" target="_new"><%= RDM_APP_NAME %></a> <%= RDM_APP_VERSION %> <a href="http://redmine.rubyforge.org/"><%= RDM_APP_NAME %></a> <%= RDM_APP_VERSION %>
</p> </p>
</div> </div>
......
...@@ -2,16 +2,19 @@ ...@@ -2,16 +2,19 @@
<div> <div>
<div class="rightbox"> <div class="rightbox">
<%= start_form_tag %> <%= start_form_tag %>
<p><%= select_month(@month, :prefix => "month", :discard_type => true) %> <p><%= select_month(@month, :prefix => "month", :discard_type => true) %>
<%= select_year(@year, :prefix => "year", :discard_type => true) %></p> <%= select_year(@year, :prefix => "year", :discard_type => true) %></p>
<%= check_box_tag 'show_issues', 1, @show_issues %><%= hidden_field_tag 'show_issues', 0 %> <%=l(:label_issue_plural)%><br /> <p>
<%= check_box_tag 'show_news', 1, @show_news %><%= hidden_field_tag 'show_news', 0 %> <%=l(:label_news_plural)%><br /> <%= check_box_tag 'show_issues', 1, @show_issues %><%= hidden_field_tag 'show_issues', 0, :id => nil %> <%=l(:label_issue_plural)%><br />
<%= check_box_tag 'show_files', 1, @show_files %><%= hidden_field_tag 'show_files', 0 %> <%=l(:label_attachment_plural)%><br /> <%= check_box_tag 'show_news', 1, @show_news %><%= hidden_field_tag 'show_news', 0, :id => nil %> <%=l(:label_news_plural)%><br />
<%= check_box_tag 'show_documents', 1, @show_documents %><%= hidden_field_tag 'show_documents', 0 %> <%=l(:label_document_plural)%><br /> <%= check_box_tag 'show_files', 1, @show_files %><%= hidden_field_tag 'show_files', 0, :id => nil %> <%=l(:label_attachment_plural)%><br />
<p><center><%= submit_tag l(:button_apply), :class => 'button-small' %></center></p> <%= check_box_tag 'show_documents', 1, @show_documents %><%= hidden_field_tag 'show_documents', 0, :id => nil %> <%=l(:label_document_plural)%>
<%= end_form_tag %> </p>
</div> <p class="textcenter"><%= submit_tag l(:button_apply), :class => 'button-small' %></p>
<%= end_form_tag %>
</div>
<% @events_by_day.keys.sort {|x,y| y <=> x }.each do |day| %> <% @events_by_day.keys.sort {|x,y| y <=> x }.each do |day| %>
<h3><%= day_name(day.cwday) %> <%= day.day %></h3> <h3><%= day_name(day.cwday) %> <%= day.day %></h3>
<ul> <ul>
......
<h2><%= l(:label_calendar) %></h2> <h2><%= l(:label_calendar) %></h2>
<%= start_form_tag :action => 'calendar', :id => @project %>
<table width="100%"> <table width="100%">
<tr> <tr>
<td align="left" width="150"> <td align="left" style="width:150px">
<%= link_to_remote ('&#171; ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")), <%= link_to_remote ('&#171; ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
{:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }}, {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
{:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))} {:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
%> %>
</td> </td>
<td align="center"> <td align="center">
<%= start_form_tag :action => 'calendar', :id => @project %>
<%= select_month(@month, :prefix => "month", :discard_type => true) %> <%= select_month(@month, :prefix => "month", :discard_type => true) %>
<%= select_year(@year, :prefix => "year", :discard_type => true) %> <%= select_year(@year, :prefix => "year", :discard_type => true) %>
<%= submit_tag l(:button_submit), :class => "button-small" %> <%= submit_tag l(:button_submit), :class => "button-small" %>
<%= end_form_tag %>
</td> </td>
<td align="right" width="150"> <td align="right" style="width:150px">
<%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'), <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'),
{:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }}, {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
{:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))} {:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
...@@ -23,6 +22,7 @@ ...@@ -23,6 +22,7 @@
</td> </td>
</tr> </tr>
</table> </table>
<%= end_form_tag %>
<br /> <br />
<table class="list with-cells"> <table class="list with-cells">
...@@ -30,19 +30,19 @@ ...@@ -30,19 +30,19 @@
<tr> <tr>
<th></th> <th></th>
<% 1.upto(7) do |d| %> <% 1.upto(7) do |d| %>
<th width="14%"><%= day_name(d) %></th> <th style="width:14%"><%= day_name(d) %></th>
<% end %> <% end %>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr height="100"> <tr style="height:100px">
<% day = @date_from <% day = @date_from
while day <= @date_to while day <= @date_to
if day.cwday == 1 %> if day.cwday == 1 %>
<th><%= day.cweek %></th> <th><%= day.cweek %></th>
<% end %> <% end %>
<td valign="top" width="14%" class="<%= day.month==@month ? "even" : "odd" %>"> <td valign="top" style="width:14%" class="<%= day.month==@month ? "even" : "odd" %>">
<p align="right"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p> <p class="textright"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p>
<% day_issues = [] <% day_issues = []
@issues.each { |i| day_issues << i if i.start_date == day or i.due_date == day } @issues.each { |i| day_issues << i if i.start_date == day or i.due_date == day }
day_issues.each do |i| %> day_issues.each do |i| %>
...@@ -56,7 +56,7 @@ while day <= @date_to ...@@ -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 /> <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 />
<% end %> <% end %>
</td> </td>
<%= '</tr><tr height="100">' if day.cwday >= 7 and day!=@date_to %> <%= '</tr><tr style="height:100px">' if day.cwday >= 7 and day!=@date_to %>
<% <%
day = day + 1 day = day + 1
end %> end %>
......
...@@ -9,12 +9,14 @@ ...@@ -9,12 +9,14 @@
<tr> <tr>
<td align="left"> <td align="left">
<%= start_form_tag %> <%= start_form_tag %>
<input type="text" name="months" size="2" value="<%= @months %>"> <p>
<input type="text" name="months" size="2" value="<%= @months %>" />
<%= l(:label_months_from) %> <%= l(:label_months_from) %>
<%= select_month(@month_from, :prefix => "month", :discard_type => true) %> <%= select_month(@month_from, :prefix => "month", :discard_type => true) %>
<%= select_year(@year_from, :prefix => "year", :discard_type => true) %> <%= select_year(@year_from, :prefix => "year", :discard_type => true) %>
<%= hidden_field_tag 'zoom', @zoom %> <%= hidden_field_tag 'zoom', @zoom %>
<%= submit_tag l(:button_submit), :class => "button-small" %> <%= submit_tag l(:button_submit), :class => "button-small" %>
</p>
<%= end_form_tag %> <%= end_form_tag %>
</td> </td>
<td align="right"> <td align="right">
...@@ -33,38 +35,6 @@ ...@@ -33,38 +35,6 @@
</table> </table>
<br /> <br />
<style>
.m_bg {
position:absolute;
top:0;
height:16px;
border-top: 1px solid #c0c0c0;
border-bottom: 1px solid #c0c0c0;
border-right: 1px solid #c0c0c0;
text-align: center;
overflow: hidden;
}
.task {
position: absolute;
height:8px;
font-size:0.8em;
color:#888;
background:#aaa;
padding:0;
margin:0;
line-height:0.8em;
}
.task_late {
background:#f66;
}
.task_done {
background:#66f;
}
</style>
<% zoom = 1 <% zoom = 1
@zoom.times { zoom = zoom * 2 } @zoom.times { zoom = zoom * 2 }
...@@ -89,13 +59,13 @@ g_height = [(20 * @issues.length + 6), 206].max ...@@ -89,13 +59,13 @@ g_height = [(20 * @issues.length + 6), 206].max
t_height = g_height + headers_heigth t_height = g_height + headers_heigth
%> %>
<table width="100%" border=0 cellspacing=0 cellpading=0> <table width="100%" style="border:0; border-collapse: collapse;">
<tr> <tr>
<td width=260> <td style="width:260px;">
<div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width + 1 %>px;"> <div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width + 1 %>px;">
<div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_heigth %>px;background: #eee;" class="m_bg"></div> <div style="right:-2px;width:<%= subject_width %>px;height:<%= headers_heigth %>px;background: #eee;" class="gantt_hdr"></div>
<div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;" class="m_bg"></div> <div style="right:-2px;width:<%= subject_width %>px;height:<%= t_height %>px;border-left: 1px solid #c0c0c0;" class="gantt_hdr"></div>
<% <%
# #
# Tasks subjects # Tasks subjects
...@@ -113,7 +83,7 @@ end %> ...@@ -113,7 +83,7 @@ end %>
<td> <td>
<div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width %>;overflow:auto;"> <div style="position:relative;height:<%= t_height + 24 %>px;width:<%= subject_width %>;overflow:auto;">
<div style="width:<%= g_width-1 %>px;height:<%= headers_heigth %>px;background: #eee;" class="m_bg">&nbsp;</div> <div style="width:<%= g_width-1 %>px;height:<%= headers_heigth %>px;background: #eee;" class="gantt_hdr">&nbsp;</div>
<% <%
# #
# Months headers # Months headers
...@@ -124,7 +94,7 @@ height = (show_weeks ? header_heigth : header_heigth + g_height) ...@@ -124,7 +94,7 @@ height = (show_weeks ? header_heigth : header_heigth + g_height)
@months.times do @months.times do
width = ((month_f >> 1) - month_f) * zoom - 1 width = ((month_f >> 1) - month_f) * zoom - 1
%> %>
<div style="left:<%= left %>px;width:<%= width %>px;height:<%= height %>px;" class="m_bg"> <div style="left:<%= left %>px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr">
<%= 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}"%> <%= 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}"%>
</div> </div>
<% <%
...@@ -147,7 +117,7 @@ if show_weeks ...@@ -147,7 +117,7 @@ if show_weeks
week_f = @date_from + (7 - @date_from.cwday + 1) week_f = @date_from + (7 - @date_from.cwday + 1)
width = (7 - @date_from.cwday + 1) * zoom-1 width = (7 - @date_from.cwday + 1) * zoom-1
%> %>
<div style="left:<%= left %>px;top:19px;width:<%= width %>px;height:<%= height %>px;" class="m_bg">&nbsp;</div> <div style="left:<%= left %>px;top:19px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr">&nbsp;</div>
<% <%
left = left + width+1 left = left + width+1
end %> end %>
...@@ -155,7 +125,7 @@ if show_weeks ...@@ -155,7 +125,7 @@ if show_weeks
while week_f <= @date_to while week_f <= @date_to
width = (week_f + 6 <= @date_to) ? 7 * zoom -1 : (@date_to - week_f + 1) * zoom-1 width = (week_f + 6 <= @date_to) ? 7 * zoom -1 : (@date_to - week_f + 1) * zoom-1
%> %>
<div style="left:<%= left %>px;top:19px;width:<%= width %>px;height:<%= height %>px;" class="m_bg"> <div style="left:<%= left %>px;top:19px;width:<%= width %>px;height:<%= height %>px;" class="gantt_hdr">
<small><%= week_f.cweek if width >= 16 %></small> <small><%= week_f.cweek if width >= 16 %></small>
</div> </div>
<% <%
...@@ -175,7 +145,7 @@ if show_days ...@@ -175,7 +145,7 @@ if show_days
(@date_to - @date_from + 1).to_i.times do (@date_to - @date_from + 1).to_i.times do
width = zoom - 1 width = zoom - 1
%> %>
<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"> <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">
<%= day_name(wday)[0,1] %> <%= day_name(wday)[0,1] %>
</div> </div>
<% <%
...@@ -236,7 +206,6 @@ end %> ...@@ -236,7 +206,6 @@ end %>
<table width="100%"> <table width="100%">
<tr> <tr>
<td align="left"><%= link_to ('&#171; ' + l(:label_previous)), :year => (@date_from << @months).year, :month => (@date_from << @months).month, :zoom => @zoom, :months => @months %></td> <td align="left"><%= link_to ('&#171; ' + l(:label_previous)), :year => (@date_from << @months).year, :month => (@date_from << @months).month, :zoom => @zoom, :months => @months %></td>
<td>
<td align="right"><%= link_to (l(:label_next) + ' &#187;'), :year => (@date_from >> @months).year, :month => (@date_from >> @months).month, :zoom => @zoom, :months => @months %></td> <td align="right"><%= link_to (l(:label_next) + ' &#187;'), :year => (@date_from >> @months).year, :month => (@date_from >> @months).month, :zoom => @zoom, :months => @months %></td>
</tr> </tr>
</table> </table>
\ No newline at end of file
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
<tbody> <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 %></td>
<td><%=h project.description %> <td><%=h project.description %></td>
<td align="center"><%= format_date(project.created_on) %> <td align="center"><%= format_date(project.created_on) %></td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<tbody> <tbody>
<% for issue in @issues %> <% for issue in @issues %>
<tr class="<%= cycle("odd", "even") %>"> <tr class="<%= cycle("odd", "even") %>">
<th width="15"><%= check_box_tag "issue_ids[]", issue.id %></th> <th style="width:15px;"><%= check_box_tag "issue_ids[]", issue.id, false, :id => "issue_#{issue.id}" %></th>
<td align="center"><%= link_to issue.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"><%= 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><div class="square" style="background:#<%= issue.status.html_color %>;"></div> <%= issue.status.name %></td>
...@@ -74,12 +74,11 @@ ...@@ -74,12 +74,11 @@
<%= link_to 'CSV', {:action => 'export_issues_csv', :id => @project}, :class => 'icon file' %>, <%= 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" %>
<%= submit_tag l(:button_move), :class => "button-small" %>
<%= end_form_tag %>
&nbsp; &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>
<%= end_form_tag %>
<% end %> <% end %>
<% end %> <% end %>
\ No newline at end of file
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</li> </li>
<% end %> <% end %>
</ul> </ul>
<center><small><%= link_to l(:label_issue_view_all), :controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1 %></small></center> <p class="textcenter"><small><%= link_to l(:label_issue_view_all), :controller => 'projects', :action => 'list_issues', :id => @project, :set_filter => 1 %></small></p>
</div> </div>
</div> </div>
...@@ -51,12 +51,6 @@ ...@@ -51,12 +51,6 @@
<div class="box"> <div class="box">
<h3><%=l(:label_news_latest)%></h3> <h3><%=l(:label_news_latest)%></h3>
<%= render :partial => 'news/news', :collection => @news %> <%= render :partial => 'news/news', :collection => @news %>
<center><small><%= link_to l(:label_news_view_all), :controller => 'projects', :action => 'list_news', :id => @project %></small></center> <p class="textcenter"><small><%= link_to l(:label_news_view_all), :controller => 'projects', :action => 'list_news', :id => @project %></small></p>
</div> </div>
</div> </div>
\ No newline at end of file
<script> <script type="text/javascript">
//<![CDATA[
function add_filter() { function add_filter() {
select = $('add_filter_select'); select = $('add_filter_select');
field = select.value field = select.value
...@@ -20,74 +20,74 @@ function toggle_filter(field) { ...@@ -20,74 +20,74 @@ function toggle_filter(field) {
check_box = $('cb_' + field); check_box = $('cb_' + field);
if (check_box.checked) { if (check_box.checked) {
Element.show("operators[" + field + "]"); Element.show("operators_" + field);
toggle_operator(field); toggle_operator(field);
} else { } else {
Element.hide("operators[" + field + "]"); Element.hide("operators_" + field);
Element.hide("values_div[" + field + "]"); Element.hide("div_values_" + field);
} }
} }
function toggle_operator(field) { function toggle_operator(field) {
operator = $("operators[" + field + "]"); operator = $("operators_" + field);
switch (operator.value) { switch (operator.value) {
case "!*": case "!*":
case "*": case "*":
case "t": case "t":
case "o": case "o":
case "c": case "c":
Element.hide("values_div[" + field + "]"); Element.hide("div_values_" + field);
break; break;
default: default:
Element.show("values_div[" + field + "]"); Element.show("div_values_" + field);
break; break;
} }
} }
function toggle_multi_select(field) { function toggle_multi_select(field) {
select = $('values[' + field + '][]'); select = $('values_' + field);
if (select.multiple == true) { if (select.multiple == true) {
select.multiple = false; select.multiple = false;
} else { } else {
select.multiple = true; select.multiple = true;
} }
} }
//]]>
</script> </script>
<fieldset style="margin:0;"><legend><%= l(:label_filter_plural) %></legend> <fieldset style="margin:0;"><legend><%= l(:label_filter_plural) %></legend>
<table width="100%" cellpadding=0 cellspacing=0> <table width="100%">
<tr> <tr>
<td> <td>
<table> <table style="padding:0;">
<% query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.each do |filter| %> <% query.available_filters.sort{|a,b| a[1][:order]<=>b[1][:order]}.each do |filter| %>
<% field = filter[0] <% field = filter[0]
options = filter[1] %> options = filter[1] %>
<tr <%= 'style="display:none;"' unless query.has_filter?(field) %> id="tr_<%= field %>"> <tr <%= 'style="display:none;"' unless query.has_filter?(field) %> id="tr_<%= field %>">
<td valign="top" width="200"> <td valign="top" style="width:200px;">
<%= check_box_tag 'fields[]', field, query.has_filter?(field), :onclick => "toggle_filter('#{field}');", :id => "cb_#{field}" %> <%= check_box_tag 'fields[]', field, query.has_filter?(field), :onclick => "toggle_filter('#{field}');", :id => "cb_#{field}" %>
<label for="cb_<%= field %>"><%= l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) %></label> <label for="cb_<%= field %>"><%= l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) %></label>
</td> </td>
<td valign="top" width="150"> <td valign="top" style="width:150px;">
<%= 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;" %> <%= 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;" %>
</td> </td>
<td valign="top"> <td valign="top">
<div id="values_div[<%= field %>]"> <div id="div_values_<%= field %>">
<% case options[:type] <% case options[:type]
when :list, :list_optional, :list_status %> when :list, :list_optional, :list_status %>
<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;"> <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;">
<%= options_for_select options[:values], query.values_for(field) %> <%= options_for_select options[:values], query.values_for(field) %>
</select> </select>
<%= link_to_function image_tag('expand'), "toggle_multi_select('#{field}');" %> <%= link_to_function image_tag('expand'), "toggle_multi_select('#{field}');" %>
<% when :date, :date_past %> <% when :date, :date_past %>
<%= text_field_tag "values[#{field}][]", query.values_for(field), :size => 3, :class => "select-small" %> <%= l(:label_day_plural) %> <%= text_field_tag "values[#{field}][]", query.values_for(field), :id => "values_#{field}", :size => 3, :class => "select-small" %> <%= l(:label_day_plural) %>
<% when :text %> <% when :text %>
<%= text_field_tag "values[#{field}][]", query.values_for(field), :size => 30, :class => "select-small" %> <%= text_field_tag "values[#{field}][]", query.values_for(field), :id => "values_#{field}", :size => 30, :class => "select-small" %>
<% end %> <% end %>
</div> </div>
<script type="text/javascript">toggle_filter('<%= field %>');</script>
</td> </td>
</tr> </tr>
<script>toggle_filter('<%= field %>');</script>
<% end %> <% end %>
</table> </table>
</td> </td>
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
<% col_width = 70 / (@statuses.length+3) %> <% col_width = 70 / (@statuses.length+3) %>
<table class="list"> <table class="list">
<thead><tr> <thead><tr>
<th width="25%"></th> <th style="width:25%"></th>
<% for status in @statuses %> <% for status in @statuses %>
<th width="<%= col_width %>%" style="text-align:left;"><div class="square" style="background:#<%= status.html_color %>;"></div> <small><%= status.name %></small></th> <th style="text-align:left;width:<%= col_width %>%"><div class="square" style="background:#<%= status.html_color %>;"></div> <small><%= status.name %></small></th>
<% end %> <% end %>
<th align="center" width="<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th> <th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th>
<th align="center" width="<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></th> <th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></th>
<th align="center" width="<%= col_width %>%"><strong><%=l(:label_total)%></strong></th> <th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_total)%></strong></th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<% for row in rows %> <% for row in rows %>
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
<% else %> <% else %>
<table class="list"> <table class="list">
<thead><tr> <thead><tr>
<th width="25%"></th> <th style="width:25%"></th>
<th align="center" width="25%"><%=l(:label_open_issues_plural)%></th> <th align="center" style="width:25%"><%=l(:label_open_issues_plural)%></th>
<th align="center" width="25%"><%=l(:label_closed_issues_plural)%></th> <th align="center" style="width:25%"><%=l(:label_closed_issues_plural)%></th>
<th align="center" width="25%"><%=l(:label_total)%></th> <th align="center" style="width:25%"><%=l(:label_total)%></th>
</tr></thead> </tr></thead>
<tbody> <tbody>
<% for row in rows %> <% for row in rows %>
......
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
end %> end %>
</tbody> </tbody>
</table> </table>
<p align="right"><em><%= l(:label_total) %>: <%= human_size(total_size) %></em></p> <p class="textright"><em><%= l(:label_total) %>: <%= human_size(total_size) %></em></p>
\ No newline at end of file \ No newline at end of file
<%= stylesheet_link_tag "scm" %>
<div class="contextual"> <div class="contextual">
<%= start_form_tag %> <%= start_form_tag %>
<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %> <p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
<%= submit_tag 'OK' %> <%= submit_tag 'OK' %></p>
<%= end_form_tag %>
</div> </div>
<h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2> <h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2>
<%= render :partial => 'dir_list' %> <%= render :partial => 'dir_list' %>
\ No newline at end of file
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>
\ No newline at end of file
<h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2> <h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2>
<%= stylesheet_link_tag "scm" %>
<table class="list"> <table class="list">
<thead><tr><th>@<%= @rev %></th><th>@<%= @rev_to %></th><th></th></tr></thead> <thead><tr><th>@<%= @rev %></th><th>@<%= @rev_to %></th><th></th></tr></thead>
<tbody> <tbody>
...@@ -52,4 +50,8 @@ line_num_r = 0 %> ...@@ -52,4 +50,8 @@ line_num_r = 0 %>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
\ No newline at end of file
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>
\ No newline at end of file
<%= stylesheet_link_tag "scm" %>
<div class="contextual"> <div class="contextual">
<%= start_form_tag %> <%= start_form_tag %>
<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %> <p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
<%= submit_tag 'OK' %> <%= submit_tag 'OK' %></p>
<%= end_form_tag %>
</div> </div>
<h2><%= l(:label_revision) %> <%= @revision.identifier %></h2> <h2><%= l(:label_revision) %> <%= @revision.identifier %></h2>
...@@ -32,4 +31,8 @@ ...@@ -32,4 +31,8 @@
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
<p><%= lwr(:label_modification, @revision.paths.length) %></p> <p><%= lwr(:label_modification, @revision.paths.length) %></p>
\ No newline at end of file
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>
\ No newline at end of file
<%= stylesheet_link_tag "scm" %>
<div class="contextual"> <div class="contextual">
<%= start_form_tag %> <%= start_form_tag %>
<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %> <p><%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
<%= submit_tag 'OK' %> <%= submit_tag 'OK' %></p>
<%= end_form_tag %>
</div> </div>
<h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => @entry.kind, :revision => @rev } %></h2> <h2><%= render :partial => 'navigation', :locals => { :path => @path, :kind => @entry.kind, :revision => @rev } %></h2>
...@@ -29,10 +28,14 @@ ...@@ -29,10 +28,14 @@
<th align="center"><%= link_to revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier %></th> <th align="center"><%= link_to revision.identifier, :action => 'revision', :id => @project, :rev => revision.identifier %></th>
<td align="center"><em><%=h revision.author %></em></td> <td align="center"><em><%=h revision.author %></em></td>
<td align="center"><%= format_time(revision.time) %></td> <td align="center"><%= format_time(revision.time) %></td>
<td width="70%"><%= textilizable(revision.message) %></td> <td style="width:70%"><%= textilizable(revision.message) %></td>
<td align="center"><%= link_to 'Diff', :action => 'diff', :id => @project, :path => @path, :rev => revision.identifier if @entry.is_file? && revision != @revisions.last %></td> <td align="center"><%= link_to 'Diff', :action => 'diff', :id => @project, :path => @path, :rev => revision.identifier if @entry.is_file? && revision != @revisions.last %></td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
<p><%= lwr(:label_modification, @revisions.length) %></p> <p><%= lwr(:label_modification, @revisions.length) %></p>
\ No newline at end of file
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>
\ No newline at end of file
<%= stylesheet_link_tag "scm" %>
<h2><%= l(:label_repository) %></h2> <h2><%= l(:label_repository) %></h2>
<h3><%= l(:label_revision_plural) %></h3> <h3><%= l(:label_revision_plural) %></h3>
...@@ -12,4 +10,8 @@ ...@@ -12,4 +10,8 @@
<h3><%= l(:label_browse) %></h3> <h3><%= l(:label_browse) %></h3>
<%= render :partial => 'dir_list' %> <%= render :partial => 'dir_list' %>
\ No newline at end of file
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>
\ No newline at end of file
...@@ -505,6 +505,31 @@ font-size: 0.8em; ...@@ -505,6 +505,31 @@ font-size: 0.8em;
font-size: 1em; font-size: 1em;
} }
/***** Gantt chart *****/
.gantt_hdr {
position:absolute;
top:0;
height:16px;
border-top: 1px solid #c0c0c0;
border-bottom: 1px solid #c0c0c0;
border-right: 1px solid #c0c0c0;
text-align: center;
overflow: hidden;
}
.task {
position: absolute;
height:8px;
font-size:0.8em;
color:#888;
background:#aaa;
padding:0;
margin:0;
line-height:0.8em;
}
.task_late { background:#f66; }
.task_done { background:#66f; }
/***** CSS FORM ******/ /***** CSS FORM ******/
.tabular p{ .tabular p{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment