mirror of
https://github.com/fazo96/markcloud.git
synced 2025-01-10 11:04:21 +01:00
handle empty documents and better loading
This commit is contained in:
parent
cac43cb4c0
commit
a94be4c4de
@ -8,6 +8,10 @@
|
||||
top: 1em;
|
||||
}
|
||||
|
||||
#loading {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
#new-btn {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
@ -27,13 +27,20 @@
|
||||
</template>
|
||||
|
||||
<template name="doc">
|
||||
{{#markdown}}{{text}}{{/markdown}}
|
||||
{{#if text}}
|
||||
{{#markdown}}{{text}}{{/markdown}}
|
||||
{{else}}
|
||||
<div class="text-center">
|
||||
<h1>Sorry</h1>
|
||||
<p>This document is empty, expired, or never existed.</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
<hr>
|
||||
<div class="text-center">Powered by <a href="/">MarkCloud</a></div>
|
||||
</template>
|
||||
|
||||
<template name="loading">
|
||||
<div class="text-center">
|
||||
<div id="loading" class="text-center">
|
||||
<i class="fa fa-cog fa-spin fa-3x"></i>
|
||||
</div>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user