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: