Parcourir la source

Add footer on the web admin

Julien VAUBOURG il y a 10 ans
Parent
commit
2e1f3649b6

BIN
screenshot.png


+ 9 - 0
sources/public/css/style.css

@@ -34,3 +34,12 @@ div#status ul {
   padding: 0;
   margin: 0;
 }
+
+div#github {
+  margin: -10px 0 20px 20px;
+  background: url(../img/github.png) no-repeat 0 4px;
+}
+
+div#github a {
+  margin-left: 17px;
+}

BIN
sources/public/img/github.png


+ 8 - 4
sources/views/layout.html.php

@@ -19,23 +19,27 @@
 </head>
 <body>
   <div class="container">
-    <? if (isset($flash['error'])) { ?>
+    <? if(isset($flash['error'])): ?>
       <div class="alert alert-dismissible alert-danger fade in" style="margin-top: 20px" role="alert">
         <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
         <strong><?= T_('Error') ?>:</strong> <?= $flash['error'] ?>
       </div>
-    <? } elseif (isset($flash['notice'])) { ?>
+    <? elseif(isset($flash['notice'])): ?>
       <div class="alert alert-dismissible alert-info fade in" style="margin-top: 20px" role="alert">
         <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
         <strong><?= T_('Notice') ?>:</strong> <?= $flash['notice'] ?>
       </div>
-    <? } elseif (isset($flash['success'])) { ?>
+    <? elseif(isset($flash['success'])): ?>
       <div class="alert alert-dismissible alert-success fade in" style="margin-top: 20px" role="alert">
         <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
         <?= $flash['success'] ?>
       </div>
-    <? } ?>
+    <? endif; ?>
 
     <?= $content?>
+
+    <hr />
+    <div id="github"><a href="https://github.com/jvaubourg/hotspot_ynh"><?= T_('Any problem? Contribute!') ?></a> - AGPL 3.0</div>
+  </div>
 </body>
 </html>