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)
Change History (3)
Changed 15 years ago by
Attachment: | discussion.png added |
---|
comment:1 Changed 15 years ago by
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
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the icon. I've added it to 0.11 branch with changeset r7899.
Note: See
TracTickets for help on using
tickets.
discussion.png