Add a base template
This commit is contained in:
parent
743e6a23d4
commit
ae60d5961c
11
templates/base.tera
Normal file
11
templates/base.tera
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{% block title %}{% endblock title %} ⋅ Plume</title>
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
</body>
|
||||
</html>
|
@ -1,16 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>New blog</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Create a blog</h1>
|
||||
<form method="post">
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
New blog
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Create a blog</h1>
|
||||
<form method="post">
|
||||
<label for="title">Title</label>
|
||||
<input name="title">
|
||||
|
||||
<input type="submit" value="Create blog"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
@ -1,16 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Configuration</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Configure your instance</h1>
|
||||
<form method="post">
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
Configuration
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Configure your instance</h1>
|
||||
<form method="post">
|
||||
<label for="name">Name</label>
|
||||
<input name="name">
|
||||
|
||||
<input type="submit" value="Let's go!"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
@ -1,12 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>New post</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Create a post</h1>
|
||||
<form method="post">
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
New post
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Create a post</h1>
|
||||
<form method="post">
|
||||
<label for="title">Title</label>
|
||||
<input name="title">
|
||||
|
||||
@ -17,6 +17,5 @@
|
||||
<input name="license">
|
||||
|
||||
<input type="submit" value="Publish"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
@ -1,12 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Login</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Login</h1>
|
||||
<form method="post">
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
Login
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Login</h1>
|
||||
<form method="post">
|
||||
<label for="email_or_name">Username or email</label>
|
||||
<input name="email_or_name">
|
||||
|
||||
@ -14,6 +14,5 @@
|
||||
<input type="password" name="password">
|
||||
|
||||
<input type="submit" value="Login"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
@ -1,13 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ user.display_name }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ user.display_name }}</h1>
|
||||
<div>
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
{{ user.display_name }}
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ user.display_name }}</h1>
|
||||
<div>
|
||||
{{ user.summary | safe }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
@ -1,12 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>New account</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Create an account</h1>
|
||||
<form method="post">
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
New Account
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Create an account</h1>
|
||||
<form method="post">
|
||||
<label for="username">Username</label>
|
||||
<input name="username">
|
||||
|
||||
@ -20,6 +20,5 @@
|
||||
<input type="password" name="password_confirmation">
|
||||
|
||||
<input type="submit" value="Create account"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
Loading…
Reference in New Issue
Block a user