mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-22 18:16:30 +00:00
Add a base template
This commit is contained in:
parent
743e6a23d4
commit
ae60d5961c
7 changed files with 105 additions and 100 deletions
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">
|
||||
<label for="title">Title</label>
|
||||
<input name="title">
|
||||
{% extends "base" %}
|
||||
|
||||
<input type="submit" value="Create blog"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
{% 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>
|
||||
{% 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">
|
||||
<label for="name">Name</label>
|
||||
<input name="name">
|
||||
{% extends "base" %}
|
||||
|
||||
<input type="submit" value="Let's go!"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
{% 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>
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,22 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>New post</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Create a post</h1>
|
||||
<form method="post">
|
||||
<label for="title">Title</label>
|
||||
<input name="title">
|
||||
{% extends "base" %}
|
||||
|
||||
<label for="content">Content</label>
|
||||
<textarea name="content"></textarea>
|
||||
{% block title %}
|
||||
New post
|
||||
{% endblock title %}
|
||||
|
||||
<label for="license">License</label>
|
||||
<input name="license">
|
||||
{% block content %}
|
||||
<h1>Create a post</h1>
|
||||
<form method="post">
|
||||
<label for="title">Title</label>
|
||||
<input name="title">
|
||||
|
||||
<input type="submit" value="Publish"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<label for="content">Content</label>
|
||||
<textarea name="content"></textarea>
|
||||
|
||||
<label for="license">License</label>
|
||||
<input name="license">
|
||||
|
||||
<input type="submit" value="Publish"/>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Login</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Login</h1>
|
||||
<form method="post">
|
||||
<label for="email_or_name">Username or email</label>
|
||||
<input name="email_or_name">
|
||||
{% extends "base" %}
|
||||
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password">
|
||||
{% block title %}
|
||||
Login
|
||||
{% endblock title %}
|
||||
|
||||
<input type="submit" value="Login"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
{% block content %}
|
||||
<h1>Login</h1>
|
||||
<form method="post">
|
||||
<label for="email_or_name">Username or email</label>
|
||||
<input name="email_or_name">
|
||||
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password">
|
||||
|
||||
<input type="submit" value="Login"/>
|
||||
</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>
|
||||
{{ user.summary | safe }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{% extends "base" %}
|
||||
|
||||
{% block title %}
|
||||
{{ user.display_name }}
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ user.display_name }}</h1>
|
||||
<div>
|
||||
{{ user.summary | safe }}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
|
|
@ -1,25 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>New account</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Create an account</h1>
|
||||
<form method="post">
|
||||
<label for="username">Username</label>
|
||||
<input name="username">
|
||||
{% extends "base" %}
|
||||
|
||||
<label for="email">Email</label>
|
||||
<input name="email">
|
||||
{% block title %}
|
||||
New Account
|
||||
{% endblock title %}
|
||||
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password">
|
||||
{% block content %}
|
||||
<h1>Create an account</h1>
|
||||
<form method="post">
|
||||
<label for="username">Username</label>
|
||||
<input name="username">
|
||||
|
||||
<label for="password_confirmation">Password confirmation</label>
|
||||
<input type="password" name="password_confirmation">
|
||||
<label for="email">Email</label>
|
||||
<input name="email">
|
||||
|
||||
<input type="submit" value="Create account"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password">
|
||||
|
||||
<label for="password_confirmation">Password confirmation</label>
|
||||
<input type="password" name="password_confirmation">
|
||||
|
||||
<input type="submit" value="Create account"/>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
|
Loading…
Reference in a new issue