]> source.dussan.org Git - redmine.git/commitdiff
rename .rhtml to .html.erb of app/views/reports/_details.rhtml.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 25 Aug 2011 00:21:17 +0000 (00:21 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 25 Aug 2011 00:21:17 +0000 (00:21 +0000)
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6604 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/reports/_details.html.erb [new file with mode: 0644]
app/views/reports/_details.rhtml [deleted file]

diff --git a/app/views/reports/_details.html.erb b/app/views/reports/_details.html.erb
new file mode 100644 (file)
index 0000000..47eda99
--- /dev/null
@@ -0,0 +1,53 @@
+<% if @statuses.empty? or rows.empty? %>
+    <p><i><%=l(:label_no_data)%></i></p>
+<% else %>
+<% col_width = 70 / (@statuses.length+3) %>
+<table class="list">
+<thead><tr>
+<th style="width:25%"></th>
+<% for status in @statuses %>
+<th style="width:<%= col_width %>%"><%=h status.name %></th>
+<% end %>
+<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th>
+<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></th>
+<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_total)%></strong></th>
+</tr></thead>
+<tbody>
+<% for row in rows %>
+<tr class="<%= cycle("odd", "even") %>">
+  <td><%= link_to h(row.name), :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
+                                                :set_filter => 1,
+                                                :subproject_id => '!*',
+                                                "#{field_name}" => row.id %></td>
+  <% for status in @statuses %>
+    <td align="center"><%= aggregate_link data, { field_name => row.id, "status_id" => status.id },
+                                                :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
+                                                :set_filter => 1,
+                                                :subproject_id => '!*',
+                                                "status_id" => status.id,
+                                                "#{field_name}" => row.id %></td>
+  <% end %>
+  <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 },
+                                                :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
+                                                :set_filter => 1,
+                                                :subproject_id => '!*',
+                                                "#{field_name}" => row.id,
+                                                "status_id" => "o" %></td>
+  <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 },
+                                                :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
+                                                :set_filter => 1,
+                                                :subproject_id => '!*',
+                                                "#{field_name}" => row.id,
+                                                "status_id" => "c" %></td>
+  <td align="center"><%= aggregate_link data, { field_name => row.id },
+                                                :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
+                                                :set_filter => 1,
+                                                :subproject_id => '!*',
+                                                "#{field_name}" => row.id,
+                                                "status_id" => "*" %></td>
+</tr>
+<% end %>
+</tbody>
+</table>
+<% end
+  reset_cycle %>
diff --git a/app/views/reports/_details.rhtml b/app/views/reports/_details.rhtml
deleted file mode 100644 (file)
index 47eda99..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-<% if @statuses.empty? or rows.empty? %>
-    <p><i><%=l(:label_no_data)%></i></p>
-<% else %>
-<% col_width = 70 / (@statuses.length+3) %>
-<table class="list">
-<thead><tr>
-<th style="width:25%"></th>
-<% for status in @statuses %>
-<th style="width:<%= col_width %>%"><%=h status.name %></th>
-<% end %>
-<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_open_issues_plural)%></strong></th>
-<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_closed_issues_plural)%></strong></th>
-<th align="center" style="width:<%= col_width %>%"><strong><%=l(:label_total)%></strong></th>
-</tr></thead>
-<tbody>
-<% for row in rows %>
-<tr class="<%= cycle("odd", "even") %>">
-  <td><%= link_to h(row.name), :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
-                                                :set_filter => 1,
-                                                :subproject_id => '!*',
-                                                "#{field_name}" => row.id %></td>
-  <% for status in @statuses %>
-    <td align="center"><%= aggregate_link data, { field_name => row.id, "status_id" => status.id },
-                                                :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
-                                                :set_filter => 1,
-                                                :subproject_id => '!*',
-                                                "status_id" => status.id,
-                                                "#{field_name}" => row.id %></td>
-  <% end %>
-  <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 },
-                                                :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
-                                                :set_filter => 1,
-                                                :subproject_id => '!*',
-                                                "#{field_name}" => row.id,
-                                                "status_id" => "o" %></td>
-  <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 },
-                                                :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
-                                                :set_filter => 1,
-                                                :subproject_id => '!*',
-                                                "#{field_name}" => row.id,
-                                                "status_id" => "c" %></td>
-  <td align="center"><%= aggregate_link data, { field_name => row.id },
-                                                :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
-                                                :set_filter => 1,
-                                                :subproject_id => '!*',
-                                                "#{field_name}" => row.id,
-                                                "status_id" => "*" %></td>
-</tr>
-<% end %>
-</tbody>
-</table>
-<% end
-  reset_cycle %>