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

40
templates/post.html Normal file
View File

@@ -0,0 +1,40 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>New Post - OpenVK4WebTV</TITLE>
<STYLE>
Body { font-family: Arial; background: #EEE; }
.container { width: 500px; margin: 20px auto; padding: 15px; background: white; }
TEXTAREA { width: 100%; height: 100px; margin: 10px 0; }
</STYLE>
</HEAD>
<BODY>
<DIV CLASS="container">
<H3>Create New Post</H3>
{% if error %}
<DIV STYLE="color: red; margin: 10px 0;">
{% if error == 'empty' %}Post text is required!
{% elif error == 'api' %}Posting failed!
{% endif %}
</DIV>
{% endif %}
{% if success %}
<DIV STYLE="color: green; margin: 10px 0;">
Post published successfully!
</DIV>
{% endif %}
<FORM METHOD="POST" ACTION="/post">
<TEXTAREA NAME="text" WRAP="physical"></TEXTAREA><BR>
<INPUT TYPE="submit" VALUE="Publish">
</FORM>
<P STYLE="margin-top: 15px;">
<A HREF="/profile">Profile</A> |
<A HREF="/feed">News Feed</A>
</P>
</DIV>
</BODY>
</HTML>