Add dimensions to image upload

This commit is contained in:
Rohan Mitchell
2015-07-17 16:02:09 +10:00
parent 74f90dada3
commit bb3a4170f5
2 changed files with 5 additions and 1 deletions

View File

@@ -11,8 +11,8 @@ class ContentConfiguration < Spree::Preferences::FileConfiguration
has_attached_file :logo_mobile_svg
# Home page
preference :home_show_stats, :boolean, default: true
preference :home_hero, :file
preference :home_show_stats, :boolean, default: true
has_attached_file :home_hero
# Producer sign-up page

View File

@@ -20,6 +20,10 @@ en:
producers_join: Australian producers are now welcome to join the Open Food Network.
charges_sales_tax: Charges GST?
logo: "Logo (640x130)"
logo_mobile: "Mobile logo (75x26)"
logo_mobile_svg: "Mobile logo (SVG)"
home_hero: "Hero image"
home_show_stats: "Show statistics"
footer_facebook_url: "Facebook URL"
footer_twitter_url: "Twitter URL"