1
0
mirror of https://github.com/fazo96/markcloud.git synced 2025-02-04 14:54:19 +01:00
markcloud/client/templates.html

53 lines
1.6 KiB
HTML
Raw Normal View History

2014-10-04 08:48:44 +02:00
<template name="layout">
2014-10-04 10:34:13 +02:00
{{> yield region="outside"}}
2014-10-04 08:48:44 +02:00
<div class="container">
<h1>MarkCloud</h1>
<hr>
{{> yield}}
</div>
</template>
<template name="home">
2014-10-04 08:56:18 +02:00
<p>This is a demo app. Click <a href="new">here</a> to create a new document.</p>
<p>After submitting the document you will be redirected to its permanent link</p>
2014-10-04 10:11:08 +02:00
<p>There are <b>{{ndocs}}</b> documents in the database</p>
<p>This demo was built by <a href="http://github.com/fazo96">Enrico Fasoli (fazo96)</a> in 45 minutes. It's open source, you can find the code <a href="http://github.com/fazo96/markcloud">here</a></p>
2014-10-04 08:48:44 +02:00
</template>
<template name="new">
2014-10-04 08:56:18 +02:00
<p>Write your document in <a href="https://help.github.com/articles/github-flavored-markdown/">GitHub Flavored Markdown</a> then submit it with the button. You will be redirected to its permanent link</p>
2014-10-04 10:11:08 +02:00
<textarea id="editor" class="form-control" rows="10" autofocus></textarea>
<button id="new-btn" class="btn btn-primary">
<i class="fa fa-upload"></i> Upload</button>
2014-10-04 08:48:44 +02:00
</template>
2014-10-04 08:56:18 +02:00
<template name="docLayout">
2014-10-04 10:34:13 +02:00
{{> yield region="outside"}}
2014-10-04 08:56:18 +02:00
<div class="container">{{> yield}}</div>
</template>
2014-10-04 08:48:44 +02:00
<template name="doc">
{{#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}}
2014-10-04 08:56:18 +02:00
<hr>
2014-10-04 10:11:08 +02:00
<div class="text-center">Powered by <a href="/">MarkCloud</a></div>
</template>
<template name="loading">
<div id="loading" class="text-center">
2014-10-04 10:34:13 +02:00
<i class="fa fa-cog fa-spin fa-3x"></i>
</div>
</template>
<template name="spinner">
<div id="spinner">
<i class="fa fa-2x fa-cog fa-spin"></i>
</div>
2014-10-04 08:48:44 +02:00
</template>