From 9523fc5c3008fb86d6873b183703c9f401fa96ce Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 13 Jul 2015 16:51:45 -0300 Subject: [PATCH] Fix generic task partial --- views/tasks/_task.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/tasks/_task.html.erb b/views/tasks/_task.html.erb index 6ae1208..1bc8b09 100644 --- a/views/tasks/_task.html.erb +++ b/views/tasks/_task.html.erb @@ -1,6 +1,8 @@
-
<%= _('Source') %>: <%= task.proposal_source %>
+ <% if task.respond_to?(:proposal_source) %> +
<%= _('Source') %>: <%= task.proposal_source %>
+ <% end %> <%= render :partial => 'task_icon', :locals => {:task => task} %> <% if !@view_only && profile.organization? && @responsible_candidates.present? %> -- libgit2 0.21.2