Changeset 2070
- Timestamp:
- 11/10/2015 11:49:53 PM (9 years ago)
- Location:
- sites/trunk/translate.wordpress.org/public_html/gp-templates
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/public_html/gp-templates/projects-wp-plugins.php
r2069 r2070 1 1 <?php 2 2 $edit_link = gp_link_project_edit_get( $project, __( '(edit)' ) ); 3 $table_headings = array( 4 'locale' => __( 'Locale' ), 5 'dev' => __( 'Development' ), 6 'dev-readme' => __( 'Development Readme' ), 7 'stable' => __( 'Stable' ), 8 'stable-readme' => __( 'Stable Readme' ), 9 'waiting' => __( 'Waiting' ), 10 ); 3 11 4 12 gp_title( sprintf( __( '%s < GlotPress' ), esc_html( $project->name ) ) ); … … 31 39 <thead> 32 40 <tr> 33 <th class="title"><?php _e( 'Locale' ); ?></th> 34 <th class="title"><?php _e( 'Development' ); ?></th> 35 <th class="title"><?php _e( 'Development Readme' ); ?></th> 36 <th class="title"><?php _e( 'Stable' ); ?></th> 37 <th class="title"><?php _e( 'Stable Readme' ); ?></th> 38 <th class="title"><?php _e( 'Waiting' ); ?></th> 41 <?php foreach ( $table_headings as $heading ) : ?> 42 <th class="title"><?php echo $heading; ?></th> 43 <?php endforeach; ?> 39 44 </tr> 40 45 </thead> … … 87 92 endif; 88 93 89 echo '<td data- sort-value="' . esc_attr( $percent ) . '" class="percent' . $percent_class .'">'. gp_link_get( $link_url, $link_text ) . '</td>';94 echo '<td data-column-title="' . esc_attr( $table_headings[ $subproject_slug ] ) . '" data-sort-value="' . esc_attr( $percent ) . '" class="percent' . $percent_class .'">'. gp_link_get( $link_url, $link_text ) . '</td>'; 90 95 else : 91 echo '<td class="none" data- sort-value="-1">—</td>';96 echo '<td class="none" data-column-title="" data-sort-value="-1">—</td>'; 92 97 endif; 93 98 endforeach; -
sites/trunk/translate.wordpress.org/public_html/gp-templates/stats-overview.php
r2056 r2070 47 47 foreach ( $projects as $slug => $project ) { 48 48 $projecturl = gp_url( gp_url_join( 'locale', $gp_locale->slug, $set_slug, $project->path ) ); 49 $project_name = str_replace( array( 'WordPress.org ', 'WordPress for ', 'WordPress ', 'ectory' ), '', $project->name ); 49 50 50 51 if ( isset( $translation_locale_statuses[ $locale_slug ][ $project->path ] ) ) { … … 59 60 } 60 61 $percent_class = 'percent' . $percent_class; 61 echo '<td data- sort-value="'. esc_attr( $percent ) . '" class="' . $percent_class .'"><a href="' . $projecturl . '">' . number_format( $percent ) . '</a></td>';62 echo '<td data-column-title="' . esc_attr( $project_name ) . '" data-sort-value="'. esc_attr( $percent ) . '" class="' . $percent_class .'"><a href="' . $projecturl . '">' . number_format( $percent ) . '</a></td>'; 62 63 } else { 63 64 $percent_class = 'percent' . (int) ( $percent / 10 ) * 10; 64 echo '<td data- sort-value="' . esc_attr( $percent ) . '" class="' . $percent_class .'"><a href="' . $projecturl . '">' . $percent . '%</a></td>';65 echo '<td data-column-title="' . esc_attr( $project_name ) . '" data-sort-value="' . esc_attr( $percent ) . '" class="' . $percent_class .'"><a href="' . $projecturl . '">' . $percent . '%</a></td>'; 65 66 } 66 67 67 68 } else { 68 echo '<td class="none" data- sort-value="-1">—</td>';69 echo '<td class="none" data-column-title="" data-sort-value="-1">—</td>'; 69 70 } 70 71 } -
sites/trunk/translate.wordpress.org/public_html/gp-templates/style.css
r1937 r2070 904 904 } 905 905 906 .stats-table table tbody td:nth-of-type(1):before { content: "4.2.x"; } 907 .stats-table table tbody td:nth-of-type(2):before { content: "4.3.x"; } 908 .stats-table table tbody td:nth-of-type(3):before { content: "Rosetta"; } 909 .stats-table table tbody td:nth-of-type(4):before { content: "Browse Happy"; } 910 .stats-table table tbody td:nth-of-type(5):before { content: "Theme Dir"; } 911 .stats-table table tbody td:nth-of-type(6):before { content: "Plugin Dir"; } 912 .stats-table table tbody td:nth-of-type(7):before { content: "Forums"; } 913 .stats-table table tbody td:nth-of-type(8):before { content: "Android"; } 914 .stats-table table tbody td:nth-of-type(9):before { content: "iOS"; } 915 .stats-table table tbody td:nth-of-type(10):before { content: "Waiting"; } 906 .stats-table td:before { 907 content: attr(data-column-title); 908 } 916 909 } 917 910 … … 933 926 } 934 927 .stats-table table thead th { 928 cursor: pointer; 935 929 margin: 0; 936 930 margin-right: 0px;
Note: See TracChangeset
for help on using the changeset viewer.