Add API
This commit is contained in:
10
app/web/templates/pages/add-news.html
Normal file
10
app/web/templates/pages/add-news.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
12
app/web/templates/pages/list.html
Normal file
12
app/web/templates/pages/list.html
Normal file
@ -0,0 +1,12 @@
|
||||
{% extends 'layouts/base.html' %}
|
||||
{% block title %}Welcome{% endblock %}
|
||||
{% block main %}
|
||||
{% for item in news %}
|
||||
<article>
|
||||
<h2>{{ item.title }}</h2>
|
||||
<p>
|
||||
<a href="{{ item.url }}">Ver completo</a>
|
||||
</p>
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user