Skip to content

Node.js based forum software built for the modern web

fixed widgets page rendering, along with tjs 0.2.2

psychobunny2ed0f25d45ee
diff --git a/package.json b/package.json
index ac4fd2983a..0428d04687 100644
--- a/package.json
+++ b/package.json
@@ -64,7 +64,7 @@
"socket.io-redis": "^0.1.3",
"socketio-wildcard": "~0.1.1",
"string": "^3.0.0",
- "templates.js": "^0.2.1",
+ "templates.js": "^0.2.2",
"uglify-js": "git+https://github.com/julianlam/UglifyJS2.git",
"underscore": "~1.8.3",
"validator": "^3.30.0",
diff --git a/src/views/admin/extend/widgets.tpl b/src/views/admin/extend/widgets.tpl
index 48a225f9c2..d1f0d0466f 100644
--- a/src/views/admin/extend/widgets.tpl
+++ b/src/views/admin/extend/widgets.tpl
@@ -6,7 +6,7 @@
<ul class="nav nav-pills">
<!-- BEGIN templates -->
- <li class="<!-- IF @first -->active<!-- ENDIF @first -->"><a href="#" data-template="{template}" data-toggle="pill">{template}</a></li>
+ <li class="<!-- IF @first -->active<!-- ENDIF @first -->"><a href="#" data-template="{../template}" data-toggle="pill">{../template}</a></li>
<!-- END templates -->
</ul>
@@ -14,10 +14,10 @@
<div class="col-xs-12">
<div class="tab-content">
<!-- BEGIN templates -->
- <div class="tab-pane <!-- IF @first -->active<!-- ENDIF @first -->" data-template="{template}">
+ <div class="tab-pane <!-- IF @first -->active<!-- ENDIF @first -->" data-template="{../template}">
<!-- BEGIN areas -->
- <div class="area" data-template="{template}" data-location="{areas.location}">
- <h4>{areas.name} <small>{template} / {areas.location}</small></h4>
+ <div class="area" data-template="{templates.template}" data-location="{../location}">
+ <h4>{../name} <small>{templates.template} / {../location}</small></h4>
<div class="well widget-area">
</div>