mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 06:33:48 +00:00
28 lines
603 B
JavaScript
28 lines
603 B
JavaScript
define([
|
|
'jquery',
|
|
'underscore',
|
|
'backbone',
|
|
'text!' + app.config._tmplRoot + 'repos.html'
|
|
], function($, _, Backbone, reposTemplate) {
|
|
'use strict';
|
|
|
|
var RepoView = Backbone.View.extend({
|
|
tagName: 'tr',
|
|
|
|
template: _.template(reposTemplate),
|
|
|
|
initialize: function() {
|
|
console.log('init RepoView');
|
|
Backbone.View.prototype.initialize.apply(this, arguments);
|
|
},
|
|
|
|
render: function() {
|
|
this.$el.html(this.template(this.model.toJSON()));
|
|
return this;
|
|
}
|
|
|
|
});
|
|
|
|
return RepoView;
|
|
});
|