Changeset 11069 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-editor.php
- Timestamp:
- 06/26/2021 03:30:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-editor.php
r11055 r11069 239 239 <div class="meta"> 240 240 241 <?php if ( $translation->translation_status ): ?>241 <?php if ( $translation->translation_status && ( $can_approve_translation || $can_reject_self ) ): ?> 242 242 <div class="status-actions"> 243 <?php if ( $can_approve_translation ) : ?> 244 <?php if ( 'current' !== $translation->translation_status ) : ?> 245 <button class="approve" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-current_' . $translation->id ) ); ?>"><strong>+</strong> <?php _e( 'Approve', 'glotpress' ); ?></button> 246 <?php endif; ?> 247 <?php if ( 'rejected' !== $translation->translation_status ) : ?> 248 <button class="reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>−</strong> <?php _e( 'Reject', 'glotpress' ); ?></button> 249 <?php endif; ?> 250 <?php if ( 'fuzzy' !== $translation->translation_status ) : ?> 243 <?php if ( $can_approve_translation ) : ?> 244 <?php if ( 'current' !== $translation->translation_status ) : ?> 245 <button class="approve" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-current_' . $translation->id ) ); ?>"><strong>+</strong> <?php _e( 'Approve', 'glotpress' ); ?></button> 246 <?php endif; ?> 247 <?php if ( 'rejected' !== $translation->translation_status ) : ?> 248 <button class="reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>−</strong> <?php _e( 'Reject', 'glotpress' ); ?></button> 249 <?php endif; ?> 250 <?php if ( 'fuzzy' !== $translation->translation_status ) : ?> 251 <button class="fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button> 252 <?php endif; ?> 253 <?php elseif ( $can_reject_self ): ?> 254 <button class="reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>−</strong> <?php _e( 'Reject Suggestion', 'glotpress' ); ?></button> 251 255 <button class="fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button> 252 256 <?php endif; ?> 253 <?php elseif ( $can_reject_self ): ?>254 <button class="reject" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-rejected_' . $translation->id ) ); ?>"><strong>−</strong> <?php _e( 'Reject Suggestion', 'glotpress' ); ?></button>255 <button class="fuzzy" tabindex="-1" data-nonce="<?php echo esc_attr( wp_create_nonce( 'update-translation-status-fuzzy_' . $translation->id ) ); ?>"><strong>~</strong> <?php _e( 'Fuzzy', 'glotpress' ); ?></button>256 <?php endif; ?>257 257 </div> 258 258 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.