aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2018-08-23 16:21:42 -0500
committerMatt Rude <[email protected]>2018-08-23 16:21:42 -0500
commit23a3a0ccfb4c5ef980a1ccfe9a075b6551be66e8 (patch)
treec33a806afca65f70987b0fbac969ad72be2da6de
parent4c7a19d7570f75fcd6bb3b89fae17099a222c446 (diff)
downloadxmpp-site-lite-23a3a0ccfb4c5ef980a1ccfe9a075b6551be66e8.tar.gz
xmpp-site-lite-23a3a0ccfb4c5ef980a1ccfe9a075b6551be66e8.tar.bz2
xmpp-site-lite-23a3a0ccfb4c5ef980a1ccfe9a075b6551be66e8.zip
Updates to update error messages
-rw-r--r--errors/403-upload.html19
-rw-r--r--errors/404-upload.html5
-rw-r--r--errors/index-upload.html19
3 files changed, 41 insertions, 2 deletions
diff --git a/errors/403-upload.html b/errors/403-upload.html
new file mode 100644
index 0000000..42fa6c5
--- /dev/null
+++ b/errors/403-upload.html
@@ -0,0 +1,19 @@
+---
+layout: error
+sitemap: false
+permalink: /assets/errors/403-upload.html
+---
+
+<div id="error-container" class="container d-flex h-100">
+ <div id="error-text" class="justify-content-center align-self-center">
+ <br />
+ <h1><i class="fa fa-exclamation-triangle"></i></h1>
+ <h1 style="font-size:3.5em">Error: <b>403</b></h1>
+ <br />
+ <h1>Directory Listing Not Allowed</h1>
+ <hr />
+ <p>This domain ({{ site.xmpp-upload-url }}) is the frontend for the XMPP<br /><a href="https://xmpp.org/extensions/xep-0363.html">HTTP_Upload</a> service; running for the domain <a href="{{ site.url }}">{{ site.xmpp-url }}</a>.</p>
+ <hr />
+ <p><small>You must have an XMPP Account on the {{ site.xmpp-url }} domain inorder to use this service.</small></</p>
+ </div>
+</div>
diff --git a/errors/404-upload.html b/errors/404-upload.html
index 55432a9..74b4407 100644
--- a/errors/404-upload.html
+++ b/errors/404-upload.html
@@ -6,14 +6,15 @@ permalink: /assets/errors/404-upload.html
<div id="error-container" class="container d-flex h-100">
<div id="error-text" class="justify-content-center align-self-center">
+ <br />
<h1><i class="fa fa-exclamation-triangle"></i></h1>
<h1 style="font-size:3.5em">Error: <b>404</b></h1>
<br />
<h1>File not found!</h1>
<hr />
<p><b>Im sorry but the file you are looking for can not be found at this time.</b></p>
- <p>The file may have expired before you tried to download it; files expire <b>180 days</b> after they are uploaded.</p>
+ <p>The file may have expired{% if site.ejabberd-upload-days %}; files expire <b>{{ site.ejabberd-upload-days }} days</b> after they are uploaded{% endif %}.</p>
<hr />
- <p><small>Please see <a href="https://xmpp.org/extensions/xep-0363.html">XEP-0363</a> for more information on XMPP HTTP_Upload service.</small></p>
+ <p><small>See <a href="https://xmpp.org/extensions/xep-0363.html">XEP-0363</a> for more information on using the XMPP HTTP_Upload service.</small></p>
</div>
</div>
diff --git a/errors/index-upload.html b/errors/index-upload.html
new file mode 100644
index 0000000..d278fb7
--- /dev/null
+++ b/errors/index-upload.html
@@ -0,0 +1,19 @@
+---
+layout: error
+sitemap: false
+permalink: /assets/errors/index-upload.html
+---
+
+<div id="error-container" class="container d-flex h-100">
+ <div id="error-text" class="justify-content-center align-self-center">
+ <br />
+ <h1><i class="fa fa-exclamation-triangle"></i></h1>
+ <h1 style="font-size:3.5em">Error: <b>403</b></h1>
+ <br />
+ <h1>Web Browsing is not permitted</h1>
+ <hr />
+ <p>This domain ({{ site.xmpp-upload-url }}) is the frontend for the XMPP<br /><a href="https://xmpp.org/extensions/xep-0363.html">HTTP_Upload</a> service; running for the domain <a href="{{ site.url }}">{{ site.xmpp-url }}</a>.</p>
+ <hr />
+ <p><small>You must have an XMPP Account on the {{ site.xmpp-url }} domain inorder to use this service.</small></</p>
+ </div>
+</div>