# +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <joe@foo.bar>')
def avatar(user, options = { })
if Setting.gravatar_enabled?
- options.merge!({:ssl => Setting.protocol == 'https'})
+ options.merge!({:ssl => Setting.protocol == 'https', :default => Setting.gravatar_default})
email = nil
if user.respond_to?(:mail)
email = user.mail
<%= hidden_field_tag 'settings[gravatar_enabled]', 0 %>
<%= check_box_tag 'settings[gravatar_enabled]', 1, Setting.gravatar_enabled? %>
</p>
+
+<p><label><%= l(:setting_gravatar_default) %></label>
+<%= select_tag 'settings[gravatar_default]', options_for_select([[l(:label_none), ''], ["Wavatars", 'wavatar'], ["Identicons", 'identicon'], ["Monster ids", 'monsterid']], Setting.gravatar_default) %></p>
+</p>
</div>
<%= submit_tag l(:button_save) %>
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
setting_mail_handler_api_key: API key
setting_sequential_project_identifiers: Generate sequential project identifiers
setting_gravatar_enabled: Use Gravatar user icons
+ setting_gravatar_default: Default Gravatar image
setting_diff_max_lines_displayed: Max number of diff lines displayed
setting_file_max_size_displayed: Max size of text files displayed inline
setting_repository_log_display_limit: Maximum number of revisions displayed on file log
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
text_journal_added: "{{label}} {{value}} ajouté"
field_active: Actif
enumeration_system_activity: Activité système
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anônimo
button_move_and_follow: Mover e seguir
setting_default_projects_modules: Módulos habilitados por padrão para novos projetos
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Аноним
button_move_and_follow: Переместить и перейти
setting_default_projects_modules: Включенные по умолчанию модули для новых проектов
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
label_user_anonymous: Anonymous
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
enumeration_system_activity: 系統活動
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
enumeration_system_activity: 系统活动
button_move_and_follow: Move and follow
setting_default_projects_modules: Default enabled modules for new projects
+ setting_gravatar_default: Default Gravatar image
default: 0
openid:
default: 0
+gravatar_default:
+ default: ''