Ticket #6744 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Icon for the timeline

Reported by: mickem Assigned to: 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

discussion.png (0.9 kB) - added by mickem on 03/01/10 07:59:09.
discussion.png

Change History

03/01/10 07:59:09 changed by mickem

  • attachment discussion.png added.

discussion.png

03/01/10 08:00:40 changed by mickem

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

// Michael Medin

04/29/10 15:15:39 changed by Blackhex

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #6744 (Icon for the timeline)




Change Properties
Action