Files
openvk4webtv/templates/feed_global.html
2025-07-26 15:23:11 +03:00

85 lines
2.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>