forked from hornet/wirechan
33 lines
No EOL
1.2 KiB
HTML
33 lines
No EOL
1.2 KiB
HTML
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ title }}</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
|
</head>
|
|
<body>
|
|
{% block content %}
|
|
<div class="link-container">
|
|
<h2>{{ header }}</h2>
|
|
<form action="{{ url_for('post') }}" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="board_name" value="{{ title }}">
|
|
<textarea name="content" rows="4" cols="50" placeholder="Write your post here..."></textarea>
|
|
<input type="file" name="image">
|
|
<button type="submit">Post</button>
|
|
</form>
|
|
<div class="posts">
|
|
{% for post in posts %}
|
|
<div class="post">
|
|
{% if post.image %}
|
|
<img src="{{ url_for('image', post_id=post._id) }}" alt="Post Image">
|
|
{% endif %}
|
|
<p>{{ post.content }}</p>
|
|
<small>{{ post.timestamp }}</small>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
</body>
|
|
</html> |