[web-doc] master: add edit link for tutorial pages

[email protected] (Peter Cowburn) Tue, 27 Jul 2021 13:37:37 +0000
Newsgroups php.doc.web
Message-ID <[email protected]>
Author: Peter Cowburn (salathe)
Date: 2021-07-27T14:35:26+01:00

Commit: https://github.com/php/web-doc/commit/69bec549fceeaa80d29748b8824039915cf15886
Raw diff: https://github.com/php/web-doc/commit/69bec549fceeaa80d29748b8824039915cf15886.diff

add edit link for tutorial pages

Changed paths:
  M  www/tutorial.php


Diff:

diff --git a/www/tutorial.php b/www/tutorial.php
index 0b17685..13ec952 100644
--- a/www/tutorial.php
+++ b/www/tutorial.php
@@ -18,8 +18,12 @@
     die;
 }
 
+$edit_url = "https://github.com/php/web-doc/edit/master/tutorial/{$chapter}.md";
+
 site_header();
 
+echo '<p style="text-align: right; font-size: 85%"><a href="' . $edit_url . '">Edit this page</a></p>';
+
 echo $parsedown->text($content);
 
 site_footer();