Changeset 2070 for sites/trunk/translate.wordpress.org/public_html/gp-templates/projects-wp-plugins.php
- Timestamp:
- 11/10/2015 11:49:53 PM (9 years ago)
- File:
-
- 1 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;
Note: See TracChangeset
for help on using the changeset viewer.