Skip to main content

Add gravatar icons to various points around trac

Project description

Adds Gravatar icons to Trac.

Credit goes to the HackergotchiPlugin for some general ideas.

Currently, only Gravatar is supported, but the more open-ended plugin system of Hackergotchi can be re-implemented here if other avatar engines are desired.

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 Gravatar 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)

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
gravatar_default = default

Project details


Download files

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

Source Distribution

tracvatar-1.1.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file tracvatar-1.1.tar.gz.

File metadata

  • Download URL: tracvatar-1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tracvatar-1.1.tar.gz
Algorithm Hash digest
SHA256 404f9a5290a499126f96a80b57873d7b05cf7fbfd52990ba5e4d9ef28f94dea5
MD5 d14c6085c3cdd6003968269323ceea81
BLAKE2b-256 4078bb2b8df98d5745343cedf89e92e3160d234061216d634f9180c2344669f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page