Browse Source

Add footer on the web admin

Julien VAUBOURG 10 years ago
parent
commit
af6c61e28f
4 changed files with 18 additions and 5 deletions
  1. BIN
      screenshot.png
  2. 9 0
      sources/public/css/style.css
  3. BIN
      sources/public/img/github.png
  4. 9 5
      sources/views/layout.html.php

BIN
screenshot.png


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

@@ -60,3 +60,12 @@ a.btn-disabled, a.btn-disabled:hover, a.btn-disabled:active {
 a.btn-disabled:hover span {
   color: #eee;
 }
+
+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


+ 9 - 5
sources/views/layout.html.php

@@ -17,23 +17,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?>
+    <?= $content ?>
+
+    <hr />
+    <div id="github"><a href="https://github.com/jvaubourg/vpnclient_ynh"><?= T_('Any problem? Contribute!') ?></a> - AGPL 3.0</div>
+  </div>
 </body>
 </html>