gravatar_add_robohash.diff

Alexander Meindl, 2019-05-03 19:19

Download (1.24 KB)

View differences:

app/helpers/settings_helper.rb
208 208
      ["#{today} (#{format})", f]
209 209
    end
210 210
  end
211

  
212
  def gravatar_default_setting_options
213
    [['Identicons', 'identicon'],
214
     ['Monster ids', 'monsterid'],
215
     ['Mystery man', 'mm'],
216
     ['Retro', 'retro'],
217
     ['Robohash', 'robohash'],
218
     ['Wavatars', 'wavatar']]
219
  end
211 220
end
app/views/settings/_display.html.erb
21 21

  
22 22
<p><%= setting_check_box :gravatar_enabled, :data => {:enables => '#settings_gravatar_default'} %></p>
23 23

  
24
<p><%= setting_select :gravatar_default, [["Wavatars", 'wavatar'], ["Identicons", 'identicon'], ["Monster ids", 'monsterid'], ["Retro", 'retro'], ["Mystery man", 'mm']], :blank => :label_none %></p>
24
<p><%= setting_select :gravatar_default, gravatar_default_setting_options, :blank => :label_none %></p>
25 25

  
26 26
<p><%= setting_check_box :thumbnails_enabled, :data => {:enables => '#settings_thumbnails_size'} %></p>
27 27