dfdsfsafdsfsdfasdsf

This commit is contained in:
drel
2025-07-26 15:23:11 +03:00
parent 2b41b6eba8
commit c55a0a5b18
14 changed files with 846 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Global News Feed - OpenVK4WebTV</TITLE>
<STYLE>
Body {
font-family: Arial;
background: #EEE;
margin: 0;
padding: 10px;
}
.container {
background: white;
padding: 15px;
max-width: 500px;
margin: 0 auto;
}
.post {
margin-bottom: 15px;
}
.post IMG {
display: block;
border: 1px solid #DDD;
}
.separator {
height: 2px;
background: #DDD;
margin: 10px 0;
}
.pagination {
text-align: center;
margin: 15px 0;
}
.pagination A {
margin: 0 5px;
color: #00F;
text-decoration: none;
}
.likes {
margin-top: 5px;
color: #666;
}
</STYLE>
</HEAD>
<BODY>
<DIV CLASS="container">
<H3>{% if global_feed %}Global {% endif %}News Feed</H3>
{% for post in posts %}
<DIV CLASS="post">
<IMG SRC="{{ post.author }}" ALT="Author"><BR>
<IMG SRC="{{ post.text }}" ALT="Post text">
{% if post.has_attachments %}
<DIV CLASS="attachments">
[Attachments not supported]
</DIV>
{% endif %}
<!-- Блок с лайками -->
{% if post.likes > 0 %}
<DIV CLASS="likes">
<IMG SRC="{{ render_text('Likes: ' + post.likes|string) }}" ALT="Likes">
</DIV>
{% endif %}
{% if post.separator %}
<BR>
<IMG SRC="{{ post.separator }}" ALT="Separator">
{% endif %}
</DIV>
{% endfor %}
<DIV CLASS="pagination">
{% if current_page > 0 %}
<A HREF="/feed?page={{ current_page - 1 }}">Previous</A>
{% endif %}
{% if has_next %}
<A HREF="/feed?page={{ current_page + 1 }}">Next</A>
{% endif %}
</DIV>
<P><A HREF="/profile">Profile</A> | <A HREF="/feed">Personal Feed</A> | <A HREF="/post">New Post</A></P>
</BODY>
</HTML>