OSDN Git Service

template: componentize article_item and content_editor
[newslash/newslash.git] / src / newslash_web / templates / journal / create.html.tt2
index b2dbe53..e0feedf 100644 (file)
@@ -1,12 +1,6 @@
 [% WRAPPER common/layout sidebar=1 vue=1%]
-
-<script type="text/x-template" id="article-item">
-  [% INCLUDE common/article story={content_type => "journal", vue_template => 1} hide_more_link = 0 %]
-</script>
-
-<script type="text/x-template" id="content-editor">
-[% INCLUDE journal/editor %]
-</script>
+[%- INCLUDE components/article_item -%]
+[%- INCLUDE components/content_editor -%]
 
 <div class="main-column">
   <div class="post submission main-contents" id="journal-editor">
 </div>
 [%- INCLUDE common/sidebar -%]
   
-<script src="/js/content-editor.js" ></script>
-<script src="/js/article-item.js" ></script>
 <script src="/js/editor.js" ></script>
 <script>
-  contentEditor.run();
-  articleItem.run();
   editor.run({ type: 'journal', el: '#journal-editor', user: user, });
 </script>