Commits

Anonymous committed fa63421

Ported [2856] to 0.9-stable (fixing #2664).

  • Participants
  • Parent commits 9c832ee
  • Branches 0.9-stable

Comments (0)

Files changed (1)

File trac/ticket/query.py

                 for ticket in tickets:
                     href = self.env.href.ticket(int(ticket['id']))
                     summary = escape(shorten_line(ticket['summary']))
-                    links.append('<a class="%s ticket" href="%s" '
-                                 'title="%s">#%s</a>' % (ticket['status'], href,
-                                 summary, ticket['id']))
+                    a = '<a class="%s ticket" href="%s" title="%s">#%s</a>' % \
+                        (ticket['status'], href, summary, ticket['id'])
+                    links.append(a)
                 buf.write(', '.join(links))
             else:
                 buf.write('<dl class="wiki compact">')
                 for ticket in tickets:
                     href = self.env.href.ticket(int(ticket['id']))
-                    buf.write('<dt><a href="%s">#%s</a></dt>' % (href,
-                                                                 ticket['id']))
+                    dt = '<dt><a class="%s ticket" href="%s">#%s</a></dt>' % \
+                         (ticket['status'], href, ticket['id'])
+                    buf.write(dt)
                     buf.write('<dd>%s</dd>' % (escape(ticket['summary'])))
                 buf.write('</dl>')