mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-20 18:13:44 +03:00
Hide the "resend confirmation" button on draft pledges
The confirmation hasn't been sent in the first place, so this button is misleading
This commit is contained in:
parent
d0dc2f0a14
commit
531e71a552
|
@ -52,6 +52,10 @@
|
|||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.pledge-contributors.pledge-status__draft .resend-confirm {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.contributor-list th,
|
||||
.contributor-list td,
|
||||
.contributor-list th *,
|
||||
|
|
|
@ -26,7 +26,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
|||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?php esc_html_e( 'Contributor', 'wporg-5ftf' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Resend Confirmation', 'wporg-5ftf' ); ?></th>
|
||||
<th scope="col" class="resend-confirm"><?php esc_html_e( 'Resend Confirmation', 'wporg-5ftf' ); ?></th>
|
||||
<th scope="col"><?php esc_html_e( 'Remove Contributor', 'wporg-5ftf' ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -47,7 +47,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
|||
</span>
|
||||
</th>
|
||||
<# if ( 'pending' === data.status ) { #>
|
||||
<td>
|
||||
<td class="resend-confirm">
|
||||
<button
|
||||
class="button"
|
||||
data-action="resend-contributor-confirmation"
|
||||
|
@ -75,7 +75,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
|||
</script>
|
||||
|
||||
<div id="5ftf-contributors">
|
||||
<div class="pledge-contributors">
|
||||
<div class="pledge-contributors pledge-status__<?php echo esc_attr( get_post_status() ); ?>">
|
||||
<?php if ( ! empty( $contributors ) ) : ?>
|
||||
<?php
|
||||
printf(
|
||||
|
|
Loading…
Reference in a new issue