mirror of
https://github.com/fazo96/markcloud.git
synced 2025-04-14 01:48:40 +02:00
various improvements
This commit is contained in:
parent
8597cf0474
commit
8902b29f03
@ -7,6 +7,7 @@ Router.map ->
|
|||||||
@route 'home', path: '/'
|
@route 'home', path: '/'
|
||||||
@route 'doc',
|
@route 'doc',
|
||||||
path: '/d/:_id'
|
path: '/d/:_id'
|
||||||
|
layoutTemplate: 'docLayout'
|
||||||
waitOn: -> @docHandle = Meteor.subscribe 'doc', @params._id
|
waitOn: -> @docHandle = Meteor.subscribe 'doc', @params._id
|
||||||
data: -> docs.findOne @params._id
|
data: -> docs.findOne @params._id
|
||||||
@route 'new'
|
@route 'new'
|
||||||
|
@ -7,14 +7,23 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template name="home">
|
<template name="home">
|
||||||
test
|
<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>
|
||||||
|
<p>This demo was built by <a href="http://github.com/fazo96">Enrico Fasoli (fazo96)</a> in 45 minutes.</p>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template name="new">
|
<template name="new">
|
||||||
|
<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>
|
||||||
<textarea id="editor" class="form-control"></textarea>
|
<textarea id="editor" class="form-control"></textarea>
|
||||||
<button id="new-btn" class="btn btn-primary">submit</button>
|
<button id="new-btn" class="btn btn-primary">submit</button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template name="doc">
|
<template name="docLayout">
|
||||||
{{#markdown}} {{text}} {{/markdown}}
|
<div class="container">{{> yield}}</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template name="doc">
|
||||||
|
{{#markdown}}{{text}}{{/markdown}}
|
||||||
|
<hr>
|
||||||
|
<div align="center">Powered by <a href="/">MarkCloud</a></div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user