1
0
mirror of https://github.com/fazo96/markcloud.git synced 2025-04-01 00:18:37 +02:00

handle empty documents and better loading

This commit is contained in:
fazo96 2014-10-04 10:40:16 +02:00
parent cac43cb4c0
commit a94be4c4de
2 changed files with 13 additions and 2 deletions

View File

@ -8,6 +8,10 @@
top: 1em; top: 1em;
} }
#loading {
margin-top: 2em;
}
#new-btn { #new-btn {
margin-top: 1em; margin-top: 1em;
} }

View File

@ -27,13 +27,20 @@
</template> </template>
<template name="doc"> <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> <hr>
<div class="text-center">Powered by <a href="/">MarkCloud</a></div> <div class="text-center">Powered by <a href="/">MarkCloud</a></div>
</template> </template>
<template name="loading"> <template name="loading">
<div class="text-center"> <div id="loading" class="text-center">
<i class="fa fa-cog fa-spin fa-3x"></i> <i class="fa fa-cog fa-spin fa-3x"></i>
</div> </div>
</template> </template>