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
c1f3f558
Commit
c1f3f558
authored
9 years ago
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7524 from louyihua/underscore_extraction
Fix string extraction error in underscore files
parents
8bfc948b
46342a3f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
11 deletions
+43
-11
cms/templates/js/course-outline.underscore
+12
-3
cms/templates/js/list.underscore
+8
-2
cms/templates/js/publish-xblock.underscore
+6
-2
cms/templates/js/xblock-outline.underscore
+12
-3
lms/templates/courseware_search/search_list.underscore
+5
-1
No files found.
cms/templates/js/course-outline.underscore
View file @
c1f3f558
...
...
@@ -44,7 +44,10 @@ if (xblockInfo.get('graded')) {
<div class="<%= xblockType %>-header">
<% if (includesChildren) { %>
<h3 class="<%= xblockType %>-header-details expand-collapse <%= isCollapsed ? 'expand' : 'collapse' %> ui-toggle-expansion"
title="<%= interpolate(gettext('Collapse/Expand this %(xblock_type)s'), { xblock_type: xblockTypeDisplayName }, true) %>">
title="<%= interpolate(
gettext('Collapse/Expand this %(xblock_type)s'), { xblock_type: xblockTypeDisplayName }, true
) %>"
>
<i class="icon fa fa-caret-down"></i>
<% } else { %>
<h3 class="<%= xblockType %>-header-details">
...
...
@@ -156,7 +159,10 @@ if (xblockInfo.get('graded')) {
<p><%= gettext("You haven't added any content to this course yet.") %>
<a href="#" class="button button-new" data-category="<%= childCategory %>"
data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>"
title="<%= interpolate(gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true) %>" >
title="<%= interpolate(
gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true
) %>"
>
<i class="icon fa fa-plus"></i><%= addChildLabel %>
</a>
</p>
...
...
@@ -174,7 +180,10 @@ if (xblockInfo.get('graded')) {
<div class="add-<%= childType %> add-item">
<a href="#" class="button button-new" data-category="<%= childCategory %>"
data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>"
title="<%= interpolate(gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true) %>" >
title="<%= interpolate(
gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true
) %>"
>
<i class="icon fa fa-plus"></i><%= addChildLabel %>
</a>
</div>
...
...
This diff is collapsed.
Click to expand it.
cms/templates/js/list.underscore
View file @
c1f3f558
...
...
@@ -2,14 +2,20 @@
<div class="no-content">
<p>
<%- emptyMessage %>
<a href="#" class="button new-button"><i class="icon fa fa-plus"></i> <%= interpolate(gettext("Add your first %(item_type)s"), {item_type: itemCategoryDisplayName}, true) %></a>
<a href="#" class="button new-button"><i class="icon fa fa-plus"></i>
<%= interpolate(
gettext("Add your first %(item_type)s"), {item_type: itemCategoryDisplayName}, true
) %></a>
</p>
</div>
<% } else { %>
<div class="list-items"></div>
<% if (!isEditing) { %>
<button class="action action-add">
<i class="icon fa fa-plus"></i><%- interpolate(gettext('New %(item_type)s'), {item_type: itemCategoryDisplayName}, true) %>
<i class="icon fa fa-plus"></i>
<%- interpolate(
gettext('New %(item_type)s'), {item_type: itemCategoryDisplayName}, true
) %>
</button>
<% } %>
<% } %>
This diff is collapsed.
Click to expand it.
cms/templates/js/publish-xblock.underscore
View file @
c1f3f558
...
...
@@ -48,7 +48,9 @@ var visibleToStaffOnly = visibilityState === 'staff_only';
<% if (releaseDate) { %>
<span class="release-date"><%= releaseDate %></span>
<span class="release-with">
<%= interpolate(gettext('with %(release_date_from)s'), { release_date_from: releaseDateFrom }, true) %>
<%= interpolate(
gettext('with %(release_date_from)s'), { release_date_from: releaseDateFrom }, true
) %>
</span>
<% } else { %>
...
...
@@ -70,7 +72,9 @@ var visibleToStaffOnly = visibilityState === 'staff_only';
<%= gettext("Staff Only") %>
<% if (!hasExplicitStaffLock) { %>
<span class="inherited-from">
<%= interpolate(gettext("with %(section_or_subsection)s"),{ section_or_subsection: staffLockFrom }, true) %>
<%= interpolate(
gettext("with %(section_or_subsection)s"),{ section_or_subsection: staffLockFrom }, true
) %>
</span>
<% } %>
</p>
...
...
This diff is collapsed.
Click to expand it.
cms/templates/js/xblock-outline.underscore
View file @
c1f3f558
...
...
@@ -7,7 +7,10 @@
<div class="wrapper-xblock-header-primary">
<% if (includesChildren) { %>
<h3 class="xblock-title expand-collapse <%= isCollapsed ? 'expand' : 'collapse' %>"
title="<%= interpolate(gettext('Collapse/Expand this %(xblock_type)s'), { xblock_type: xblockTypeDisplayName }, true) %>">
title="<%= interpolate(
gettext('Collapse/Expand this %(xblock_type)s'), { xblock_type: xblockTypeDisplayName }, true
) %>"
>
<i class="icon fa fa-caret-down ui-toggle-expansion"></i>
<% } else { %>
<h3 class="xblock-title">
...
...
@@ -54,7 +57,10 @@
<p><%= gettext("You haven't added any content to this course yet.") %>
<a href="#" class="button button-new" data-category="<%= childCategory %>"
data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>"
title="<%= interpolate(gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true) %>" >
title="<%= interpolate(
gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true
) %>"
>
<i class="icon fa fa-plus"></i><%= addChildLabel %>
</a>
</p>
...
...
@@ -67,7 +73,10 @@
<div class="add-xblock-component">
<a href="#" class="button button-new" data-category="<%= childCategory %>"
data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>"
title="<%= interpolate(gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true) %>" >
title="<%= interpolate(
gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true
) %>"
>
<i class="icon fa fa-plus"></i><%= addChildLabel %>
</a>
</div>
...
...
This diff is collapsed.
Click to expand it.
lms/templates/courseware_search/search_list.underscore
View file @
c1f3f558
...
...
@@ -9,7 +9,11 @@
<% if (hasMoreResults) { %>
<a class="search-load-next" href="javascript:void(0);">
<%= interpolate(gettext("Load next %s results"), [pageSize]) %>
<%= interpolate(
ngettext("Load next %(num_items) result", "Load next %(num_items) results", pageSize),
{ num_items: pageSize },
true
) %>
<i class="icon fa-spinner fa-spin"></i>
</a>
<% } %>
...
...
This diff is collapsed.
Click to expand it.
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