Extend from layout.html.tera
This commit is contained in:
parent
2e8016d23c
commit
5d7a9ca782
@ -1,23 +1,4 @@
|
|||||||
<!DOCTYPE html>
|
{% extends "layout.html.tera" %} {% block content %}
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title>Actix Example</title>
|
|
||||||
<meta name="description" content="Actix - SeaOrm integration example" />
|
|
||||||
<meta name="author" content="Sam Samai" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
||||||
|
|
||||||
<link
|
|
||||||
href="//fonts.googleapis.com/css?family=Raleway:400,300,600"
|
|
||||||
rel="stylesheet"
|
|
||||||
type="text/css"
|
|
||||||
/>
|
|
||||||
<link rel="stylesheet" href="/static/css/normalize.css" />
|
|
||||||
<link rel="stylesheet" href="/static/css/skeleton.css" />
|
|
||||||
<link rel="stylesheet" href="/static/css/style.css" />
|
|
||||||
<link rel="icon" type="image/png" href="/static/images/favicon.png" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<p><!--Nothing to see here --></p>
|
<p><!--Nothing to see here --></p>
|
||||||
<h1>Posts</h1>
|
<h1>Posts</h1>
|
||||||
@ -48,13 +29,11 @@
|
|||||||
<td></td>
|
<td></td>
|
||||||
<td>
|
<td>
|
||||||
{% if page == 0 %} Previous {% else %}
|
{% if page == 0 %} Previous {% else %}
|
||||||
<a
|
<a href="/?page={{ page - 1 }}&posts_per_page={{ posts_per_page }}"
|
||||||
href="/?page={{ page - 1 }}&posts_per_page={{ posts_per_page }}"
|
|
||||||
>Previous</a
|
>Previous</a
|
||||||
>
|
>
|
||||||
{% endif %} | {% if page == num_pages - 1 %} Next {% else %}
|
{% endif %} | {% if page == num_pages - 1 %} Next {% else %}
|
||||||
<a
|
<a href="/?page={{ page + 1 }}&posts_per_page={{ posts_per_page }}"
|
||||||
href="/?page={{ page + 1 }}&posts_per_page={{ posts_per_page }}"
|
|
||||||
>Next</a
|
>Next</a
|
||||||
>
|
>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -70,5 +49,4 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
{% endblock content %}
|
||||||
</html>
|
|
||||||
|
26
examples/actix_example/templates/layout.html.tera
Normal file
26
examples/actix_example/templates/layout.html.tera
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>Actix Example</title>
|
||||||
|
<meta name="description" content="Actix - SeaOrm integration example" />
|
||||||
|
<meta name="author" content="Sam Samai" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
||||||
|
<link
|
||||||
|
href="//fonts.googleapis.com/css?family=Raleway:400,300,600"
|
||||||
|
rel="stylesheet"
|
||||||
|
type="text/css"
|
||||||
|
/>
|
||||||
|
<link rel="stylesheet" href="/static/css/normalize.css" />
|
||||||
|
<link rel="stylesheet" href="/static/css/skeleton.css" />
|
||||||
|
<link rel="stylesheet" href="/static/css/style.css" />
|
||||||
|
<link rel="icon" type="image/png" href="/static/images/favicon.png" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<p><!--Nothing to see here --></p>
|
||||||
|
{% block content %}{% endblock content %}
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user