From a43080a368e2b6bdb11e2e1d2d1efc7d8d69e0cf Mon Sep 17 00:00:00 2001 From: f Date: Thu, 20 Feb 2020 13:02:34 -0300 Subject: [PATCH] descargar el archivo subido --- app/views/posts/attribute_ro/_file.haml | 3 ++- config/locales/en.yml | 3 +++ config/locales/es.yml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/posts/attribute_ro/_file.haml b/app/views/posts/attribute_ro/_file.haml index a941839e..7bc7b154 100644 --- a/app/views/posts/attribute_ro/_file.haml +++ b/app/views/posts/attribute_ro/_file.haml @@ -2,4 +2,5 @@ %th= post_label_t(attribute, :path, post: post) %td - if metadata.value['path'].present? - = link_to metadata.value['description'], url_for(metadata.static_file) + = link_to t('.download'), url_for(metadata.static_file) + %p= metadata.value['description'] diff --git a/config/locales/en.yml b/config/locales/en.yml index cacb9238..18b7a441 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -347,6 +347,9 @@ en: en: 'English' ar: 'Arabic' posts: + attribute_ro: + file: + download: Download file show: front_matter: Post metadata submit: diff --git a/config/locales/es.yml b/config/locales/es.yml index de3ad2aa..f988972f 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -355,6 +355,9 @@ es: en: 'inglés' ar: 'árabe' posts: + attribute_ro: + file: + download: Descargar archivo show: front_matter: Metadatos del artículo submit: