]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Add timeout warning 298/head
authorMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Mon, 14 Mar 2022 03:45:14 +0000 (20:45 -0700)
committerMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Mon, 14 Mar 2022 03:45:14 +0000 (20:45 -0700)
src/documents/templates/index.html

index 96f7454910b349b09899783e63ad9ea75d95e3e7..b45ce31d2dd806ab48b4327021b91e0ccd929107 100644 (file)
 </head>
 <body class="color-scheme-system">
        <app-root>
+               <script type="text/javascript">
+                       setTimeout(() => {
+                               let warning = document.getElementsByClassName('warning').item(0)
+                               warning.classList.remove('hide')
+                               warning.classList.add('show')
+                       }, 8000)
+               </script>
                <style type="text/css">
                        html, body {
                                width: 100%;
@@ -38,7 +45,7 @@
                                }
                        }
 
-                       .app-loader {
+                       .app-loader svg, .app-loader h6 {
                                opacity: 0.1;
                                -webkit-animation: pulsate 2s ease-out;
                                -webkit-animation-iteration-count: infinite;
@@ -69,6 +76,7 @@
                                        </g>
                                </svg>
                                <h6 class="m-auto">{% translate "Paperless-ngx is loading..." %}</h6>
+                               <p class="warning m-auto mt-3 small fade hide">{% translate "Still here?! Hmm, something might be wrong." %} <a href="https://paperless-ngx.readthedocs.io/en/latest/">{% translate "Here's a link to the docs." %}</a></p>
                        </div>
                </div>
        </app-root>