From 97d3ae3a0e1c7da0877345fa429394822dec6443 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 6 Oct 2012 22:42:17 +0200 Subject: template for file-view --- module/web/static/js/views/fileView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/web/static/js/views/fileView.js') diff --git a/module/web/static/js/views/fileView.js b/module/web/static/js/views/fileView.js index 7db8112c8..1c96c61e2 100644 --- a/module/web/static/js/views/fileView.js +++ b/module/web/static/js/views/fileView.js @@ -4,6 +4,8 @@ define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) { return Backbone.View.extend({ tagName: 'li', + className: 'file-view', + template: _.template($("#template-file").html()), events: { }, @@ -12,7 +14,7 @@ define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) { }, render: function() { - this.$el.html(this.model.get('name')); + this.$el.html(this.template(this.model.toJSON())); return this; } -- cgit v1.2.3