Skip to content

Commit e242e4c

Browse files
committed
adding navbar
1 parent be4fc49 commit e242e4c

File tree

5 files changed

+11
-17
lines changed

5 files changed

+11
-17
lines changed

templates/courses/course_history.html

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
<html>
2-
<head>
3-
<title>Course_History</title>
4-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
5-
</head>
6-
<body>
1+
{% extends "shared/base.html" %}
2+
{% block title %}Course Info{% endblock %}
3+
{% block body %}
74
<div class="container-fluid">
85
<div>
96
<p><a href="/">Menu</a></p>
@@ -62,5 +59,6 @@ <h3>Course History</h3>
6259
</table>
6360
</div>
6461
</div>
62+
{% endblock %}
6563
</body>
6664
</html>

templates/courses/course_info.html

-1
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,4 @@ <h4>More Information</h4>
5656
</div>
5757
</div>
5858
</div>
59-
</body>
6059
{% endblock %}

templates/courses/joint_courses.html

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
<html>
2-
<head>
3-
<title>Joint Courses</title>
4-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
5-
</head>
6-
<body>
1+
{% extends "shared/base.html" %}
2+
{% block title %}Course Info{% endblock %}
3+
{% block body %}
74
<div class="container-fluid">
85
<div>
96
<p><a href="/">Menu</a></p>
@@ -32,5 +29,5 @@ <h5>Joint Course Info</h5>
3229
</table>
3330
</div>
3431
</div>
35-
</body>
32+
{% endblock %}
3633
</html>

templates/shared/base.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@
7171
</div>
7272
</nav>
7373
<hr size="6" color="gold">
74-
{% block body %}
75-
{% endblock %}
7674
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
7775
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
7876
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
7977
</body>
78+
{% block body %}
79+
{% endblock %}
8080
</html>

views/courses.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async def get_course_history(
8181
)
8282

8383

84-
@router.get("/joint_courses.html/", response_class=HTMLResponse)
84+
@router.get("/joint_courses/", response_class=HTMLResponse)
8585
async def get_joint_course_list(request: Request):
8686
sql: str = sql_scripts.joint_courses_query
8787
data: dict = courses.get_joint_course_data(sql)

0 commit comments

Comments
 (0)