Modification présentation exifs
This commit is contained in:
parent
5143f6151b
commit
08338c7379
@ -10,6 +10,10 @@ class AvatarUploader < CarrierWave::Uploader::Base
|
||||
storage :file
|
||||
# storage :s3
|
||||
|
||||
def default_url
|
||||
"/images/fallback/" + [version_name, "default.png"].compact.join('_')
|
||||
end
|
||||
|
||||
# Override the directory where uploaded files will be stored.
|
||||
# This is a sensible default for uploaders that are meant to be mounted:
|
||||
def store_dir
|
||||
|
@ -10,6 +10,9 @@ class ImageUploader < CarrierWave::Uploader::Base
|
||||
storage :file
|
||||
# storage :s3
|
||||
|
||||
def default_url
|
||||
"/images/fallback/" + [version_name, "default.png"].compact.join('_')
|
||||
end
|
||||
# Override the directory where uploaded files will be stored.
|
||||
# This is a sensible default for uploaders that are meant to be mounted:
|
||||
def store_dir
|
||||
|
@ -28,7 +28,7 @@
|
||||
#breadcrumb
|
||||
|
||||
.personnal
|
||||
=image_tag (current_admin.avatar? ? current_admin.avatar.square.url : "defaut.png"), :class => "avatar"
|
||||
=image_tag current_admin.avatar.square.url, :class => "avatar"
|
||||
%span
|
||||
=current_admin.firstname
|
||||
=current_admin.name
|
||||
|
Loading…
x
Reference in New Issue
Block a user