WordPress.org

Making WordPress.org


Ignore:
Timestamp:
07/05/2015 09:52:34 AM (5 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/site.html

    r1174 r1704  
    6767    <link rel="stylesheet" type="text/css" href="//s.w.org/style/trac/wp-trac.css?${scripts_version}" />
    6868    <link py:if="req.session['authenticated']" rel="stylesheet" href="//s.w.org/wp-includes/css/wp-auth-check.css?ver=3.9-alpha" type="text/css" media="all" />
    69        
     69
    7070    <script py:attrs="select('@*')"></script>
    7171
     
    225225<td py:match="td[@headers='h_reporter']" py:attrs="select('@*')">
    226226    <a href="${profile_link + ticket.reporter}">
    227         <img class="avatar" src="//wordpress.org/grav-redirect.php?user=${ticket.reporter}&amp;s=36" height="36" width="36" />
     227        <img class="avatar" src="//wordpress.org/grav-redirect.php?user=${ticket.reporter}&amp;s=36" srcset="//wordpress.org/grav-redirect.php?user=${ticket.reporter}&amp;s=72 2x" height="36" width="36" />
    228228    </a>
    229229    ${select('*|comment()|text()')}
     
    233233<td py:match="td[@headers='h_owner']" py:attrs="select('@*')">
    234234    <a href="${profile_link + ticket.owner}" py:if="ticket.owner">
    235         <img class="avatar" src="//wordpress.org/grav-redirect.php?user=${ticket.owner}&amp;s=36" height="36" width="36" />
     235        <img class="avatar" src="//wordpress.org/grav-redirect.php?user=${ticket.owner}&amp;s=36" srcset="//wordpress.org/grav-redirect.php?user=${ticket.reporter}&amp;s=72 2x" height="36" width="36" />
    236236    </a>
    237237    ${select('*|comment()|text()')}
Note: See TracChangeset for help on using the changeset viewer.