| commit | 142721b5b46cef19dfd6ed597e65ae86cefd139f | [log] [tgz] |
|---|---|---|
| author | Steffen Gebert <steffen.gebert@typo3.org> | Tue May 14 18:45:44 2013 +0200 |
| committer | Steffen Gebert <steffen.gebert@typo3.org> | Tue May 14 18:45:44 2013 +0200 |
| tree | 0cc6d19d7f3701e6bbbd2876c1440cd166c5d691 | |
| parent | f01a1f9f484cf3c04961c9a8fa25f2f419ec0fec [diff] |
Overwork the plugin * extract the username encoding and URL replacing into a method * replace the username also in changeUrl (without logging, if no occurence of %s can be found)
This plugin allows to use an own web service to load the avatar images from.
Options:
avatar.url - the location of avatar images containing %s, which will then be replaced by the username. Required.avatar.changeUrl - the URL shown in Gerrit's user settings to tell the user, where the avatar can be changed. Optional.Example (to be added to etc/gerrit.config):
[avatar]
url = http://example.org/avatars/%s.jpg
changeUrl = http://example.org/account.html
Please note that http:// URLs will be automatically rewritten to https://, if gerrit.canonicalWebUrl uses HTTPS.