Making WordPress.org


Ignore:
Timestamp:
07/05/2015 09:52:34 AM (9 years ago)
Author:
ocean90
Message:

Trac Gravatars: Enable HiDPI versions for browsers that support srcset.

fixes #1018.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/ticket_change.diff

    r1176 r1704  
    1010+        <span class="avatar" py:if="change">
    1111+          <a href="//profiles.wordpress.org/${authorinfo(change.author)}" class="profile-link">
    12 +            <img src="//wordpress.org/grav-redirect.php?user=${authorinfo(change.author)}&amp;s=36" height="36" width="36" /> @<span class="username" data-username="${change.author}">${authorinfo(change.author)}</span></a>
     12+            <img src="//wordpress.org/grav-redirect.php?user=${authorinfo(change.author)}&amp;s=36" srcset="//wordpress.org/grav-redirect.php?user=${authorinfo(change.author)}&amp;s=72 2x" height="36" width="36" /> @<span class="username" data-username="${change.author}">${authorinfo(change.author)}</span></a>
    1313+          <py:if test="'date' in change">
    1414+            &#8212; ${dateinfo(change.date)} ago
Note: See TracChangeset for help on using the changeset viewer.