-
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.
Render the ids of the videos in new handler+template
- Loading branch information
1 parent
f6d21df
commit d2f78e6
Showing
5 changed files
with
39 additions
and
1 deletion.
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,5 @@ | ||
from flask import Blueprint | ||
|
||
AdYouLation = Blueprint('AdYouLation', __name__) | ||
|
||
import handlers |
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,8 @@ | ||
from ..AdYouLation import AdYouLation | ||
from flask import render_template, current_app | ||
|
||
@AdYouLation.route('/start') | ||
def start(): | ||
videos = current_app.videos | ||
keys = videos["videos"].keys() | ||
return render_template("start.html", names=keys) |
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,10 @@ | ||
<!doctype html> | ||
<title>AdYouLation</title> | ||
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}"> | ||
<div class=page> | ||
<h1>AdYouLation</h1> | ||
{% for message in get_flashed_messages() %} | ||
<div class=flash>{{ message }}</div> | ||
{% endfor %} | ||
{% block body %}{% endblock %} | ||
</div> |
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,10 @@ | ||
{% extends "layout.html" %} | ||
{% block body %} | ||
<ul class=entries> | ||
{% for video in names %} | ||
<li><h2>{{ video }}</h2> | ||
{% else %} | ||
<li><em>Unbelievable. No entries here so far</em> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} |