Index: /sites/trunk/wordpress.org/public_html/style/trac/wp-trac.css
===================================================================
--- /sites/trunk/wordpress.org/public_html/style/trac/wp-trac.css (revision 1962)
+++ /sites/trunk/wordpress.org/public_html/style/trac/wp-trac.css (revision 1963)
@@ -281,10 +281,10 @@
/* =roadmap.css */
table.progress td.closed {
- background-color: #83B4D8;
- background-image: linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
- background-image: -o-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
- background-image: -moz-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
- background-image: -webkit-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
- background-image: -ms-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
+ background-color: #83B4D8;
+ background-image: linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
+ background-image: -o-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
+ background-image: -moz-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
+ background-image: -webkit-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
+ background-image: -ms-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(144,197,238) 100%);
}
table.progress {
@@ -682,4 +682,11 @@
margin: 0 8px 0 -4px;
}
+span.contributor-label {
+ font-size: 0.9em;
+ background: #ddd;
+ color: #222;
+ padding: 3px 4px;
+ margin: 0 2px 0 3px;
+}
#changelog span:target {
background-clip: content-box;
@@ -943,21 +950,21 @@
#notifications .star-list a.star:before {
color: #fff;
- display: inline-block;
+ display: inline-block;
margin: 25px 0 0 26px;
- width: 14px;
- height: 14px;
+ width: 14px;
+ height: 14px;
position: absolute;
color: #fff;
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: #333;
- -webkit-font-smoothing: antialiased;
- font-size: 14px;
- line-height: 1;
- font-family: "dashicons";
- text-decoration: inherit;
- font-weight: normal;
- font-style: normal;
- vertical-align: top;
- text-align: center;
+ -webkit-font-smoothing: antialiased;
+ font-size: 14px;
+ line-height: 1;
+ font-family: "dashicons";
+ text-decoration: inherit;
+ font-weight: normal;
+ font-style: normal;
+ vertical-align: top;
+ text-align: center;
content: "\f155";
}
@@ -1629,26 +1636,26 @@
/* =Report screens */
.create-new-ticket.button {
- margin: 10px 10px 0;
- float: right;
- clear: right;
- font-size: 15px;
- min-height: 40px;
- padding: 0;
+ margin: 10px 10px 0;
+ float: right;
+ clear: right;
+ font-size: 15px;
+ min-height: 40px;
+ padding: 0;
}
.create-new-ticket a {
- line-height: 38px;
- color: #fff !important;
- background: none !important;
- border: none !important;
- display: block;
- height: 100%;
- width: 100%;
- padding: 0 12px 2px;
+ line-height: 38px;
+ color: #fff !important;
+ background: none !important;
+ border: none !important;
+ display: block;
+ height: 100%;
+ width: 100%;
+ padding: 0 12px 2px;
}
.create-new-ticket .ext-link .icon {
- display: none;
+ display: none;
}
.create-new-ticket a:active {
- color: rgba(255,255,255,0.95) !important;
+ color: rgba(255,255,255,0.95) !important;
}
#content.report #prefs {
@@ -1659,5 +1666,5 @@
}
#content.report #prefs div {
- display: inline;
+ display: inline;
}
body.core #ctxtnav a[href="/report"] {
@@ -1967,5 +1974,5 @@
}
.milestone .info .progress {
- width: 85%;
+ width: 85%;
}
#content.timeline dl {
Index: /sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js
===================================================================
--- /sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js (revision 1962)
+++ /sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js (revision 1963)
@@ -69,9 +69,15 @@
showContributorLabels: function( labels ) {
$( 'h3.change .username' ).each( function() {
- var $el = $( this ),
+ var html,
+ $el = $( this ),
username = $el.data( 'username' );
if ( username in labels ) {
- $el.parent( 'a.profile-link' ).after( ' (' + labels[ username ] + ')' );
+ if ( typeof labels[ username ] === 'object' ) {
+ html = $( '', {'class': 'contributor-label', 'title': labels[ username ].title }).text( labels[ username ].text );
+ } else {
+ html = $( '', {'class': 'contributor-label'}).text( labels[ username ]);
+ }
+ $el.parent( 'a.profile-link' ).after( ' ' + html.prop('outerHTML') );
}
});
@@ -882,11 +888,25 @@
}).success( function( data ) {
if ( data.success ) {
- $( render( data ) );
- }
- });
+ render( data.data['notifications-box'] );
+ if ( data.data.maintainers ) {
+ maintainerLabels( data.data.maintainers );
+ }
+ }
+ });
+ }
+
+ function maintainerLabels( maintainers ) {
+ var i, len, labels = {};
+ for ( i = 0, len = maintainers.length; i < len; i++ ) {
+ labels[ maintainers[i] ] = {
+ text: 'Component Maintainer',
+ title: '@' + maintainers[i] + ' maintains the ' + $.trim( $('td[headers="h_component"]').text() ) + ' component'
+ };
+ }
+ wpTrac.showContributorLabels( labels );
}
function render( data ) {
- $( '#propertyform' ).before( data.data['notifications-box'] );
+ $( '#propertyform' ).before( data );
notifications = $('#notifications');
notifications.on( 'click', '.watch-this-ticket', subscribe )