1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/config/initializers/typus.rb
Dan Barber 8621da4d3b Removed localised paperclip plugin and added the gem. Added :preview
image size to photo attachment for admin interface.
2010-12-20 12:11:07 -05:00

32 lines
1.1 KiB
Ruby

Typus.setup do |config|
# Application name.
config.admin_title = "danbarberphoto"
# config.admin_sub_title = ""
# When mailer_sender is set, password recover is enabled. This email
# address will be used in Admin::Mailer.
# config.mailer_sender = "admin@example.com"
# Define paperclip attachment styles.
# config.file_preview = :medium
# config.file_thumbnail = :thumb
config.file_preview = :preview
config.file_thumbnail = :size2
# Authentication: +:none+, +:http_basic+
# Run `rails g typus:migration` if you need an advanced authentication system.
# config.authentication = :none
# Define username and password for +:http_basic+ authentication
# config.username = "admin"
# config.password = "columbia"
# Pagination options:
# These options are passed to `will_paginate`. You can see the available
# options in the plugin source. (https://github.com/mislav/will_paginate/blob/rails3/lib/will_paginate/view_helpers.rb)
# config.pagination = { :previous_label => "← " + Typus::I18n.t("Previous"),
# :next_label => Typus::I18n.t("Next") + " →" }
end