Ticket #1462: 1462.patch
File 1462.patch, 4.3 KB (added by , 9 years ago) |
---|
-
trunk/trac.wordpress.org/templates/site-ticket.html
34 34 35 35 <!--! Gravatars for the ticket reporter --> 36 36 <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}&s=48" srcset="//wordpress.org/grav-redirect.php?user=${ticket.reporter}&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)}&s=48" srcset="//wordpress.org/grav-redirect.php?user=${urldecode(ticket.reporter)}&s=96 2x" height="48" width="48" /> 39 39 </a> 40 40 ${select('*|comment()|text()')} 41 41 </td> 42 42 43 43 <!--! Gravatars for the ticket owner --> 44 44 <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}&s=48" srcset="//wordpress.org/grav-redirect.php?user=${ticket.owner}&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)}&s=48" srcset="//wordpress.org/grav-redirect.php?user=${urldecode(ticket.owner)}&s=96 2x" height="48" width="48" /> 47 47 </a> 48 48 ${select('*|comment()|text()')} 49 49 </td> -
trunk/trac.wordpress.org/templates/site.html
30 30 link['href'] = urllib.unquote(new_link[1]) 31 31 except (IndexError, KeyError): 32 32 pass 33 34 import urllib 35 def urldecode(str): 36 return urllib.quote_plus(str); 33 37 ?> 34 38 35 39 <!--! These are changes for tickets that are also loaded from -
trunk/trac.wordpress.org/templates/ticket_change.html
36 36 <h3 class="change chat-bot"> 37 37 <span class="avatar" py:if="change"> 38 38 <span class="username-line"> 39 <img src="//wordpress.org/grav-redirect.php?user=${ authorinfo(change.author)}&s=48" srcset="//wordpress.org/grav-redirect.php?user=${authorinfo(change.author)}&s=96 2x" height="48" width="48" />39 <img src="//wordpress.org/grav-redirect.php?user=${urldecode(urldecode(authorinfo(change.author)))}&s=48" srcset="//wordpress.org/grav-redirect.php?user=${urldecode(urldecode(authorinfo(change.author)))}&s=96 2x" height="48" width="48" /> 40 40 ${wiki_to_html(context, change.comment, escape_newlines=preserve_newlines)} 41 41 </span> 42 42 <br /><span class="time-ago">${dateinfo(change.date)} ago</span> … … 75 75 <py:choose> 76 76 <py:when test="'author' in change"> 77 77 <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)}&s=48" srcset="//wordpress.org/grav-redirect.php?user=${authorinfo(change.author)}&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))}&s=48" srcset="//wordpress.org/grav-redirect.php?user=${urldecode(authorinfo(change.author))}&s=96 2x" height="48" width="48" /> @<span class="username" data-username="${change.author}">${authorinfo(change.author)}</span></a></span> 80 80 <py:if test="'date' in change"> 81 81 <br /><span class="time-ago">${dateinfo(change.date)} ago</span> 82 82 </py:if>