2019-12-10 18:19:01 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>Voyage</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/static/voyage.css">
|
2019-12-11 19:47:19 -05:00
|
|
|
<script>const url_prefix = "{{ url_prefix }}";</script>
|
2019-12-10 18:19:01 -05:00
|
|
|
<script type="text/javascript" src="/static/voyage.js"></script>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=0.8">
|
|
|
|
<meta name="description" content="A quest archive viewer.">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<h1>Voyage</h1>
|
|
|
|
</header>
|
|
|
|
<main>
|
2019-12-11 19:47:19 -05:00
|
|
|
{% for post in posts %}
|
|
|
|
<div id="{{ post.id }}" class="post_container{% if tags[post.id] %} {{ ' '.join(tags[post.id]) }}{% endif %}{% if 'story_post' not in tags[post.id] %} faded{% endif %}">
|
|
|
|
<div class="tags">
|
|
|
|
{% for tag in tags.get(post.id, []) %}
|
|
|
|
<span class="tag">{{ tag }} <a href="javascript:void(0)" onclick="remove_tag(this.closest('.tag'))">-</a></span>
|
|
|
|
{% endfor %}
|
|
|
|
<span class="tag"><input type="text"><a href="javascript:void(0)" onclick="add_tag(this.closest('.tag'))">+</a></span>
|
|
|
|
</div>
|
2019-12-10 18:19:01 -05:00
|
|
|
<div class="header">
|
|
|
|
{% if post.subject %}
|
|
|
|
<span class="subject">{{ post.subject }}</span>
|
|
|
|
{% endif %}
|
|
|
|
<span class="name">{{ post.name }}</span>
|
2019-12-11 19:47:19 -05:00
|
|
|
{% if post.tripcode %}
|
|
|
|
<span class="tripcode">{{ post.tripcode }}</span>
|
2019-12-10 18:19:01 -05:00
|
|
|
{% endif %}
|
|
|
|
<span class="time">{{ post.time.strftime('%Y-%m-%d %H:%M') }}</span>
|
|
|
|
<span class="id">No.{{ post.id }}</span>
|
|
|
|
{% if backlinks.get(post.id) %}
|
|
|
|
<span class="backlinks">
|
|
|
|
{% for link in backlinks[post.id] %}
|
|
|
|
<a class="backlink" href="#{{ link }}">>>{{ link }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="body">
|
|
|
|
{% for line in post.body.splitlines() %}
|
|
|
|
{% if line.startswith('>') %}
|
2019-12-11 19:47:19 -05:00
|
|
|
<span class="quote">{{ line|quotelink(links[post.id]) }}</span><br>
|
2019-12-10 18:19:01 -05:00
|
|
|
{% else %}
|
2019-12-11 19:47:19 -05:00
|
|
|
{{ line|quotelink(links[post.id]) }}<br>
|
2019-12-10 18:19:01 -05:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|