From 91f3d8ed7ed5ff9fa195e92d67d72add233d0008 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 31 May 2024 22:35:55 +0300 Subject: [PATCH] adjust meta tags --- app/views/layouts/_head_tags.html.erb | 2 +- app/views/shared/_meta.html.erb | 22 +++++++++++-------- app/views/start_form/show.html.erb | 2 ++ app/views/submissions/_preview_tags.html.erb | 0 app/views/submissions/show.html.erb | 3 +++ .../submissions_preview/completed.html.erb | 1 + app/views/submit_form/show.html.erb | 2 ++ 7 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 app/views/submissions/_preview_tags.html.erb diff --git a/app/views/layouts/_head_tags.html.erb b/app/views/layouts/_head_tags.html.erb index 6f991ab9..96a72e70 100644 --- a/app/views/layouts/_head_tags.html.erb +++ b/app/views/layouts/_head_tags.html.erb @@ -1,4 +1,4 @@ - DocuSeal | Open Source Document Filling and Signing + <%= content_for(:html_title) || 'DocuSeal | Open Source Document Signing' %> <%= render 'shared/meta' %> diff --git a/app/views/shared/_meta.html.erb b/app/views/shared/_meta.html.erb index 30d712c1..4d9e84ab 100644 --- a/app/views/shared/_meta.html.erb +++ b/app/views/shared/_meta.html.erb @@ -1,21 +1,25 @@ <% if Docuseal.demo? || (request.path != '/' && !devise_controller?) %> <% end %> - - - +<% title = content_for(:html_title) || 'DocuSeal | Open Source Document Filling and Signing' %> +<% description = content_for(:html_description) || 'Open source, self-hosted tool to streamline document filling and signing. Create custom PDF forms to complete and sign with an easy to use online tool.' %> + + + - - - - +<% unless content_for(:disable_image_preview) %> + + + + +<% end %> - - + + diff --git a/app/views/start_form/show.html.erb b/app/views/start_form/show.html.erb index a2443048..f96d67bf 100644 --- a/app/views/start_form/show.html.erb +++ b/app/views/start_form/show.html.erb @@ -1,3 +1,5 @@ +<% content_for(:html_title, "#{@template.name} | DocuSeal") %> +<% content_for(:html_description, "#{@template.account.name} has invited you to fill and sign documents online effortlessly with a secure, fast, and user-friendly digital document signing solution.") %>
diff --git a/app/views/submissions/_preview_tags.html.erb b/app/views/submissions/_preview_tags.html.erb new file mode 100644 index 00000000..e69de29b diff --git a/app/views/submissions/show.html.erb b/app/views/submissions/show.html.erb index e9dee1a9..9f9de628 100644 --- a/app/views/submissions/show.html.erb +++ b/app/views/submissions/show.html.erb @@ -1,3 +1,6 @@ +<% if params[:controller] == 'submissions_preview' %> + <%= render 'submissions/preview_tags' %> +<% end %>