Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QW vest 8 search bar #9

Closed
wants to merge 90 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
60b94c0
course discovery
qwqtw Nov 14, 2023
42d65a0
Update courses.html
qwqtw Nov 14, 2023
e44a35f
Revert "Update courses.html"
qwqtw Nov 14, 2023
a1232fa
Update courses.html
qwqtw Nov 14, 2023
4c0bf98
Update courses.html
qwqtw Nov 14, 2023
f784b9c
Update courses.html
qwqtw Nov 15, 2023
c6bff93
Update courses.html
qwqtw Nov 15, 2023
f123916
Update courses.html
qwqtw Nov 15, 2023
28a6fdd
Create filter_icon.png
qwqtw Nov 15, 2023
b2e8c80
Create magnifier.png
qwqtw Nov 15, 2023
0e65285
Update courses.html
qwqtw Nov 15, 2023
46fe564
Create filter_icon.png
qwqtw Nov 15, 2023
cb215fe
Create magnifier.png
qwqtw Nov 15, 2023
6673200
Update courses.html
qwqtw Nov 15, 2023
cbc0821
Merge branch 'qwqw3' of https://github.com/EduTrigger/edx-platform in…
qwqtw Nov 15, 2023
a469976
Update views.py
qwqtw Nov 15, 2023
68507d4
Update devstack.py
qwqtw Nov 15, 2023
7f68173
Update courses.html
qwqtw Nov 15, 2023
e390921
Revert "Update devstack.py"
qwqtw Nov 15, 2023
3cd5927
Revert "Revert "Update devstack.py""
qwqtw Nov 15, 2023
aa01fc0
Revert "Update courses.html"
qwqtw Nov 15, 2023
f93092b
Update courses.html
qwqtw Nov 15, 2023
c841106
Revert "Update courses.html"
qwqtw Nov 15, 2023
0a8fc3b
Update courses.html
qwqtw Nov 15, 2023
5a1e3ff
Update courses.html
qwqtw Nov 16, 2023
f42fdfc
Update courses.html
qwqtw Nov 16, 2023
000fd5f
Update courses.html
qwqtw Nov 16, 2023
22edf38
Update search_form.js
qwqtw Nov 16, 2023
4453a69
Revert "Update search_form.js"
qwqtw Nov 16, 2023
40f4f13
Update discovery_factory.js
qwqtw Nov 16, 2023
f866cc6
Update courses.html
qwqtw Nov 16, 2023
a0968e8
Revert "Update discovery_factory.js"
qwqtw Nov 16, 2023
fadd4c6
Revert "Update courses.html"
qwqtw Nov 16, 2023
f5f067e
Update discovery_factory.js
qwqtw Nov 18, 2023
4a0cae0
Update search_form.js
qwqtw Nov 18, 2023
f640ee3
Update search_form.js
qwqtw Nov 18, 2023
0f671dc
Update discovery_factory.js
qwqtw Nov 18, 2023
732de87
Update search_form.js
qwqtw Nov 18, 2023
3354c5a
Update courses.html
qwqtw Nov 18, 2023
9f8eef1
Create 0012_auto_20231118_2333.py
qwqtw Nov 19, 2023
c907e85
Update discovery_factory.js
qwqtw Nov 19, 2023
e0699cf
Update courses.html
qwqtw Nov 19, 2023
119d9f3
Update courses.html
qwqtw Nov 20, 2023
6cad67f
Update courses.html
qwqtw Nov 20, 2023
c82f876
Update devstack.py
qwqtw Nov 20, 2023
84f9d1b
Update courses.html
qwqtw Nov 20, 2023
f6c6530
Update courses.html
qwqtw Nov 21, 2023
bdacdd1
Update search_form.js
qwqtw Nov 21, 2023
c38cde4
Update courses.html
qwqtw Nov 21, 2023
4381502
Update discovery_factory.js
qwqtw Nov 21, 2023
9c744f2
Update search_form.js
qwqtw Nov 21, 2023
fd46d57
Update search_form.js
qwqtw Nov 21, 2023
c18ee72
Update courses.html
qwqtw Nov 21, 2023
e520085
Update courses.html
qwqtw Nov 21, 2023
934c608
Update filter_bar.js
qwqtw Nov 21, 2023
3c78623
Update courses.html
qwqtw Nov 21, 2023
67f62be
Update discovery_factory.js
qwqtw Nov 22, 2023
e3fef26
Revert "Update discovery_factory.js"
qwqtw Nov 22, 2023
fac2ac8
Update filter_bar.js
qwqtw Nov 22, 2023
4251fc9
Update search_form.js
qwqtw Nov 22, 2023
b446515
Revert "Update search_form.js"
qwqtw Nov 22, 2023
04c407c
Update courses.html
qwqtw Nov 22, 2023
d16697d
Update courses.html
qwqtw Nov 22, 2023
04c5005
Update courses.html
qwqtw Nov 22, 2023
ee8d8aa
Delete filter_icon.png
qwqtw Nov 23, 2023
97de184
Delete magnifier.png
qwqtw Nov 23, 2023
b5f61d3
Update bok_choy.yml
qwqtw Nov 23, 2023
961db1b
Update bok_choy_docker.yml
qwqtw Nov 23, 2023
53bd3bd
Update devstack.py
qwqtw Nov 23, 2023
c5a87eb
Update courses.html
qwqtw Nov 23, 2023
c230238
Update courses.html
qwqtw Nov 24, 2023
679a970
Update courses.html
qwqtw Nov 24, 2023
bceada2
Update production.py
qwqtw Nov 25, 2023
562e38a
Update courses.html
qwqtw Nov 25, 2023
7f15b95
Update courses.html
qwqtw Nov 25, 2023
5039388
Update courses.html
qwqtw Nov 25, 2023
b659d51
Update common.py
qwqtw Nov 25, 2023
fa04fd6
Update common.py
qwqtw Nov 25, 2023
a59323c
Update production.py
qwqtw Nov 25, 2023
b7c2822
Update courses.html
qwqtw Nov 25, 2023
83ddccd
Update courses.html
qwqtw Nov 25, 2023
ab7ef13
Update common.py
qwqtw Nov 25, 2023
315859d
Update courses.html
qwqtw Nov 25, 2023
9ec41f2
Revert "Update bok_choy_docker.yml"
qwqtw Nov 26, 2023
290d8c7
Revert "Update bok_choy.yml"
qwqtw Nov 26, 2023
af930ec
Revert "Create 0012_auto_20231118_2333.py"
qwqtw Nov 26, 2023
3cc2deb
Update discovery_factory.js
qwqtw Nov 26, 2023
b1e5d96
Update search_form.js
qwqtw Nov 26, 2023
3df4410
Update courses.html
qwqtw Nov 27, 2023
c23c4f0
Update search_form.js
qwqtw Nov 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update search_form.js
  • Loading branch information
qwqtw committed Nov 18, 2023
commit 4a0cae0bfe91590606b89888e5dd8775ef6c5c51
24 changes: 17 additions & 7 deletions lms/static/js/discovery/views/search_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,21 @@
},

showFoundMessage: function(count) {
var msg = ngettext(
'Viewing %s course',
'Viewing %s courses',
count
);
this.$message.html(interpolate(msg, [count]));
var msg;
if (count > 0) {
msg = ngettext(
'Found %s course for "%s"',
'Found %s courses for "%s"',
count
);
} else {
msg = ngettext(
'Viewing %s course',
'Viewing %s courses',
count
);
}
this.$message.html(interpolate(msg, [count, _.escape(term)]));
},

showNotFoundMessage: function(term) {
Expand All @@ -62,7 +71,8 @@

showErrorMessage: function(error) {
this.$message.text(gettext(error || 'There was an error, try searching again.'));
}
},


});
});
Expand Down