Sha256: 495325ca299b045fc40d9f9f13eeefa49eebeae6aef2e5391e50b79b71561d5c

Contents?: true

Size: 291 Bytes

Versions: 4

Compression:

Stored size: 291 Bytes

Contents

<!-- replace "erb[loud]:contains('proposal.valuation_assignments.count')" -->

<% count = proposal.valuation_assignments.count %>
<% if count.zero? %>
  0
<% else %>
  <%= proposal.valuation_assignments.first&.valuator_role&.user&.name %>
  <%= "(+#{(count - 1)})" if count > 1 %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-reporting_proposals-0.6.0 app/overrides/decidim/proposals/admin/proposals/_proposal-tr/add_valuators_name.html.erb.deface
decidim-reporting_proposals-0.5.2 app/overrides/decidim/proposals/admin/proposals/_proposal-tr/add_valuators_name.html.erb.deface
decidim-reporting_proposals-0.5.1 app/overrides/decidim/proposals/admin/proposals/_proposal-tr/add_valuators_name.html.erb.deface
decidim-reporting_proposals-0.5.0 app/overrides/decidim/proposals/admin/proposals/_proposal-tr/add_valuators_name.html.erb.deface