Commit f37371e3 by Muzaffar yousaf

Merge pull request #9512 from edx/muzaffar/tnl2964-breadcrumbs

Adjust create new team page breadcrumbs.
parents 28fddda4 b45ffa11
......@@ -654,7 +654,7 @@ class TeamFormActions(TeamsTabBase):
title='Create a New Team',
description='Create a new team if you can\'t find existing teams to '
'join, or if you would like to learn with friends you know.',
breadcrumbs=self.topic['name']
breadcrumbs='All Topics {topic_name}'.format(topic_name=self.topic['name'])
)
def verify_and_navigate_to_edit_team_page(self):
......
......@@ -194,27 +194,31 @@
* Render the create new team form.
*/
newTeam: function (topicID) {
var self = this;
this.getTeamsView(topicID).done(function (teamsView) {
self.mainView = new ViewWithHeader({
header: new HeaderView({
model: new TeamsHeaderModel({
description: gettext("Create a new team if you can't find existing teams to join, or if you would like to learn with friends you know."),
title: gettext("Create a New Team"),
breadcrumbs: [
{
title: teamsView.main.teamParams.topicName,
url: '#topics/' + teamsView.main.teamParams.topicID
}
]
})
}),
main: new TeamEditView({
action: 'create',
teamEvents: self.teamEvents,
teamParams: teamsView.main.teamParams
})
var self = this,
createViewWithHeader;
this.getTopic(topicID).done(function (topic) {
var view = new TeamEditView({
action: 'create',
teamEvents: self.teamEvents,
teamParams: {
courseID: self.courseID,
topicID: topic.get('id'),
teamsUrl: self.teamsUrl,
topicName: topic.get('name'),
languages: self.languages,
countries: self.countries,
teamsDetailUrl: self.teamsDetailUrl
}
});
createViewWithHeader = self.createViewWithHeader({
mainView: view,
subject: {
name: gettext("Create a New Team"),
description: gettext("Create a new team if you can't find existing teams to join, or if you would like to learn with friends you know.")
},
parentTopic: topic
});
self.mainView = createViewWithHeader;
self.render();
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment