summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-06-14 19:40:20 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-06-15 15:10:42 +0200
commita41e07b37ec9243191804ac2966e2d136ce79710 (patch)
treec69fe5af3d8520a7e73500105564e9526dbbe71e
parenta16b7cd69c07a59b16deb8aa6f579b0e1d3027f8 (diff)
downloadwekan-a41e07b37ec9243191804ac2966e2d136ce79710.tar.gz
wekan-a41e07b37ec9243191804ac2966e2d136ce79710.tar.bz2
wekan-a41e07b37ec9243191804ac2966e2d136ce79710.zip
Finish the transition from Spacebars to Jade
-rw-r--r--client/components/main/editor.jade6
-rw-r--r--client/components/main/layouts.jade8
-rw-r--r--client/components/main/templates.html17
3 files changed, 14 insertions, 17 deletions
diff --git a/client/components/main/editor.jade b/client/components/main/editor.jade
index cb01cdc1..c910b052 100644
--- a/client/components/main/editor.jade
+++ b/client/components/main/editor.jade
@@ -5,3 +5,9 @@ template(name="editor")
autofocus=autofocus
placeholder="{{_ 'comment-placeholder'}}")
+Template.contentBlock
+
+template(name="viewer")
+ +mentions
+ +emoji
+ +markdown
+ {{> UI.contentBlock }}
diff --git a/client/components/main/layouts.jade b/client/components/main/layouts.jade
index d1ea36b5..8e6ae941 100644
--- a/client/components/main/layouts.jade
+++ b/client/components/main/layouts.jade
@@ -16,3 +16,11 @@ template(name="defaultLayout")
#content
+yield
+template(name="notfound")
+ +message(label='page-not-found')
+
+template(name="message")
+ .big-message.quiet(class=color)
+ h1 {{_ label}}
+ with(pathFor route='atSignIn')
+ p {{{_ 'page-maybe-private' this}}}
diff --git a/client/components/main/templates.html b/client/components/main/templates.html
deleted file mode 100644
index 876eb13a..00000000
--- a/client/components/main/templates.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<template name="notfound">
- {{ > message label='page-not-found'}}
-</template>
-
-<template name='message'>
- <div class="big-message quiet {{ color }}">
- <h1>{{_ label}}</h1>
- {{#with pathFor route='atSignIn'}}
- <p>{{{_ 'page-maybe-private' this}}}</p>
- {{/with}}
- </div>
-</template>
-
-<!-- XXX This should be moved to editor.jade but there is an issue with jade
- handling of the markdown component. -->
-
-<template name="viewer">{{#markdown}}{{#emoji}}{{#mentions}}{{> UI.contentBlock }}{{/mentions}}{{/emoji}}{{/markdown}}</template>