Modify

Opened 15 years ago

Closed 15 years ago

#6744 closed defect (fixed)

Icon for the timeline

Reported by: Michael Medin Owned by: Radek Bartoň
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 Michael Medin 15 years ago.
discussion.png

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by Michael Medin

Attachment: discussion.png added

discussion.png

comment:1 Changed 15 years ago by Michael Medin

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

Michael Medin

comment:2 Changed 15 years ago by Radek Bartoň

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Radek Bartoň.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.