1
0
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:
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;
}
#loading {
margin-top: 2em;
}
#new-btn {
margin-top: 1em;
}

View File

@ -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>