Prechádzať zdrojové kódy

Finish the transition from Spacebars to Jade

Maxime Quandalle 10 rokov pred
rodič
commit
a41e07b37e

+ 6 - 0
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 }}

+ 8 - 0
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}}}

+ 0 - 17
client/components/main/templates.html

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