From e7eaacc10700e7769591f373c175acd7d95b8f06 Mon Sep 17 00:00:00 2001 From: rebecca Date: Mon, 2 Nov 2026 22:50:43 +0000 Subject: split into src and history actionbuttons --- apioforum/templates/common.html | 11 ++++------- apioforum/templates/view_post.html | 6 ++++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/apioforum/templates/common.html b/apioforum/templates/common.html index b64630b..6ef34f2 100644 --- a/apioforum/templates/common.html +++ b/apioforum/templates/common.html @@ -48,13 +48,10 @@ delete {% endif %} - - {%- if post.wiki == 1 or is_admin() or g.user == post.author -%} - src and history and also you can change the colour of the bike shed - {%- else -%} - src - {%- endif -%} + src + {% if post.wiki == 1 or is_admin() or g.user == post.author %} + history + {% endif %} {% endif %} diff --git a/apioforum/templates/view_post.html b/apioforum/templates/view_post.html index 810794e..6c3fe73 100644 --- a/apioforum/templates/view_post.html +++ b/apioforum/templates/view_post.html @@ -21,7 +21,7 @@ {% if history %} -

revision history

+

revision history

{% for rev in history %} @@ -30,7 +30,9 @@ {% if rev.id == revision.id or (loop.index == 1 and not revision) %} {{ts(rev.time)}} ago {% else %} - + {{ts(rev.time)}} ago {% endif %} -- cgit v1.2.3