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
0a347e12
Commit
0a347e12
authored
Oct 05, 2015
by
Matt Drayer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10013 from edx/asadiqbal08/SOL-1262
SOL-1262 Update Studio Button Copy
parents
1d121b81
aec1b959
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
2 deletions
+21
-2
cms/static/js/certificates/views/certificates_list.js
+2
-0
cms/static/js/views/content_group_list.js
+2
-0
cms/static/js/views/group_configurations_list.js
+2
-0
cms/static/js/views/list.js
+1
-0
cms/templates/js/list.underscore
+1
-1
common/test/acceptance/pages/studio/settings_certificates.py
+7
-0
common/test/acceptance/tests/studio/test_studio_settings_certificates.py
+6
-1
No files found.
cms/static/js/certificates/views/certificates_list.js
View file @
0a347e12
...
...
@@ -15,6 +15,8 @@ function (gettext, ListView, CertificateItemView) {
// Translators: this refers to a collection of certificates.
itemCategoryDisplayName
:
gettext
(
'certificate'
),
newItemMessage
:
gettext
(
'Set up your certificate'
),
// Translators: This line refers to the initial state of the form when no data has been inserted
emptyMessage
:
gettext
(
'You have not created any certificates yet.'
),
...
...
cms/static/js/views/content_group_list.js
View file @
0a347e12
...
...
@@ -15,6 +15,8 @@ define([
// Translators: This refers to a content group that can be linked to a student cohort.
itemCategoryDisplayName
:
gettext
(
'content group'
),
newItemMessage
:
gettext
(
'Add your first content group'
),
emptyMessage
:
gettext
(
'You have not created any content groups yet.'
),
createItemView
:
function
(
options
)
{
...
...
cms/static/js/views/group_configurations_list.js
View file @
0a347e12
...
...
@@ -17,6 +17,8 @@ define([
// Translators: this refers to a collection of groups.
itemCategoryDisplayName
:
gettext
(
'group configuration'
),
newItemMessage
:
gettext
(
'Add your first group configuration'
),
emptyMessage
:
gettext
(
'You have not created any group configurations yet.'
),
createItemView
:
function
(
options
)
{
...
...
cms/static/js/views/list.js
View file @
0a347e12
...
...
@@ -38,6 +38,7 @@ define([
render
:
function
(
model
)
{
this
.
$el
.
html
(
this
.
template
({
itemCategoryDisplayName
:
this
.
itemCategoryDisplayName
,
newItemMessage
:
this
.
newItemMessage
,
emptyMessage
:
this
.
emptyMessage
,
length
:
this
.
collection
.
length
,
isEditing
:
model
&&
model
.
get
(
'editing'
),
...
...
cms/templates/js/list.underscore
View file @
0a347e12
...
...
@@ -4,7 +4,7 @@
<%- emptyMessage %>
<a href="#" class="button new-button"><i class="icon fa fa-plus"></i>
<%= interpolate(
gettext("
Add your first %(item_type)s"), {item_type: itemCategoryDisplayNam
e}, true
gettext("
%(new_item_message)s"), {new_item_message: newItemMessag
e}, true
) %></a>
</p>
</div>
...
...
common/test/acceptance/pages/studio/settings_certificates.py
View file @
0a347e12
...
...
@@ -83,6 +83,13 @@ class CertificatesPage(CoursePage):
"""
return
self
.
q
(
css
=
'.wrapper-content '
+
self
.
certficate_css
+
' .no-content'
)
.
text
[
0
]
@property
def
new_certificate_link_text
(
self
):
"""
Returns text of new-button link .
"""
return
self
.
q
(
css
=
'.wrapper-content '
+
self
.
certficate_css
+
' .no-content a.new-button'
)
.
text
[
0
]
################
# Wait Actions
################
...
...
common/test/acceptance/tests/studio/test_studio_settings_certificates.py
View file @
0a347e12
...
...
@@ -70,7 +70,8 @@ class CertificatesTest(StudioCourseTest):
shown when no certificate exist.
Given I have a course without certificates
When I go to the Certificates page in Studio
Then I see "You have not created any certificates yet." message
Then I see "You have not created any certificates yet." message and
a link with text "Set up your certificate"
"""
self
.
certificates_page
.
visit
()
self
.
assertTrue
(
self
.
certificates_page
.
no_certificates_message_shown
)
...
...
@@ -78,6 +79,10 @@ class CertificatesTest(StudioCourseTest):
"You have not created any certificates yet."
,
self
.
certificates_page
.
no_certificates_message_text
)
self
.
assertIn
(
"Set up your certificate"
,
self
.
certificates_page
.
new_certificate_link_text
)
def
test_can_create_and_edit_certficate
(
self
):
"""
...
...
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