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'