[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [%# # u : user object # simple : boolean, if true an unadorned name will be displayed (no gravatar, no menu) (default: false) # gravatar_size : size of the gravator icon (default 0, which disables the gravatar) # gravatar_only : boolean, if true output just the gravatar (not-simple only) # nick_only : boolean, if true, the nickname will be used instead of the full name #%] [% IF !u.id; "---"; RETURN; END; DEFAULT gravatar_size = 0; IF user.settings.show_gravatars.value != 'On'; gravatar_size = 0; END; %]