From ae59d8c4e90cb1922cbfd1f3052b8ac587015156 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 22 Jun 2018 16:06:58 -0300 Subject: [PATCH] anchors para los campos #51 --- app/views/posts/_form.haml | 3 +++ config/locales/en.yml | 1 + config/locales/es.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 0188cc20..b09d8c1c 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -87,6 +87,9 @@ - value = @post.new? ? template.values : @post.get_front_matter(template) .form-group = label_tag "post_#{template}", id: template do + = link_to '#' + template.key, class: 'text-muted', + data: { turbolinks: 'false' } do + = fa_icon 'link', title: t('posts.anchor') - if template.private? = fa_icon 'lock', title: t('posts.private') = template.help diff --git a/config/locales/en.yml b/config/locales/en.yml index 9cc6dd39..23fb0341 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -212,3 +212,4 @@ en: add: 'Add group' del: 'Remove group' checkbox: 'Yes' + anchor: 'Copy this link to come back here' diff --git a/config/locales/es.yml b/config/locales/es.yml index 41e86386..88f14ae0 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -208,3 +208,4 @@ es: add: 'Agregar grupo' del: 'Eliminar grupo' checkbox: 'Sí' + anchor: 'Copia este vínculo para volver aquí más tarde'