Making WordPress.org


Ignore:
Timestamp:
10/11/2015 11:39:41 PM (10 years ago)
Author:
nacin
Message:

Trac: Total hack to simplify how slackbot and ircbot comments are rendered. see also [1977].

File:
1 edited

Legend:

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

    r1976 r1978  
    3131    <a href="#comment:$cnum" class="$cls">$prefix$cnum</a>
    3232  </py:def>
     33
     34<py:choose>
     35<py:when test="'author' in change and ('slackbot' == change.author or 'ircbot' == change.author)">
     36  <h3 class="change chat-bot">
     37    <span class="avatar" py:if="change">
     38      <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" />
     40        ${wiki_to_html(context, change.comment, escape_newlines=preserve_newlines)}
     41      </span>
     42      <br /><span class="time-ago">${dateinfo(change.date)} ago</span>
     43    </span>
     44  </h3>
     45</py:when>
     46<py:otherwise>
     47
    3348  <h3 class="change">
    3449    <span class="threading"
     
    166181    </py:if>
    167182  </div>
     183</py:otherwise>
     184</py:choose>
    168185</html>
Note: See TracChangeset for help on using the changeset viewer.