Changeset 2660
- Timestamp:
- 03/01/2016 08:10:20 PM (9 years ago)
- Location:
- sites/trunk/translate.wordpress.org/public_html/gp-templates-new
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/public_html/gp-templates-new/projects-wp-plugins-contributors.php
r2439 r2660 44 44 45 45 <h3>Activity</h3> 46 <p>The graph shows the recent activity of your contributors. It 's updated once per day.</p>46 <p>The graph shows the recent activity of your contributors. It’s updated once per day.</p> 47 47 48 48 <div class="ct-chart ct-chart-contributors"></div> … … 52 52 <?php 53 53 if ( $contributors_by_locale ) { 54 echo '<div class="contributors-list-search"><input type="search" placeholder="Filter teams…" id="contributors-list-search"></div>'; 54 ?> 55 <div class="contributors-list-filter"> 56 <button type="button" class="button-link filter active" data-filter="all">All</button> | 57 <button type="button" class="button-link filter" data-filter="has-editors">With Editors</button> | 58 <button type="button" class="button-link filter" data-filter="no-editors">Without Editors</button> 59 60 <input type="search" class="search" placeholder="Filter teams…" id="contributors-list-search"> 61 </div> 62 <?php 55 63 echo '<div id="contributors-list" class="contributors-list">'; 56 64 foreach ( $contributors_by_locale as $locale_slug => $data ) { 57 65 $locale = GP_Locales::by_slug( $locale_slug ); 66 $has_editors = ! empty ( $data['editors'] ); 58 67 59 68 $editors_list = array(); … … 84 93 85 94 printf( 86 '<div class="contributors-list-box ">95 '<div class="contributors-list-box%s"> 87 96 <h4><span class="locale-name">%s<span> <span class="contributors-count">%s</span> <span class="locale-code">#%s</span></h4> 88 97 <p><strong>Editors:</strong> %s</p> 89 98 <p><strong>Contributors:</strong> %s</p> 90 99 </div>', 100 $has_editors ? ' has-editors' : ' no-editors', 91 101 $locale->english_name, 92 102 sprintf( _n( '%s person', '%s persons', $data['count'] ), number_format_i18n( $data['count'] ) ), … … 127 137 }).show(); 128 138 } 139 }); 140 141 $( '.contributors-list-filter .filter' ).on( 'click', function() { 142 var $el = $( this ), filter = $el.data( 'filter' ); 143 144 $el.siblings( '.active' ).removeClass( 'active' ); 145 $el.addClass( 'active' ); 146 $( '#contributors-list' ).attr( 'data-current-filter', filter ); 129 147 }); 130 148 }); -
sites/trunk/translate.wordpress.org/public_html/gp-templates-new/projects-wp-plugins-language-packs.php
r2439 r2660 43 43 <h3>Language Packs</h3> 44 44 45 <p>Language packs are installed automatically if they are available. If no secent</p>45 <p>Language packs are installed automatically if they are available. Once a locale has reached the threshold for a package build it will be listed here. It also means that you don’t have to include this language in your plugin anymore.</p> 46 46 47 47 <?php … … 50 50 foreach ( $language_packs->translations as $language_pack ) { 51 51 printf( 52 '<li><strong>%s :</strong> Last updated %s for version %s (<a href="%s">zip</a>)</li>',52 '<li><strong>%s <span class="locale-code">(%s)</span>:</strong> Last updated %s for version %s (<a href="%s">zip</a>)</li>', 53 53 $language_pack->english_name, 54 $language_pack->language, 54 55 $language_pack->updated, 55 56 $language_pack->version, -
sites/trunk/translate.wordpress.org/public_html/gp-templates-new/style.css
r2439 r2660 1088 1088 } 1089 1089 1090 .language-packs-list li strong .locale-code { 1091 font-size: 11px; 1092 color: #555d66; 1093 } 1094 1090 1095 .ct-chart-contributors { 1091 1096 position: relative; … … 1212 1217 } 1213 1218 1214 .contributors-list- search{1219 .contributors-list-filter { 1215 1220 margin: 15px 0 10px; 1216 1221 text-align: right; 1217 1222 } 1218 1223 1219 .contributors-list- search input{1220 margin: 0 ;1224 .contributors-list-filter .search { 1225 margin: 0 0 0 10px; 1221 1226 padding: 2px 4px; 1222 1227 width: 280px; … … 1234 1239 } 1235 1240 1241 @media (max-width: 600px) { 1242 .contributors-list-filter { 1243 text-align: center; 1244 } 1245 1246 .contributors-list-filter .search { 1247 display: block; 1248 width: 100%; 1249 margin: 10px 0; 1250 } 1251 } 1252 1253 /* Buttons that look like links, for a cross of good semantics with the visual */ 1254 .button-link { 1255 margin: 0; 1256 padding: 0; 1257 -webkit-box-shadow: none; 1258 box-shadow: none; 1259 border: 0; 1260 -webkit-border-radius: 0; 1261 border-radius: 0; 1262 background: none; 1263 outline: none; 1264 cursor: pointer; 1265 font: inherit; 1266 color: #0074a2; 1267 } 1268 1269 .button-link:hover { 1270 color: #2ea2cc; 1271 } 1272 1273 .contributors-list-filter .filter.active { 1274 border-bottom: 1px solid #dfdfdf; 1275 } 1276 1277 .contributors-list[data-current-filter="has-editors"] .no-editors, 1278 .contributors-list[data-current-filter="no-editors"] .has-editors { 1279 display: none !important; 1280 }
Note: See TracChangeset
for help on using the changeset viewer.