瀏覽代碼

Markup cleanup.

Frederic G. MARAND 9 年之前
父節點
當前提交
5a2c8fc5ca
共有 3 個文件被更改,包括 14 次插入14 次删除
  1. 6 2
      client/client.js
  2. 3 5
      client/page_home.html
  3. 5 7
      client/page_site.html

+ 6 - 2
client/client.js

@@ -15,12 +15,16 @@ Router.route("/", function () {
 });
 
 Router.route("/site/:id", function () {
+  console.log(this.parms);
+  const id = this.params.id;
+  const doc = _.extend({ onPage: true }, Websites.findOne({ _id: id }));
   this.render("page_site", {
     to: "contents",
     data: function () {
-      const id = this.params.id;
-      const doc = _.extend({ onPage: true }, Websites.findOne({ _id: id }));
       return doc;
     }
   });
+  this.render("comments", {
+    to: "comments"
+  });
 });

+ 3 - 5
client/page_home.html

@@ -1,8 +1,6 @@
 <template name="page_home">
-  <div class="container">
-    <ol class="breadcrumb">
-      <li class="active">Home</li>
-    </ol>
-  </div>
+  <ol class="breadcrumb">
+    <li class="active">Home</li>
+  </ol>
   {{> website_list }}
 </template>

+ 5 - 7
client/page_site.html

@@ -1,11 +1,9 @@
 <template name="page_site">
-  <div class="container">
-    <ol class="breadcrumb">
-      <li><a href="/">Home</a></li>
-      <li class="active">{{ title }}</li>
-    </ol>
-  </div>
-  <ul>
+  <ol class="breadcrumb">
+    <li><a href="/">Home</a></li>
+    <li class="active">{{ title }}</li>
+  </ol>
+  <ul class="list-group">
     {{> website_item }}
   </ul>
 </template>