Making WordPress.org

Ticket #1462: 1462.patch

File 1462.patch, 4.3 KB (added by ocean90, 9 years ago)
  • trunk/trac.wordpress.org/templates/site-ticket.html

     
    3434
    3535<!--! Gravatars for the ticket reporter -->
    3636<td py:match="td[@headers='h_reporter']" py:attrs="select('@*')">
    37   <a href="${profile_link + ticket.reporter}">
    38     <img class="avatar" src="//wordpress.org/grav-redirect.php?user=${ticket.reporter}&amp;s=48" srcset="//wordpress.org/grav-redirect.php?user=${ticket.reporter}&amp;s=96 2x" height="48" width="48" />
     37  <a href="${profile_link + urldecode(ticket.reporter)}">
     38    <img class="avatar" src="//wordpress.org/grav-redirect.php?user=${urldecode(ticket.reporter)}&amp;s=48" srcset="//wordpress.org/grav-redirect.php?user=${urldecode(ticket.reporter)}&amp;s=96 2x" height="48" width="48" />
    3939  </a>
    4040    ${select('*|comment()|text()')}
    4141</td>
    4242
    4343<!--! Gravatars for the ticket owner -->
    4444<td py:match="td[@headers='h_owner']" py:attrs="select('@*')">
    45   <a href="${profile_link + ticket.owner}" py:if="ticket.owner">
    46     <img class="avatar" src="//wordpress.org/grav-redirect.php?user=${ticket.owner}&amp;s=48" srcset="//wordpress.org/grav-redirect.php?user=${ticket.owner}&amp;s=96 2x" height="48" width="48" />
     45  <a href="${profile_link + urldecode(ticket.owner)}" py:if="ticket.owner">
     46    <img class="avatar" src="//wordpress.org/grav-redirect.php?user=${urldecode(ticket.owner)}&amp;s=48" srcset="//wordpress.org/grav-redirect.php?user=${urldecode(ticket.owner)}&amp;s=96 2x" height="48" width="48" />
    4747  </a>
    4848    ${select('*|comment()|text()')}
    4949</td>
  • trunk/trac.wordpress.org/templates/site.html

     
    3030                                link['href'] = urllib.unquote(new_link[1])
    3131        except (IndexError, KeyError):
    3232                pass
     33
     34        import urllib
     35        def urldecode(str):
     36                return urllib.quote_plus(str);
    3337?>
    3438
    3539<!--! These are changes for tickets that are also loaded from
  • trunk/trac.wordpress.org/templates/ticket_change.html

     
    3636  <h3 class="change chat-bot">
    3737    <span class="avatar" py:if="change">
    3838      <span class="username-line">
    39         <img src="//wordpress.org/grav-redirect.php?user=${authorinfo(change.author)}&amp;s=48" srcset="//wordpress.org/grav-redirect.php?user=${authorinfo(change.author)}&amp;s=96 2x" height="48" width="48" />
     39        <img src="//wordpress.org/grav-redirect.php?user=${urldecode(urldecode(authorinfo(change.author)))}&amp;s=48" srcset="//wordpress.org/grav-redirect.php?user=${urldecode(urldecode(authorinfo(change.author)))}&amp;s=96 2x" height="48" width="48" />
    4040        ${wiki_to_html(context, change.comment, escape_newlines=preserve_newlines)}
    4141      </span>
    4242      <br /><span class="time-ago">${dateinfo(change.date)} ago</span>
     
    7575    <py:choose>
    7676      <py:when test="'author' in change">
    7777        <span class="avatar" py:if="change">
    78           <span class="username-line"><a href="//profiles.wordpress.org/${authorinfo(change.author)}" class="profile-link">
    79             <img src="//wordpress.org/grav-redirect.php?user=${authorinfo(change.author)}&amp;s=48" srcset="//wordpress.org/grav-redirect.php?user=${authorinfo(change.author)}&amp;s=96 2x" height="48" width="48" /> @<span class="username" data-username="${change.author}">${authorinfo(change.author)}</span></a></span>
     78          <span class="username-line"><a href="//profiles.wordpress.org/${urldecode(authorinfo(change.author))}" class="profile-link">
     79            <img src="//wordpress.org/grav-redirect.php?user=${urldecode(authorinfo(change.author))}&amp;s=48" srcset="//wordpress.org/grav-redirect.php?user=${urldecode(authorinfo(change.author))}&amp;s=96 2x" height="48" width="48" /> @<span class="username" data-username="${change.author}">${authorinfo(change.author)}</span></a></span>
    8080          <py:if test="'date' in change">
    8181            <br /><span class="time-ago">${dateinfo(change.date)} ago</span>
    8282          </py:if>