Skip to content

Commit a8e7fe8

Browse files
committed
2 parents 77ff16b + 332298d commit a8e7fe8

File tree

5 files changed

+16
-19
lines changed

5 files changed

+16
-19
lines changed

data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
'description': 'Get started with Java and object-oriented programming for building robust applications.'
9292
}
9393

94-
Cplusplus = {
94+
cplusplus = {
9595
'courseName': 'C++',#used on search results
9696
'name': 'C++ Essentials',
9797
'logo': 'cplusplus-plain',

menuData.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
all = [
99
data.Java, #lecture added
10-
data.Cplusplus,
10+
data.cplusplus,
1111
data.ReactJS, #lecture added
1212
data.ML, #lecture added
1313
data.JavaScript,#lecture added
1414
data.Django, #lecture added
1515
data.Python, #lecture added
1616
data.HTML, #lecture added
1717
data.Angular
18-
]
18+
]

routes/browse_routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Map the course_name parameter to the corresponding course data using a dictionary
88
course_mapping = {
99
'Java': data.Java,
10-
'C++': data.Cplusplus,
10+
'C++': data.cplusplus,
1111
'ReactJS': data.ReactJS,
1212
'ML+AI': data.ML,
1313
'JavaScript': data.JavaScript,
@@ -50,4 +50,4 @@ def browse():
5050
return render_template('browse.html', trending=trending, allCourses=allCourses, search_keyword=search_keyword, search_results=filtered_courses)
5151

5252
# If it's a GET request, show the regular browse page without search results
53-
return render_template('browse.html', trending=trending, allCourses=allCourses)
53+
return render_template('browse.html', trending=trending, allCourses=allCourses)

templates/browse.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ <h4># <em>Courses Library</em></h4>
3838
</div>
3939
</div>
4040
</div>
41+
<!-- add go to top button-->
4142
<!-- ***** Start Stream End ***** -->
4243

4344
{% endblock %}

templates/layout.html

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,16 @@
3737
<!-- ***** Logo End ***** -->
3838
<!-- ***** Search start ***** -->
3939
<div class="search-input">
40-
<form
41-
id="search"
42-
method="POST"
43-
action="{{ url_for('browse.browse_home') }}"
44-
>
45-
<input
46-
type="text"
47-
placeholder="Type Something"
48-
id="searchText"
49-
name="searchKeyword"
50-
value="{{ search_keyword }}"
51-
/>
52-
<!-- Display the search keyword if it was submitted -->
53-
<i type="submit" class="fa fa-search"></i>
40+
<form id="search" method="POST" action="{{ url_for('browse.browse_home') }}">
41+
<input
42+
type="text"
43+
placeholder="Search Courses"
44+
id="searchText"
45+
name="searchKeyword"
46+
value="{{ search_keyword }}"
47+
/> <!-- Display the search keyword if it was submitted -->
48+
<i type="submit" class="fa fa-search"></i>
49+
5450
</form>
5551
</div>
5652
<!-- ***** Search End ***** -->

0 commit comments

Comments
 (0)