Skip to main content

Add gravatar icons to various points around trac

Project description

Adds avatar icons provided by either Gravatar or Libravatar to Trac.

Credit goes to the HackergotchiPlugin for some general ideas.

Ideally, Trac itself would just include support for author avatars as a built in, since this is an extremely common and desirable feature.

For now, the approach of the plugin is to filter specific Trac views, gather all the authors found in the “data” hash being passed to Genshi, then using Genshi filters to insert additional avatar nodes.

Currently supported views are:

  • Timeline
  • Issue display
  • Issue change display (i.e. comments, attachments)
  • Source browser listing (tested for svn and hg so far)
  • Individual changeset page (tested for svn and hg so far)
  • User prefs page (includes link to “change your avatar” at gravatar.com/libravatar.org)

Installation

To install, just use python setup.py bdist_egg to create an egg file which then goes into the Trac plugins/ folder, or just python setup.py install to plug it in entirely.

Configuration

To enable the plugin in trac.ini:

[components]
tracvatar.* = enabled

There are then available optional “size” settings for each view, shown below are defaults:

[tracvatar]
ticket_reporter_size = 60
ticket_comment_size = = 40
timeline_size = 30
browser_lineitem_size = 20
browser_changeset_size = 40
prefs_form_size = 40
avatar_default = default
backend = gravatar
metanav_size = 30

Project details


Release history Release notifications

This version
History Node

2.0

History Node

1.9

History Node

1.8

History Node

1.7

History Node

1.6

History Node

1.5

History Node

1.4

History Node

1.3

History Node

1.2

History Node

1.1

History Node

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
tracvatar-2.0.tar.gz (6.5 kB) Copy SHA256 hash SHA256 Source None Mar 7, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page