Support the unlikely case of no contributors

This commit is contained in:
Kelly Dwan 2019-11-13 17:04:39 -05:00
parent 17f1c86be8
commit a67d2a45af
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -33,6 +33,9 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
<tbody>{{{ data.pending }}}</tbody> <tbody>{{{ data.pending }}}</tbody>
</table> </table>
<# } #> <# } #>
<# if ( ! data.publish.length && ! data.pending.length ) { #>
<p><?php esc_html_e( 'There are no contributors added to this pledge yet.', 'wporg-5ftf' ); ?></p>
<# } #>
</script> </script>
<script type="text/template" id="tmpl-5ftf-contributor"> <script type="text/template" id="tmpl-5ftf-contributor">