init
This commit is contained in:
22
app/templates/pages/index.html
Normal file
22
app/templates/pages/index.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "layouts/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% for site in data["sites"] %}
|
||||
<details>
|
||||
<summary>
|
||||
{{site.name}}
|
||||
</summary>
|
||||
<ul>
|
||||
|
||||
{% for article in site.articles %}
|
||||
<li>
|
||||
<details>
|
||||
<summary><b>{{article.title}}</b></summary>
|
||||
<p>{{article.summarized_content}}</p>
|
||||
</details>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</details>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
15
app/templates/pages/submit_site.html
Normal file
15
app/templates/pages/submit_site.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% from "macros/render_field.html" import render_text_field %}
|
||||
{% block content %}
|
||||
|
||||
<form method="POST">
|
||||
{{ data["form"].hidden_tag() }}
|
||||
{{render_text_field(data["form"].name)}}
|
||||
{{render_text_field(data["form"].base_url)}}
|
||||
{{render_text_field(data["form"].feed_url)}}
|
||||
|
||||
<div>
|
||||
{{data["form"].submit_url}}
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user