From 283f15794e6eda8be7071f911e877ecf17a55dcf Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 22 Jan 2020 00:51:07 -0600 Subject: [PATCH] add in milligram CSS framework and add in basic usage to content --- app/templates/base.html | 3 +++ app/templates/content.html | 34 ++++++++++++++++++++++++++++++++++ app/templates/episode.html | 4 ++-- app/templates/season.html | 6 +++--- app/templates/view.html | 6 +++--- 5 files changed, 45 insertions(+), 8 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index 4cbd66b..094edb7 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -3,6 +3,9 @@ The Office Quotes{% if title %} - {{ title }}{% endif %} {% block head %} + + + {% endblock head %} diff --git a/app/templates/content.html b/app/templates/content.html index a185b0d..51cb4d9 100644 --- a/app/templates/content.html +++ b/app/templates/content.html @@ -1,4 +1,38 @@ {% extends 'base.html' %} +{% block head %} +{{ super() }} + +{% endblock head %} {% block body %} {{ super() }} +
+
+
+
+
+ {% block content %} + {% endblock content %} +
+
+
+
+
{% endblock body %} \ No newline at end of file diff --git a/app/templates/episode.html b/app/templates/episode.html index 1280fe3..868c60f 100644 --- a/app/templates/episode.html +++ b/app/templates/episode.html @@ -1,5 +1,5 @@ {% extends 'content.html' %} -{% block body %} +{% block content %} Go to Season {{ episode.season_id }}
Rebuild Episode @@ -12,4 +12,4 @@ {% endfor %}
{% endfor %} -{% endblock body %} \ No newline at end of file +{% endblock content %} \ No newline at end of file diff --git a/app/templates/season.html b/app/templates/season.html index c7594e0..1b0e761 100644 --- a/app/templates/season.html +++ b/app/templates/season.html @@ -1,5 +1,5 @@ -{% extends 'base.html' %} -{% block body %} +{% extends 'content.html' %} +{% block content %} {{ super() }} See all Seasons @@ -12,4 +12,4 @@ Season {{ season.id }}
{% endfor %} -{% endblock body %} \ No newline at end of file +{% endblock content %} \ No newline at end of file diff --git a/app/templates/view.html b/app/templates/view.html index 76de35a..408aea2 100644 --- a/app/templates/view.html +++ b/app/templates/view.html @@ -1,8 +1,8 @@ -{% extends 'base.html' %} -{% block body %} +{% extends 'content.html' %} +{% block content %} {{ super() }} {% for season in seasons %} Season {{ season.id }}
{% endfor %} -{% endblock body %} \ No newline at end of file +{% endblock content %} \ No newline at end of file