Changeset 4512
- Timestamp:
- 12/11/2016 10:10:26 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-project.php
r4187 r4512 200 200 '<tr> 201 201 <td class="contributor-name"> 202 %s 202 203 <a href="https://profiles.wordpress.org/%s/">%s %s</a> 203 204 <span>Last Activity: %s ago</span> … … 222 223 <td> 223 224 </tr>', 225 $contributor->is_editor ? '<span class="translation-editor">Editor</span>' : '', 224 226 $contributor->nicename, 225 227 get_avatar( $contributor->email, 40 ), -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/projects-wp-plugins-contributors.php
r2660 r4512 94 94 printf( 95 95 '<div class="contributors-list-box%s"> 96 <h4><span class="locale-name">%s<span> <span class="contributors-count">%s</span> < span class="locale-code">#%s</span></h4>96 <h4><span class="locale-name">%s<span> <span class="contributors-count">%s</span> <a href="%s"><span class="locale-code">#%s</span></a></h4> 97 97 <p><strong>Editors:</strong> %s</p> 98 98 <p><strong>Contributors:</strong> %s</p> … … 101 101 $locale->english_name, 102 102 sprintf( _n( '%s person', '%s persons', $data['count'] ), number_format_i18n( $data['count'] ) ), 103 esc_url( gp_url_join( '/locale', $locale->slug, 'default', $project->path ) ), 103 104 $locale->wp_locale, 104 105 wp_sprintf( '%l', $editors_list ), -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css
r3285 r4512 1424 1424 .locale-project-contributors-table .contributor-name { 1425 1425 width: 40%; 1426 position: relative; 1427 } 1428 1429 .locale-project-contributors-table .translation-editor { 1430 position: absolute; 1431 top: 37px; 1432 left: 0; 1433 width: 40px; 1434 color: #fff; 1435 font-weight: 200; 1436 line-height: 16px; 1437 text-align: center; 1438 background-color: #826eb4; 1426 1439 } 1427 1440 … … 1429 1442 font-size: 11px; 1430 1443 display: block; 1444 margin-top: 13px; 1431 1445 } 1432 1446 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-locale.php
r4511 r4512 359 359 } 360 360 361 $editors = array_keys( $locale_contributors['editors'] ); 362 361 363 // Get the names of the contributors. 362 364 foreach ( $contributors as $contributor ) { 363 if ( isset( $locale_contributors['editors'][ $contributor->user_id ] ) ) {364 continue;365 }366 367 368 365 if ( isset( $locale_contributors['contributors'][ $contributor->user_id ] ) ) { 369 366 // Update last updated and counts per status. … … 394 391 'waiting_count' => $contributor->waiting_count, 395 392 'fuzzy_count' => $contributor->fuzzy_count, 393 'is_editor' => in_array( $user->ID, $editors ), 396 394 ); 397 395 } 398 unset( $contributors );396 unset( $contributors, $editors ); 399 397 400 398 uasort( $locale_contributors['contributors'], array( $this, '_sort_contributors_by_total_count_callback' ) );
Note: See TracChangeset
for help on using the changeset viewer.