Skip to content

Commit 820b0f5

Browse files
committed
added go back button
1 parent 1413724 commit 820b0f5

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

templates/details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h4>#<em> Related</em> Courses</h4>
7575

7676
<div class="col-lg-12">
7777
<div class="main-button">
78-
<a href="{{ url_for('browse.browse_home') }}">Discover Popular</a>
78+
<a href="{{ url_for('browse.browse_home') }}">Discover Courses</a>
7979
</div>
8080
</div>
8181
</div>

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h4>#<em> Popular</em> Courses</h4>
1515

1616
<div class="col-lg-12">
1717
<div class="main-button">
18-
<a href="{{ url_for('browse.browse_home') }}">Discover Popular</a>
18+
<a href="{{ url_for('browse.browse_home') }}">Discover Courses</a>
1919
</div>
2020
</div>
2121
</div>

templates/macros/lectures.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<ul>
66
<li><img src="{{ url_for('static', filename='assets/images/game-02.jpg') }}" alt="" class="templatemo-item"></li>
77
<li><h4>{{ lecture['topic'] }}</h4><span>{{lecture['courseName']}}</span></li>
8-
<li><h4>Date Added</h4><span>{{ lecture['author'] }}</span></li>
8+
<li><h4>Author</h4><span>{{ lecture['author'] }}</span></li>
99
<li><h4>Duration</h4><span>{{ lecture['duration'] }}</span></li>
1010
<li><h4>Price</h4><span>{{ lecture['price'] }}</span></li>
11-
<li><div class="main-border-button"><a href="{{ url_for('view.views', link=lecture['id'], thumbnail=lecture['img'], topics=lecture['topic'], courseName=lecture['courseName']) }}" target="_blank">Watch</a></div></li>
11+
<li><div class="main-border-button"><a href="{{ url_for('view.views', link=lecture['id'], thumbnail=lecture['img'], topics=lecture['topic'], courseName=lecture['courseName']) }}">Watch</a></div></li>
1212

1313
</ul>
1414
</div>

templates/view.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,20 @@ <h4>{{ topic }}</h4>
7878
</div>
7979

8080
<div class="col-lg-10 mx-auto">
81-
<p style="text-align: justify;">CodeColts is an open-source project providing free coding video courses from various sources. <br> We don't own or profit from the videos. All videos are owned by their respective creators. Our purpose is purely educational. We attribute and link to the original content. If you're a video creator and find your content here without proper attribution or consent, contact us to rectify. <br> We respect copyright laws. We're not liable for any damages or losses incurred while using our site. Read our full disclaimer for details, which may change over time.
81+
<p style="text-align: justify;">CodeColts is an open-source project providing free coding video courses from various sources. <br> We don't own or profit from the videos. All videos are owned by their respective creators. Our purpose is purely educational. We attribute and link to the original content. If you're a video creator and find your content here without proper attribution or consent, contact us to rectify. <br>Read our full disclaimer for details, which may change over time.
8282

8383
<br>Thank you for using CodeColts!</p>
8484
</div>
8585
<div class="col-lg-12">
8686
<div class="main-border-button">
87-
<a href="#">Go Back</a>
87+
<a id="goBackButton">Go Back</a>
8888
</div>
89+
<script>
90+
document.getElementById("goBackButton").addEventListener("click", function() {
91+
window.history.back();
92+
});
93+
</script>
94+
8995
</div>
9096
</div>
9197
</div>

0 commit comments

Comments
 (0)