commit | 503747022c395bae7833e2688b4e26e2d7a99413 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <edwin.kempin@sap.com> | Tue Mar 18 13:16:30 2014 +0100 |
committer | Edwin Kempin <edwin.kempin@sap.com> | Mon Jul 06 14:02:07 2015 +0200 |
tree | b04e776279b298c6bc800eed6fbea9b07640e3d7 | |
parent | 7b802fe4122c41eceb28fc4ef5f4e4f6713df790 [diff] |
Allow to include image size into avatar URL For some avatar providers the preferred image size can be specified. If the image size is not provided to the avatar provider it returns the avatar image with the default size and the browser will do the scaling. If the default image size is not square the scaling looks ugly. Change-Id: I77755bfe44bbd4856f6d459c6cf60b990112058e Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
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.