projects
/
txt.house
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull out base template
[txt.house]
/
txt_house
/
templates
/
index.html
diff --git
a/txt_house/templates/index.html
b/txt_house/templates/index.html
index
8523976
..
fcd6fe9
100644
(file)
--- a/
txt_house/templates/index.html
+++ b/
txt_house/templates/index.html
@@
-1,16
+1,9
@@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>txt.house</title>
- </head>
+{% extends 'base.html' %}
- <body>
- <form action='create' method='post'>
- {% csrf_token %}
- <textarea name='text'></textarea>
- <input type='submit'></input>
- </form>
- </body>
-</html>
+{% block body %}
+<form action='create' method='post'>
+ {% csrf_token %}
+ <textarea name='text'></textarea>
+ <input type='submit'></input>
+</form>
+{% endblock %}