[Flask] Aggregate your news and vote for the content you care about.
1
<linkrel="stylesheet"type="text/css"href="{{ url_for('static',filename='styles/default.css') }}">
2
<linkrel="stylesheet"type="text/css"href="{{ url_for('static',filename='styles/yes.css') }}">
3
4
{% extends "base.html" %}
5
{% block content %}
6
7
<ahref="{{ url_for('no') }}"class="tab-no"></a>
8
<ahref="{{ url_for('home') }}"class="tab-home"></a>
9
10
<divclass="feeds">
11
<divclass="feed-conversations">
12
{% for conversation in conversations %}
13
<divclass="conversation-wrapper">
14
<ahref="{{ url_for('yes') }}"class="btn-reply">reply</a>
15
<ahref="{{ url_for('yes') }}"class="btn-finish">finish conversation</a>
16
<divclass="conversation">
17
{% if 'title' in conversation %}
18
<h1>{{conversation.title}}</h1>
19
{% endif %}
20
<!-- {% for message in conversation.messages %} -->
21
<!-- <h2>{{ message }}</h2> -->
22
<!-- {% endfor %} -->
23
<divclass="message-received">
24
<h2>author 1</h2>
25
<p> message received </p>
26
</div>
27
<divclass="message-sent">
28
<h2>me</h2>
29
<p> message received </p>
30
</div>
31
<divclass="message-received">
32
<h2>author 1</h2>
33
<p> message received </p>
34
</div>
35
<divclass="message-sent">
36
<h2>me</h2>
37
<p> message received </p>
38
</div>
39
<divclass="message-received">
40
<h2>author 1</h2>
41
<p> message received </p>
42
</div>
43
<divclass="message-sent">
44
<h2>me</h2>
45
<p> last message received </p>
46
</div>
47
48
</div>
49
<inputclass="message-reply"name="Reply"type="text"value="reply"/>
50
</div>
51
{% endfor %}
52
<!-- <a href="{{ url_for('yes') }}" class="input">reply</a> -->
53
</div>
54
55
<divclass="feed-news">
56
{% for news in news %}
57
<divclass="news-wrapper">
58
<ahref="{{ url_for('yes') }}"class="btn-comment">comment</a>
59
<ahref="{{ url_for('yes') }}"class="btn-archive">archive</a>
60
<divclass="news">
61
<h1>{{news.author}}</h1>
62
<h2>{{news.date}}</h2>
63
<p>{{news.content}}</p>
64
</div>
65
</div>
66
{% endfor %}
67
</div>
68
69
<divclass="feed-ads">
70
<divclass="ad"> Buy my sourdough, ah </div>
71
<divclass="ad"> Check out this sponsored link, ere. </div>
72
<divclass="ad"> Another random ad (from a high-paying sponsor hopefully) </div>
73
<divclass="ad"> Ah I literally don't have any other placeholder ideas for ads. </div>
74
<divclass="ad"> Buy my sourdough, ah </div>
75
<divclass="ad"> Check out this sponsored link, ere. </div>
76
<divclass="ad"> Another random ad (from a high-paying sponsor hopefully) </div>
77
<divclass="ad"> Ah I literally don't have any other placeholder ideas for ads. </div>
78
</div>
79
</div>
80
81
{% endblock content %}
82