start the new topics route and view

This commit is contained in:
2026-04-12 23:36:50 +03:00
parent 099b5c135e
commit ce9bca0a75
11 changed files with 141 additions and 34 deletions

View File

@@ -0,0 +1,9 @@
<footer class="plank secondary-bg bottom">
<span>Pyrom commit <a href="{{ "https://git.poto.cafe/yagich/pyrom/commit/" + __commit }}">{{ __commit[:8] }}</a></span>
<ul class="horizontal">
{#-
<li><a href="#">Contact</a></li>
<li><a href="#">Guides</a></li>
-#}
</ul>
</footer>

View File

@@ -0,0 +1,3 @@
{% macro timestamp(unix_ts) -%}
<span class="timestamp" data-utc="{{ unix_ts }}">{{ unix_ts | ts_datetime('%Y-%m-%d %H:%M')}} <abbr title="Server Time">ST</abbr></span>
{%- endmacro %}

View File

@@ -0,0 +1,15 @@
<nav id="header" class="plank top">
<a class="site-title" href=#>Porom</a>
<span>anti-social media</span>
{%- if is_logged_in() -%}
no
{%- else -%}
<form class="horizontal wrap">
<input type="hidden" name="return_to" value="{{request.path}}">
<input type="text" placeholder="Username">
<input type="password" placeholder="Password">
<input type="submit" value="Log in">
<a href="#" class="linkbutton">Register</a>
</form>
{%- endif -%}
</nav>