Ticket #1481: reaponsive-team-view.patch
File reaponsive-team-view.patch, 4.3 KB (added by , 10 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/css/i18n-teams.css
191 191 border-width: 1px 0 0 1px; 192 192 padding: 6px 15px; 193 193 } 194 195 @media (max-width: 700px) { 196 197 .translators-info, 198 .translators-info table, 199 .translators-info tbody, 200 .postcontent table, 201 .commentcontent table{ 202 border: 0 !important; 203 border-color: transparent; 204 } 205 .translators-info thead th { 206 display: none; 207 } 208 .translators-info table tbody th, 209 .translators-info table tbody tr, 210 .translators-info table tbody td { 211 display: block; 212 text-align: left; 213 } 214 .translators-info table tbody tr { 215 border: 1px solid #ccc; 216 margin-bottom: 30px; 217 } 218 .translators-info table tbody td { 219 padding: 3px 10px; 220 position: relative; 221 padding-left: 50%; 222 } 223 .translators-info table tbody td:before { 224 position: absolute; 225 top: 0; 226 left: 10px; 227 width: 45%; 228 } 229 .translators-info td:before { 230 content: attr(data-column-title); 231 } 232 233 } 234 No newline at end of file -
trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/views/all-locales.php
48 48 <th colspan="2"><?php _e( 'Locale', 'wporg' ); ?></th> 49 49 <th><?php _e( 'WP Locale', 'wporg' ); ?></th> 50 50 <th><?php _e( 'Version', 'wporg' ); ?></th> 51 <th colspan="2"> GlotPress</th>51 <th colspan="2"><?php _e( 'GlotPress', 'wporg' ); ?></th> 52 52 <th><!-- intentionally blank --></th> 53 53 </tr> 54 54 </thead> … … 60 60 $classes .= $locale_data[ $locale->wp_locale ]['release_status'] . ' ' . $locale_data[ $locale->wp_locale ]['translation_status']; 61 61 ?> 62 62 <tr class="<?php echo trim( $classes ); ?>"> 63 <td class="no-right-border"> 63 64 <td data-column-title="<?php esc_attr_e( 'Locale', 'wporg' ); ?>" class="no-right-border"> 64 65 <?php if ( $locale_data[ $locale->wp_locale ]['rosetta_site_url'] ) : ?> 65 66 <a href="<?php echo esc_url( $locale_data[ $locale->wp_locale ]['rosetta_site_url'] ); ?>"> 66 67 <?php echo esc_html( $locale->english_name ); ?> … … 69 70 <?php echo esc_html( $locale->english_name ); ?> 70 71 <?php endif; ?> 71 72 </td> 72 <td class="no-left-border"><?php echo esc_html( $locale->native_name ); ?></td>73 73 74 <td><?php echo esc_html( $locale->wp_locale ); ?></td> 74 <td data-column-title="<?php esc_attr_e( 'Locale', 'wporg' ); ?>" class="no-left-border"> 75 <?php echo esc_html( $locale->native_name ); ?> 76 </td> 75 77 76 <td> 78 <td data-column-title="<?php esc_attr_e( 'WP Locale', 'wporg' ); ?>"> 79 <?php echo esc_html( $locale->wp_locale ); ?> 80 </td> 81 82 <td data-column-title="<?php esc_attr_e( 'Version', 'wporg' ); ?>"> 77 83 <?php 78 84 if ( $locale_data[ $locale->wp_locale ]['rosetta_site_url'] ) { 79 85 if ( $locale_data[ $locale->wp_locale ]['latest_release'] ) { … … 86 92 } 87 93 ?> 88 94 </td> 89 <td class="right no-right-border"> 95 96 <td data-column-title="<?php esc_attr_e( 'GlotPress', 'wporg' ); ?>" class="right no-right-border"> 90 97 <a href="https://translate.wordpress.org/locale/<?php echo $locale->slug; ?>"> 91 98 <?php echo ( isset( $percentages[ $locale->wp_locale ] ) ) ? $percentages[ $locale->wp_locale ] . '%' : '—'; ?> 92 99 </a> 93 100 </td> 94 <td class="no-left-border nowrap"> 101 102 <td data-column-title="<?php esc_attr_e( 'GlotPress', 'wporg' ); ?>" class="no-left-border nowrap"> 95 103 <a href="https://translate.wordpress.org/locale/<?php echo $locale->slug; ?>"> 96 104 <?php echo $locale->slug; ?> 97 105 </a> 98 <td> 106 </td> 107 108 <td data-column-title="<?php esc_attr_e( 'Team', 'wporg' ); ?>"> 99 109 <a href="<?php echo esc_url( add_query_arg( 'locale', $locale->wp_locale ) ); ?>"> 100 110 <?php _e( 'Team', 'wporg' ); ?> 101 111 </a> 102 112 </td> 113 103 114 </tr> 104 115 <?php endforeach; ?> 105 116 </tbody>