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
5dfd4d4d
Commit
5dfd4d4d
authored
Jun 11, 2014
by
jsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clarify and internationalize the search spell correction message.
parent
b5cd3e1b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
+6
-1
lms/static/sass/discussion/_discussion-developer.scss
+5
-1
lms/templates/discussion/_underscore_templates.html
+1
-1
No files found.
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
View file @
5dfd4d4d
...
...
@@ -460,7 +460,12 @@ if Backbone?
@
collection
.
current_page
=
response
.
page
@
collection
.
pages
=
response
.
num_pages
if
!
_
.
isNull
response
.
corrected_text
@
addSearchAlert
(
'Showing results for "'
+
response
.
corrected_text
+
'"'
);
message
=
interpolate
(
_
.
escape
(
gettext
(
'No results found for %(original_query)s. Showing results for %(suggested_query)s.'
)),
{
"original_query"
:
"<em>"
+
_
.
escape
(
text
)
+
"</em>"
,
"suggested_query"
:
"<em>"
+
response
.
corrected_text
+
"</em>"
},
true
)
@
addSearchAlert
(
message
)
# TODO: Perhaps reload user info so that votes can be updated.
# In the future we might not load all of a user's votes at once
# so this would probably be necessary anyway
...
...
lms/static/sass/discussion/_discussion-developer.scss
View file @
5dfd4d4d
...
...
@@ -45,8 +45,12 @@ body.discussion {
// alert copy
.message
{
@include
font-size
(
12
);
@extend
%t-weight5
;
color
:
$white
;
em
{
@extend
%t-weight5
;
font-style
:
italic
;
}
}
// links to jump to users/content in alerts
...
...
lms/templates/discussion/_underscore_templates.html
View file @
5dfd4d4d
...
...
@@ -311,7 +311,7 @@
<script
aria-hidden=
"true"
type=
"text/template"
id=
"search-alert-template"
>
<
div
class
=
"search-alert"
id
=
"search-alert-${'<%- cid %>'}"
>
<
div
class
=
"search-alert-content"
>
<
p
class
=
"message"
>
$
{
'<%
-
message %>'
}
<
/p
>
<
p
class
=
"message"
>
$
{
'<%
=
message %>'
}
<
/p
>
<
/div
>
<
div
class
=
"search-alert-controls"
>
...
...
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