mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 02:53:43 +03:00
Style contributors list (first pass)
This commit is contained in:
parent
da76512d55
commit
7dbc725581
|
@ -43,3 +43,24 @@
|
||||||
.pledge-form .email-status.is-unconfirmed {
|
.pledge-form .email-status.is-unconfirmed {
|
||||||
color: #c92c2c;
|
color: #c92c2c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.contributor-list li * {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contributor-list .button-link-delete {
|
||||||
|
text-decoration: none;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contributor-list .avatar {
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contributor-list .contributor-list__name {
|
||||||
|
font-size: 1.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contributor-list .button {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
|
@ -28,21 +28,17 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
||||||
$contributor = get_user_by( 'login', $contributor_post->post_title );
|
$contributor = get_user_by( 'login', $contributor_post->post_title );
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
<?php echo get_avatar( $contributor->user_email, 32 ); ?>
|
<button class="button-link button-link-delete" data-action="remove-contributor" data-contributor-post="<?php echo esc_attr( $contributor_post->ID ); ?>" aria-label="<?php esc_html_e( 'Remove', 'wporg' ); ?>">
|
||||||
<?php echo esc_html( $contributor_post->post_title ); ?>
|
<span class="dashicons dashicons-no-alt" aria-hidden="true"></span>
|
||||||
<!-- TODO These buttons don't do anything yet.
|
|
||||||
<button class="button-primary" data-action="remove-contributor" data-contributor-post="<?php echo esc_attr( $contributor_post->ID ); ?>">
|
|
||||||
<?php esc_html_e( 'Remove', 'wporg' ); ?>
|
|
||||||
</button>
|
</button>
|
||||||
-->
|
<?php echo get_avatar( $contributor->user_email, 32 ); ?>
|
||||||
|
<span class="contributor-list__name">
|
||||||
|
<?php echo esc_html( $contributor_post->post_title ); ?>
|
||||||
|
</span>
|
||||||
<?php if ( 'pending' === $contributor_post->post_status ) : ?>
|
<?php if ( 'pending' === $contributor_post->post_status ) : ?>
|
||||||
<?php submit_button(
|
<button class="button" data-action="resend-contributor-confirmation" data-contributor-post="<?php echo esc_attr( $contributor_post->ID ); ?>">
|
||||||
'Resend Confirmation',
|
<?php esc_html_e( 'Resend Confirmation', 'wporg' ); ?>
|
||||||
'secondary',
|
</button>
|
||||||
'resend-contributor-confirmation',
|
|
||||||
false,
|
|
||||||
array( 'formaction' => add_query_arg( 'resend-contributor-id', $contributor_post->ID ) )
|
|
||||||
); ?>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
Loading…
Reference in a new issue