-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#8] Added for you page. Still need to setup a previous button.
- Loading branch information
1 parent
98943b7
commit 6143709
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block content %} | ||
<h1>For You</h1> | ||
{% if audio_file %} | ||
<h2>{{ audio_file.title }}</h2> | ||
<p> {{audo_file.description}}</p> | ||
<audio controls autoplay> | ||
<source src="{{ audio_file.file.url }}" type="audio/mp4"> | ||
Your browser does not support the audio element. | ||
</audio> | ||
<p>{{ audio_file.description }}</p> | ||
<form method="get" action="{% url 'for_you' %}"> | ||
<button type="submit">Next</button> | ||
</form> | ||
{% else %} | ||
<p>No audio files available.</p> | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters