Commit 172596eae1ee6c53056c886b22b0b196101e1266
Exists in
master
and in
8 other branches
Merge branch 'master' of gitlab.com:noosfero-plugins/proposals_discussion
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
views/tasks/_task.html.erb
1 | 1 | <div class="task_box" id="task-<%= task.id %>"> |
2 | 2 | |
3 | - <div class="task-proposal-source"><b><%= _('Source') %>:</b> <%= task.proposal_source %></div> | |
3 | + <% if task.respond_to?(:proposal_source) %> | |
4 | + <div class="task-proposal-source"><b><%= _('Source') %>:</b> <%= task.proposal_source %></div> | |
5 | + <% end %> | |
4 | 6 | <%= render :partial => 'task_icon', :locals => {:task => task} %> |
5 | 7 | |
6 | 8 | <% if !@view_only && profile.organization? && @responsible_candidates.present? %> | ... | ... |