Modify

Opened 4 years ago

Closed 4 years ago

#8304 closed defect (fixed)

[Patch] Makes Ticket titels clickable, i.e. links to ticket

Reported by: fecht Owned by: CuriousCurmudgeon
Priority: low Component: WhiteboardPlugin
Severity: trivial Keywords:
Cc: Trac Release: 0.11

Description

First of all thanks for this great plugin, just a very simple patch to make it a bit more user friendly (at least for me), i.e. allow users to just click on a ticket title to see what this ticket is about or start working on it right away.

Here is the "patch" - it's so simple it should work with either 0.11 or 0.12 (only tried it with 0.11 though...)

Index: whiteboard/templates/whiteboard.html
===================================================================
--- whiteboard/templates/whiteboard.html	(revision 9673)
+++ whiteboard/templates/whiteboard.html	(working copy)
@@ -26,7 +26,7 @@
                     <py:with vars="ticket_context = context('ticket', result.id)">
                       <py:if test="'TICKET_VIEW' in perm(ticket_context.resource)">
                         <li id="board_ticket_${result['id']}" class="board_ticket prio${result.priority_value}">
-                            <h3>#${result['id']}: ${result['summary']}</h3>
+                            <h3><a href="ticket/${result['id']}">#${result['id']}: ${result['summary']}</a></h3>
                             <dl>
                               <py:for each="idx, header in enumerate(headers)">
                                 <py:if test="header.name not in ('id', 'summary', groupname)">

I have also attached it as svn diff

Attachments (1)

make_ticket_title_clickable.diff (928 bytes) - added by fecht 4 years ago.
Patch to make ticket titles clickable

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by fecht

Patch to make ticket titles clickable

comment:1 Changed 4 years ago by CuriousCurmudgeon

(In [9687]) refs #8304

  • Applied patch from fecht. Thanks!

comment:2 Changed 4 years ago by CuriousCurmudgeon

  • Status changed from new to assigned

comment:3 Changed 4 years ago by CuriousCurmudgeon

  • Resolution set to fixed
  • Status changed from assigned to closed

Add Comment

Modify Ticket

Action
as closed The owner will remain CuriousCurmudgeon.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.