瀏覽代碼

Move back button as a component

DricomDragon 4 年之前
父節點
當前提交
cfda6830ac
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 4 0
      web/include/back-to-projects.php
  2. 3 3
      web/projets/pro_ascii_space.php

+ 4 - 0
web/include/back-to-projects.php

@@ -0,0 +1,4 @@
+<!-- Simple button to come back to project list -->
+<div style="display: flex; justify-content: center">
+    <a href="../projets.php" type="button" class="btn btn-outline-success btn-lg">Retour projets</a>
+</div>

+ 3 - 3
web/projets/pro_ascii_space.php

@@ -468,9 +468,9 @@
         </div>
 
         <!-- Back button -->
-        <div style="display: flex; justify-content: center">
-            <a href="../projets.php" type="button" class="btn btn-outline-success btn-lg">Retour projets</a>
-        </div>
+        <?php
+            include("../include/back-to-projects.php")
+        ?>
     </main>
 
     <!-- Footer -->