Changeset 1955
- Timestamp:
- 10/10/2015 07:21:00 PM (9 years ago)
- Location:
- sites/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/templates/core/site-specific.html
r1951 r1955 14 14 <div id="report-popup"></div> 15 15 <script> 16 (function($){ 17 var titles = { 16 var wpTracContributorLabels = { 18 17 matt: 'Project Lead', 19 18 markjaquith: 'Lead Developer', … … 24 23 25 24 ocean90: 'Core Committer', 26 sergeybiryukov: 'Core Committer',25 SergeyBiryukov: 'Core Committer', 27 26 johnbillion: 'Core Committer', 28 27 pento: 'Core Committer', … … 44 43 iandstewart: 'Themes Committer', 45 44 karmatosed: 'Themes Committer', 46 drewapicture: 'Docs Committer',45 DrewAPicture: 'Docs Committer', 47 46 48 47 ryan: 'Lead Developer', … … 52 51 }; 53 52 54 $('h3.change .profile-link').each( function() {55 var el = $(this);56 user = el.attr('href').split('/').pop().toLowerCase();57 if ( user in titles ) {58 el.after( ' <span class="contributor-label">(' + titles[ user ] + ')</span>' );59 }60 });61 })(jQuery);62 53 </script> 63 54 </body> -
sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js
r1952 r1955 50 50 wpTrac.nonGardeners(); 51 51 } 52 53 if ( 'undefined' !== typeof wpTracContributorLabels ) { 54 wpTrac.showContributorLabels( wpTracContributorLabels ); 55 } 56 52 57 if ( ! $(document.body).hasClass( 'plugins' ) ) { 53 58 wpTrac.workflow.init(); … … 59 64 }, 60 65 66 showContributorLabels: function( labels ) { 67 $( 'h3.change .username' ).each( function() { 68 var $el = $( this ), 69 username = $el.data( 'username' ); 70 71 if ( username in labels ) { 72 $el.parent( 'a.profile-link' ).after( ' <span class="contributor-label">(' + labels[ username ] + ')</span>' ); 73 } 74 }); 75 }, 61 76 // These ticket hacks need to be re-run after ticket previews. 62 77 postPreviewHacks: function() { … … 74 89 } 75 90 appendTo = li.parent().parent(); // div.change 76 image = new Image ;91 image = new Image(); 77 92 image.src = href; 78 93 image.onload = function() {
Note: See TracChangeset
for help on using the changeset viewer.