Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f37371e3
Commit
f37371e3
authored
Aug 28, 2015
by
Muzaffar yousaf
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9512 from edx/muzaffar/tnl2964-breadcrumbs
Adjust create new team page breadcrumbs.
parents
28fddda4
b45ffa11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
21 deletions
+25
-21
common/test/acceptance/tests/lms/test_teams.py
+1
-1
lms/djangoapps/teams/static/teams/js/views/teams_tab.js
+24
-20
No files found.
common/test/acceptance/tests/lms/test_teams.py
View file @
f37371e3
...
...
@@ -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
):
...
...
lms/djangoapps/teams/static/teams/js/views/teams_tab.js
View file @
f37371e3
...
...
@@ -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
();
});
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment