diff --git a/app/views/tasks/_task_processed.html.erb b/app/views/tasks/_task_processed.html.erb
new file mode 100644
index 0000000..7f35285
--- /dev/null
+++ b/app/views/tasks/_task_processed.html.erb
@@ -0,0 +1,23 @@
+
+ <%= task_information(task) %>
+
+
+ <%= _(Task::Status.names[task.status]) %>
+
+
+
+ <%= _('Created:') %>
+ <%= show_date(task.created_at) %>
+
+
+
+ <%= _('Processed:') %>
+ <%= show_date(task.end_date) %>
+
+
+<% if task.closed_by.present? %>
+
+ <%= _('Closed by:') %>
+ <%= link_to(task.closed_by.name, task.closed_by.url) %>
+
+<% end %>
diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb
index 6eb8533..7b20587 100644
--- a/app/views/tasks/index.html.erb
+++ b/app/views/tasks/index.html.erb
@@ -62,7 +62,9 @@
<% end %>
- <%= render :partial => 'task', :collection => @tasks %>
+ <% @tasks.each do |task| %>
+ <%= render :partial => partial_for_class(task.class, nil, nil), :locals => {:task => task} %>
+ <% end %>
<% unless @view_only %>
diff --git a/app/views/tasks/processed.html.erb b/app/views/tasks/processed.html.erb
index 36ac51f..8d2678a 100644
--- a/app/views/tasks/processed.html.erb
+++ b/app/views/tasks/processed.html.erb
@@ -40,29 +40,7 @@
<% @tasks.each do |item| %>
-
-
- <%= task_information(item) %>
-
-
- <%= _(Task::Status.names[item.status]) %>
-
-
-
- <%= _('Created:') %>
- <%= show_date(item.created_at) %>
-
-
-
- <%= _('Processed:') %>
- <%= show_date(item.end_date) %>
-
-
- <% if item.closed_by.present? %>
-
- <%= _('Closed by:') %>
- <%= link_to(item.closed_by.name, item.closed_by.url) %>
-
- <% end %>
+ <%= render :partial => partial_for_class(item.class, nil, 'processed'), :locals => {:task => item} %>
<% end %>
--
libgit2 0.21.2