]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Fix broken footer on empty details search
authorValerie Pond <redacted>
Sat, 13 May 2023 00:54:36 +0000 (01:54 +0100)
committerValerie Pond <redacted>
Sat, 13 May 2023 00:54:36 +0000 (01:54 +0100)
Also make the margin for Server Information 5px because it was a little close to the edge

channels/details.php
servers/details.php
users/details.php

index 8cf6543914963545af6222f5a96ac72ce82f86ac..46d33215cbaa3ff06f7073652de495886573df76 100644 (file)
@@ -219,7 +219,11 @@ if (!empty($_POST))
        </div>
 </form>
 <?php if (!$channelObj)
-               return; ?>
+{
+       require_once("../inc/footer.php");
+       return;
+}
+?>
 
 <!-- Modal for Add Ban -->
 <div class="modal fade" id="ban" tabindex="-1" role="dialog" aria-labelledby="confirmModalCenterTitle" aria-hidden="true">
index ec427b9911324203822a965b69f350e0f6895c46..5077f69aeff735576f6d900be27fa2770ccd5e39 100644 (file)
@@ -115,7 +115,10 @@ if (!empty($rehash_success)) {
 </form>
 
 <?php if (!$srv)
+{
+       require_once UPATH.'/inc/footer.php';
        return;
+}
 ?>
 <br>
 <div class="row">
@@ -191,10 +194,12 @@ if (!empty($rehash_success)) {
        <div class="tab-pane fade in" id="servermodes">
                
                <p class="card-text row">
-                       <h4>Server information</h4>
-                       <?php generate_html_serverinfo($srv); ?>
-                       <h4>Extra information</h4>
-                       <?php generate_html_extserverinfo($srv); ?>
+                       <div class="row" style="margin-left:5px">
+                               <h4>Server information</h4>
+                               <?php generate_html_serverinfo($srv); ?>
+                               <h4>Extra information</h4>
+                               <?php generate_html_extserverinfo($srv); ?>
+                       </div>
                </p>
        </div><form id="editservermodes" method="post" name="editservermodes">
        <div class="tab-pane" style="display: none" id="servermodes_edit">
index 08430911320334490c7cffb341410a00f2553757..1a4fa6d2d87a88b2758d336c630e5131184968d3 100644 (file)
@@ -31,8 +31,10 @@ if (isset($_GET['nick']))
   </div>
 </form>
 
-<?php if (!$nick)
-       return; ?>
+<?php if (!$nick){
+       require_once("../inc/footer.php");
+       return;
+} ?>
 <br>
 <div class="container-xxl">
   <div class="row">