WordPress.org

Making WordPress.org

Changeset 8088


Ignore:
Timestamp:
01/17/2019 02:05:19 AM (3 years ago)
Author:
dd32
Message:

Trac: Expose users nicename on Trac comments for use with Autocomplete.

See #2539.

Location:
sites/trunk/trac.wordpress.org/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site-ticket.html

    r6688 r8088  
    4848<!--! Gravatars for the ticket reporter -->
    4949<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}">
     50  <a href="${profile_link + wporg_user}" data-nicename="${wporg_user}">
    5151    <img class="avatar" src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=96 2x" height="48" width="48" />
    5252  </a>
  • sites/trunk/trac.wordpress.org/templates/ticket_change.html

    r3140 r8088  
    7878        <span class="avatar" py:if="change">
    7979          <span class="username-line"><a href="https://profiles.wordpress.org/${wporg_user}" class="profile-link">
    80             <img src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=96 2x" height="48" width="48" /> @<span class="username" data-username="${change.author}">${authorinfo(change.author)}</span></a></span>
     80            <img src="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=${wporg_user}&amp;s=96 2x" height="48" width="48" /> @<span class="username" data-username="${change.author}" data-nicename="${wporg_user}">${authorinfo(change.author)}</span></a></span>
    8181          <py:if test="'date' in change">
    8282            <br /><span class="time-ago">${dateinfo(change.date)} ago</span>
Note: See TracChangeset for help on using the changeset viewer.