Changeset 14519
- Timestamp:
- 09/01/2025 02:43:43 AM (3 months ago)
- Location:
- sites/trunk
- Files:
-
- 4 edited
-
trac.wordpress.org/templates/site-ticket.html (modified) (3 diffs)
-
trac.wordpress.org/templates/site.html (modified) (2 diffs)
-
trac.wordpress.org/templates/ticket_change.html (modified) (1 diff)
-
wordpress.org/public_html/style/trac/wp-trac.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/templates/site-ticket.html
r11797 r14519 5 5 6 6 <?python 7 profile_link = 'https://profiles.wordpress.org/'8 9 7 field_types = [ 'milestone', 'priority', 'type', 'severity', 'version', 'component', 'keywords', 'focuses', ] 10 8 … … 48 46 <!--! Gravatars for the ticket reporter --> 49 47 <td py:match="td[@headers='h_reporter']" py:attrs="select('@*')" py:with="wporg_user = wporg_sanitize_user_nicename(ticket.reporter)"> 50 <a href=" ${profile_link + wporg_user}" data-nicename="${wporg_user}">48 <a href="https://profiles.wordpress.org/${wporg_user}/" data-nicename="${wporg_user}"> 51 49 <img class="avatar" src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&s=96 2x" height="48" width="48" alt="${wporg_user}'s profile" /> 52 50 </a> … … 56 54 <!--! Gravatars for the ticket owner --> 57 55 <td py:match="td[@headers='h_owner']" py:attrs="select('@*')"> 58 <a py:if="ticket.owner" py:with="wporg_user = wporg_sanitize_user_nicename(ticket.owner)" href=" ${profile_link + wporg_user}">56 <a py:if="ticket.owner" py:with="wporg_user = wporg_sanitize_user_nicename(ticket.owner)" href="https://profiles.wordpress.org/${wporg_user}/"> 59 57 <img class="avatar" src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&s=96 2x" height="48" width="48" alt="${wporg_user}'s profile" /> 60 58 </a> -
sites/trunk/trac.wordpress.org/templates/site.html
r14505 r14519 5 5 6 6 <?python 7 scripts_version = '22 7'7 scripts_version = '228' 8 8 project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0] 9 9 wporg_endpoint = 'https://make.wordpress.org/' + project_slug + '/' … … 293 293 <py:match path="div[@id='content' and @class='prefs']/div[@id='tabcontent']" once="true"> 294 294 <div id="tabcontent"> 295 Notifications are sent to the email listed in <a href="${profile_to_edit}${req.session['sid']} ">your WordPress.org profile</a><py:if test="req.session['email']"> (${req.session['email']})</py:if>.295 Notifications are sent to the email listed in <a href="${profile_to_edit}${req.session['sid']}/">your WordPress.org profile</a><py:if test="req.session['email']"> (${req.session['email']})</py:if>. 296 296 <py:if test="notifications_enabled"> 297 297 Notification preferences can be configured <a href="${wporg_endpoint}notifications/">here</a>. -
sites/trunk/trac.wordpress.org/templates/ticket_change.html
r14482 r14519 156 156 <py:when test="'author' in change" py:with="wporg_user = wporg_sanitize_user_nicename(change.author)"> 157 157 <span class="avatar" py:if="change"> 158 <span class="username-line"><a href="https://profiles.wordpress.org/${wporg_user} " class="profile-link">158 <span class="username-line"><a href="https://profiles.wordpress.org/${wporg_user}/" class="profile-link"> 159 159 <img src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="${change.author}" data-nicename="${wporg_user}">${authorinfo(change.author)}</span></a></span> 160 160 <py:if test="'date' in change"> -
sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js
r14505 r14519 220 220 221 221 var meClass = ( username === wpTrac.currentUser ) ? ' me' : ''; 222 return pre + '<a class="mention' + meClass + '" href="https://profiles.wordpress.org/' + username + ' ">@' + username + '</a>';222 return pre + '<a class="mention' + meClass + '" href="https://profiles.wordpress.org/' + username + '/">@' + username + '</a>'; 223 223 } ); 224 224 … … 361 361 if ( 0 === username.indexOf( 'logged in as' ) ) { 362 362 username = username.replace( 'logged in as ', '' ); 363 el.html( $('<a />', { href: 'https://profiles.wordpress.org/' + username }).text( username ) ).prepend( 'logged in as ');363 el.html( $('<a />', { href: 'https://profiles.wordpress.org/' + username + '/' }).text( username ) ).prepend( 'logged in as '); 364 364 } 365 365 })(jQuery); … … 643 643 644 644 author = $el.find( '.username' ).data( 'username' ); 645 $commit.append( ' by <a href="https://profiles.wordpress.org/' + author + ' ">@' + author + '</a>' );645 $commit.append( ' by <a href="https://profiles.wordpress.org/' + author + '/">@' + author + '</a>' ); 646 646 647 647 date = $el.find( '.time-ago' ).html();
Note: See TracChangeset
for help on using the changeset viewer.