diff --git a/app/views/posts/attributes/_file.haml b/app/views/posts/attributes/_file.haml index 54f9f81a..6906e159 100644 --- a/app/views/posts/attributes/_file.haml +++ b/app/views/posts/attributes/_file.haml @@ -1,4 +1,6 @@ .form-group + .label + = label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post) - if metadata.static_file - case metadata.static_file.blob.content_type - when %r{\Avideo/} diff --git a/app/views/posts/attributes/_image.haml b/app/views/posts/attributes/_image.haml index 84fe56fd..2579dfeb 100644 --- a/app/views/posts/attributes/_image.haml +++ b/app/views/posts/attributes/_image.haml @@ -1,4 +1,6 @@ .form-group + .label + = label_tag "#{base}_#{attribute}", post_label_t(attribute, post: post) - if metadata.static_file = image_tag url_for(metadata.static_file), alt: metadata.value['description'], diff --git a/config/locales/en.yml b/config/locales/en.yml index 7b2971da..1554ccb2 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -679,6 +679,10 @@ en: image: label: Image destroy: Remove image + logo: + label: Logo + download: + label: Archivo belongs_to: empty: "(Empty)" predefined_value: diff --git a/config/locales/es.yml b/config/locales/es.yml index 2142492a..3b8f65a1 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -690,6 +690,10 @@ es: image: label: Imagen destroy: 'Eliminar imagen' + logo: + label: Logo + download: + label: Archivo belongs_to: empty: "(VacĂ­o)" predefined_value: