Shows name if valuator description is empty
This commit is contained in:
@@ -10,4 +10,8 @@ class Valuator < ActiveRecord::Base
|
||||
def description_or_email
|
||||
description.present? ? description : email
|
||||
end
|
||||
|
||||
def description_or_name
|
||||
description.present? ? description : name
|
||||
end
|
||||
end
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
<% if spending_proposal.valuators.size == 0 %>
|
||||
<%= t("admin.spending_proposals.index.no_valuators_assigned") %>
|
||||
<% else %>
|
||||
<%= spending_proposal.valuators.collect(&:description).join(', ') %>
|
||||
<%= spending_proposal.valuators.collect(&:description_or_name).join(', ') %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="small">
|
||||
|
||||
Reference in New Issue
Block a user