-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
14 changed files
with
316 additions
and
36 deletions.
There are no files selected for viewing
Binary file added
BIN
+56.5 MB
media/videos/Progress_-_Lift_Me_Up_Live_Performance_-_Glitch_Sessions_VotoBPZ.mp4
Binary file not shown.
Binary file added
BIN
+56.5 MB
media/videos/Progress_-_Lift_Me_Up_Live_Performance_-_Glitch_Sessions_rFFVRcw.mp4
Binary file not shown.
Binary file added
BIN
+56.5 MB
media/videos/Progress_-_Lift_Me_Up_Live_Performance_-_Glitch_Sessions_vCyeih3.mp4
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,17 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
|
||
<fieldset name="Video File Upload and Display"> | ||
{% if msg %} {% autoescape off %} {{ msg }} {% endautoescape %} {% endif %} | ||
|
||
<form method="post" action="{% url 'movies:edit_movie' movie.id %}" enctype="multipart/form-data"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<p> | ||
<button type="submit">Update Movie Details </button> | ||
</p> | ||
</form> | ||
</fieldset> | ||
|
||
{% endblock content %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
|
||
<h1>Lists of all posts</h1> | ||
|
||
{% for movie in page_obj %} | ||
|
||
<a href="{% url 'movies:view_movie' movie.id %}"> | ||
<video width="320" height="240" controlsList="nodownload"> | ||
<source src="{{ MEDIA_URL }}/{{ movie.video }}" type="video/mp4"> | ||
</video> | ||
</a> | ||
|
||
{% empty %} | ||
|
||
<h3> | ||
No Movies have been added yet. | ||
</h3> | ||
|
||
<li><a class="nav-link" href="{% url 'movies:new_movie'%}">Add Movie</a></li> | ||
|
||
{% endfor %} | ||
|
||
|
||
<div class="pagination"> | ||
<span class="step-links"> | ||
{% if page_obj.has_previous %} | ||
<a href="?page=1">« first</a> | ||
<a href="?page={{ page_obj.previous_page_number }}">previous</a> | ||
{% endif %} | ||
|
||
<span class="current"> | ||
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. | ||
</span> | ||
|
||
{% if page_obj.has_next %} | ||
<a href="?page={{ page_obj.next_page_number }}">next</a> | ||
<a href="?page={{ page_obj.paginator.num_pages }}">last »</a> | ||
{% endif %} | ||
</span> | ||
</div> | ||
|
||
|
||
|
||
{% endblock content %} |
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 |
---|---|---|
@@ -1,26 +1,153 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load static %} | ||
{% block content %} | ||
|
||
<h1>Lists of all posts</h1> | ||
<body> | ||
|
||
<style> | ||
p { | ||
font-family: Roboto, Ariel; | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
.thumbnail { | ||
width: 100%; | ||
} | ||
|
||
.search-bar { | ||
display: block; | ||
} | ||
|
||
.author {} | ||
|
||
.stats {} | ||
|
||
.heading { | ||
margin-top: 0px; | ||
font-size: 14px; | ||
font-weight: 500; | ||
line-height: 20px; | ||
margin-bottom: 10px; | ||
|
||
} | ||
|
||
.preview {} | ||
|
||
.video-info-grid { | ||
display: grid; | ||
grid-template-columns: 50px 1fr | ||
} | ||
|
||
|
||
.video-info { | ||
margin-left: 10px; | ||
} | ||
|
||
.profile-picture { | ||
width: 100%; | ||
border-radius: 80px; | ||
|
||
} | ||
|
||
.thumbnail-row { | ||
margin-bottom: 12px; | ||
|
||
} | ||
|
||
.author, | ||
.stats { | ||
font-size: 12px; | ||
color: rgb(96, 96, 96); | ||
} | ||
|
||
.author { | ||
margin-bottom: 6px; | ||
} | ||
|
||
.all-video-grid { | ||
column-gap: 16px; | ||
row-gap: 30px; | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
} | ||
</style> | ||
|
||
<input class="search-bar" type="text" placeholder="Search"> | ||
<br> | ||
|
||
<section class="all-video-grid"> | ||
|
||
{% for movie in page_obj %} | ||
<section class="preview"> | ||
<section class="thumbnail-row"> | ||
<!-- <img class="thumbnail" src="{{ movie.author. }}" alt="first image"> --> | ||
<a href="{% url 'movies:view_movie' movie.id %}"> | ||
<video width="320" height="240" controlsList="nodownload"> | ||
<source src="{{ MEDIA_URL }}/{{ movie.video }}" type="video/mp4"> | ||
</video> | ||
</a> | ||
</section> | ||
|
||
{% for movie in movies %} | ||
<section class="video-info-grid"> | ||
{% if movie.author.userinfo.avatar %} | ||
<section class="channel-picture"> | ||
<img class="profile-picture" src="{{ movie.author.userinfo.avatar.url }}" alt=""> | ||
</section> | ||
{% else %} | ||
<section class="channel-picture"> | ||
<img class="profile-picture" src="{% static 'dummy.png' %}" alt=""> | ||
</section> | ||
{% endif %} | ||
|
||
<a href="{% url 'movies:view_movie' movie.id %}"> | ||
<video width="320" height="240" controlsList="nodownload"> | ||
<source src="{{ MEDIA_URL }}/{{ movie.video }}" type="video/mp4"> | ||
</video> | ||
</a> | ||
<section class="video-info"> | ||
<p class="heading"> | ||
{{ movie.title }} | ||
</p> | ||
|
||
<p class="author"> | ||
<a href="{% url 'movies:view_profile' movie.id %}">{{movie.author}}</a> | ||
</p> | ||
|
||
<p class="stats"> | ||
{{ movie.liked.count }} Likes · Updated : {{ movie.updated }} | ||
</p> | ||
</section> | ||
</section> | ||
</section> | ||
|
||
|
||
{% empty %} | ||
|
||
<h3> | ||
No Movies have been added yet. | ||
</h3> | ||
|
||
<li><a class="nav-link" href="{% url 'movies:new_movie'%}">Add Movie</a></li> | ||
|
||
{% endfor %} | ||
</section> | ||
|
||
|
||
{% empty %} | ||
</body> | ||
|
||
<h3> | ||
No Movies have been added yet. | ||
</h3> | ||
<div class=""> | ||
<span class="step-links"> | ||
{% if page_obj.has_previous %} | ||
<a href="?page=1">« first</a> | ||
<a href="?page={{ page_obj.previous_page_number }}">previous</a> | ||
{% endif %} | ||
|
||
<li><a class="nav-link" href="{% url 'movies:new_movie'%}">Add Movie</a></li> | ||
<span class="current"> | ||
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. | ||
</span> | ||
|
||
{% endfor %} | ||
{% if page_obj.has_next %} | ||
<a href="?page={{ page_obj.next_page_number }}">next</a> | ||
<a href="?page={{ page_obj.paginator.num_pages }}">last »</a> | ||
{% endif %} | ||
</span> | ||
</div> | ||
|
||
{% endblock content %} |
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
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
Oops, something went wrong.