From 094d8b89efc14a9c47c9dcd7833692e791f04025 Mon Sep 17 00:00:00 2001 From: Sam Handler Date: Thu, 24 Sep 2015 16:47:14 -0700 Subject: [PATCH] Add 'Edit this page' link to website/www footer --- website/www/source/layouts/layout.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/www/source/layouts/layout.erb b/website/www/source/layouts/layout.erb index 4e6736743..2daba176d 100644 --- a/website/www/source/layouts/layout.erb +++ b/website/www/source/layouts/layout.erb @@ -59,6 +59,10 @@
  • Documentation
  • About
  • Support
  • + <% if current_page.url != "/" %> + <% github_link = 'https://github.com/mitchellh/vagrant/blob/master/' + current_page.source_file.match(/website.*/)[0] %> +
  • Edit this page
  • + <% end %>
  • Download