From a5d4228c6d0d55e378d2f951b88b84203241defb Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Wed, 11 Dec 2019 16:11:41 -0500 Subject: [PATCH] My Pledges: Add an edit link to take you to your profile (#128) --- plugins/wporg-5ftf/views/list-my-pledges.php | 25 +++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/plugins/wporg-5ftf/views/list-my-pledges.php b/plugins/wporg-5ftf/views/list-my-pledges.php index 3685a1f..f8796d9 100644 --- a/plugins/wporg-5ftf/views/list-my-pledges.php +++ b/plugins/wporg-5ftf/views/list-my-pledges.php @@ -18,6 +18,11 @@ use WP_User, WP_Post; $has_contributions = $contributor_pending_posts || $contributor_publish_posts; $has_profile_data = $profile_data['hours_per_week'] && $profile_data['team_names']; +$edit_link = sprintf( + '%2$s', + __( 'edit hours pledged', 'wporg-5ftf' ), + __( '(edit)', 'wporg-5ftf' ) +); ?> @@ -33,15 +38,17 @@ $has_profile_data = $profile_data['hours_per_week'] && $profile_data['team_name

- %1$s hours a week %3$s across %2$s organization.', + 'Pledged %1$s hours a week %3$s across %2$s organizations.', count( $confirmed_pledge_ids ), 'wporg-5ftf' ), $profile_data['hours_per_week'], - count( $confirmed_pledge_ids ) + count( $confirmed_pledge_ids ), + $edit_link ) ); ?>

@@ -109,7 +116,10 @@ $has_profile_data = $profile_data['hours_per_week'] && $profile_data['team_name -

You don't currently have any sponsorships. If your employer is sponsoring part of your time to contribute to WordPress, please ask them to submit a pledge and list you as a contributor.

+ submit a pledge and list you as a contributor.', 'wporg-5ftf' ), + esc_url( $pledge_url ) + ) ); ?> @@ -129,7 +139,10 @@ $has_profile_data = $profile_data['hours_per_week'] && $profile_data['team_name

- Please log in to your WordPress.org account in order to view your pledges. + log in to your WordPress.org account in order to view your pledges.', 'wporg-5ftf' ), + esc_url( wp_login_url( get_permalink() ) ) + ) ); ?>