Modify

Opened 5 years ago

Closed 4 years ago

#6744 closed defect (fixed)

Icon for the timeline

Reported by: mickem Owned by: Blackhex
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Hello,

Since I got fed-up with having the same icon for tickets as for discussion entries I quickly created a fairly ugly but trac:ish looking icon.

Since I don't really know how to "add the css" to the css in track I hand edited it in under timeline.css (trac one) like so:

dt.discussion, dt.discussion a { background-image: url(../discussion.png) !important }

And the diff for getting trackdiscussion to use it is here:

Index: tracdiscussion/timeline.py
===================================================================
--- tracdiscussion/timeline.py  (Revision 7719)
+++ tracdiscussion/timeline.py  (Arbeitskopie)
@@ -52,7 +52,7 @@
                 title = 'New topic on %s created' % (topic['forum_name'])
                 description = topic['subject']
                 ids = ('topic', topic['id'])
-                yield ('newticket', topic['time'], topic['author'], (title,
+                yield ('discussion', topic['time'], topic['author'], (title,
                   description, ids))

             # Get message events
@@ -60,7 +60,7 @@
                 title = 'New reply on %s created' % (message['forum_name'])
                 description = message['topic_subject']
                 ids = ('message', message['id'])
-                yield ('newticket', message['time'], message['author'], (title,
+                yield ('discussion', message['time'], message['author'], (title,
                   description, ids))

     def render_timeline_event(self, context, field, event):

Attachments (1)

discussion.png (918 bytes) - added by mickem 5 years ago.
discussion.png

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by mickem

discussion.png

comment:1 Changed 5 years ago by mickem

If anyone wanna see it "in action" you can do so here: http://nsclient.org/nscp/timeline (BTW)

Michael Medin

comment:2 Changed 4 years ago by Blackhex

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

Thanks for the icon. I've added it to 0.11 branch with changeset r7899.

Add Comment

Modify Ticket

Action
as closed .
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.