diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js
index 628b4a9..ebc08c1 100644
--- a/resources/assets/js/app.js
+++ b/resources/assets/js/app.js
@@ -7,9 +7,6 @@ require('./modules/form-autoalias')
require('./vue-init')
$(function () {
- // Remove all noscript from forms etc
- $('noscript').remove();
-
// Bootstrap tooltips
$('[data-toggle="tooltip"]').tooltip({
container: 'body'
diff --git a/resources/assets/sass/_helpers.scss b/resources/assets/sass/_helpers.scss
index c9acd97..520a710 100644
--- a/resources/assets/sass/_helpers.scss
+++ b/resources/assets/sass/_helpers.scss
@@ -29,3 +29,7 @@
.pointer {
cursor: pointer;
}
+
+.noscript-hide {
+ display: none;
+}
diff --git a/resources/assets/sass/bootstrap-customizations/_responsive.scss b/resources/assets/sass/bootstrap-customizations/_responsive.scss
index 7f74e12..584f7f4 100644
--- a/resources/assets/sass/bootstrap-customizations/_responsive.scss
+++ b/resources/assets/sass/bootstrap-customizations/_responsive.scss
@@ -1,5 +1,5 @@
@media (max-width:767px) {
- .mobile-only {
+ .no-mobile {
display: none;
}
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index bbecb81..0ac2123 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -16,6 +16,10 @@
function ready(fn) {
document.addEventListener('DOMContentLoaded', fn);
}
+ ready(function() {
+ $('noscript').remove();
+ $('.noscript-hide').removeClass('noscript-hide');
+ });
@stack('scripts')
diff --git a/resources/views/layouts/guest-buttons.blade.php b/resources/views/layouts/guest-buttons.blade.php
new file mode 100644
index 0000000..6d5f921
--- /dev/null
+++ b/resources/views/layouts/guest-buttons.blade.php
@@ -0,0 +1,13 @@
+
+
+ @icon(fa-sign-in pr-1)
+ {{ __('Login') }}
+
+
+@if(config('app.allow_regs'))
+
+
+ @icon(fa-user-plus pr-1)
+ {{ __('Register') }}
+
+@endif
diff --git a/resources/views/layouts/main-nav.blade.php b/resources/views/layouts/main-nav.blade.php
index 49de2af..46ead51 100644
--- a/resources/views/layouts/main-nav.blade.php
+++ b/resources/views/layouts/main-nav.blade.php
@@ -7,36 +7,23 @@
--}}datatable.directory
-
-
+
+
+
diff --git a/resources/views/layouts/nav-buttons.blade.php b/resources/views/layouts/nav-buttons.blade.php
index 3c4b3c0..82d2e51 100644
--- a/resources/views/layouts/nav-buttons.blade.php
+++ b/resources/views/layouts/nav-buttons.blade.php
@@ -1,6 +1,7 @@
@php
-$li = $dropdown ? '' : '';
+$dmdhide = isset($noscript)?'':'d-md-none';
+$li = $dropdown ? '' : "";
$aclass = $dropdown ? 'dropdown-item' : 'nav-link';
@endphp