Added History button
authorAndrew DeFaria <Andrew@DeFaria.com>
Tue, 30 May 2017 19:15:36 +0000 (12:15 -0700)
committerAndrew DeFaria <Andrew@DeFaria.com>
Tue, 30 May 2017 19:15:36 +0000 (12:15 -0700)
web/index.php

index bb15fa8..6bb6b32 100644 (file)
@@ -17,13 +17,16 @@ include_once "songbook.php";
 
 <body>
 
-<?php
-  if (file_exists ("news.html")) {
-    print "<a href=\"news.html\"><img src=\"/Icons/news.png\"></a>";
-  } // if
-
-  getSongs();
-?>
+<table width="100%">
+  <tbody>
+    <tr>
+      <td align="left"><a href="news.html"><img src="/Icons/news.png"></a></td>
+      <td align="right"><a href="http://defaria.com/gitweb/?p=songbook.git"><img src="/Icons/history.png"></a></td>
+    </tr>
+  </tbody>
+</table>
+
+<?php getSongs(); ?>
 
 <div class="heading">
   <h1 class="centered">Andrew DeFaria's Songbook</h1>