description:gettext("Course teams are organized into topics created by course instructors. Try to join others in an existing team before you decide to create a new team!"),
description:gettext("See all teams in your course, organized by topic. Join a team to collaborate with other learners who are interested in the same topic as you are."),
title:gettext("Teams")
})
}),
main:newTabbedView({
tabs:[{
tabs:[{
title:gettext('My Teams'),
title:gettext('My Teams'),
url:'teams',
url:'teams',
...
@@ -37,18 +81,184 @@
...
@@ -37,18 +81,184 @@
title:gettext('Browse'),
title:gettext('Browse'),
url:'browse',
url:'browse',
view:newTopicsView({
view:newTopicsView({
collection:options.topicCollection
collection:this.topicsCollection,
router:this.router
})
}],
router:this.router
})
})
}]
});
});
Backbone.history.start();
},
},
render:function(){
render:function(){
this.$el.append(this.headerView.$el);
this.mainView.setElement(this.$el).render();
this.headerView.render();
this.hideWarning();
this.$el.append(this.tabbedView.$el);
returnthis;
this.tabbedView.render();
},
/**
* Render the list of teams for the given topic ID.