]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - footer.php
Add a bug report button to the footer
[irc/unrealircd/unrealircd-webpanel.git] / footer.php
index a887717a10659892d68c5e85bdb61688b966aa73..34651d7c4812890bceb146073d9806b7f7f85df4 100644 (file)
                                href="https://github.com/unrealircd/unrealircd-webpanel"
                                role="button"
                                data-mdb-ripple-color="dark"
-                               ><i class="fab fa-github"></i
+                               ><i style="margin-left: -18px" class="fab fa-github"></i
                        ></a>
                        <!-- UnrealIRCd -->
                        <a
                                href="https://unrealircd.org"
                                role="button"
                                data-mdb-ripple-color="dark">
-                               <img class="btn btn-link btn-floating btn-xs text-white" src="<?php echo BASE_URL; ?>img/favicon.ico" width="25" height="25"></a>
-               
+                               <img src="<?php echo get_config("base_url"); ?>img/unreal.jpg" width="23" height="23" style="margin-right: 25px"></a>
+
+                       <i id="bugreport" style="margin-left: -18px; margin-right: 10px;" height="1000px" class="fa fa-bug" data-toggle="tooltip" data-placement="top" title="Report a bug (Opens in new tab)"></i>
                
                <?php
 
                
                ?>
                
+               
 </div>
-</div>
+</div><!-- Second div is because there is a container div in the header-->
 
 </footer>
 </body>
-</html>
\ No newline at end of file
+</html>
+<script>
+       var bugreport = document.getElementById('bugreport');
+       bugreport.addEventListener('click', (e) => {
+               window.open("https://github.com/unrealircd/unrealircd-webpanel/issues/new?labels=bug&template=bug_report.md", '_blank');
+       });
+</script>
\ No newline at end of file