aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--apioforum/templates/common.html11
-rw-r--r--apioforum/templates/view_post.html6
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 @@
<a class="actionbutton"
href="{{url_for('thread.delete_post',post_id=post.id)}}">delete</a>
{% endif %}
- <a class="actionbutton"
- href="{{url_for('thread.view_post',post_id=post.id)}}">
- {%- 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 -%}
+ <a class="actionbutton" href="{{url_for('thread.view_post',post_id=post.id)}}">src</a>
+ {% if post.wiki == 1 or is_admin() or g.user == post.author %}
+ <a class="actionbutton" href="{{url_for('thread.view_post',post_id=post.id,_anchor='history')}}">history</a>
+ {% endif %}
</a>
{% 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 @@
</details>
{% if history %}
-<h2>revision history</h2>
+<h2 id="history">revision history</h2>
<table class="history">
{% for rev in history %}
<tr>
@@ -30,7 +30,9 @@
{% if rev.id == revision.id or (loop.index == 1 and not revision) %}
<b>{{ts(rev.time)}} ago</b>
{% else %}
- <a href="{{url_for('thread.view_post',post_id=post.id,revision=rev.id if loop.index!=1 else None)}}">
+ <a href="{{url_for('thread.view_post',
+ post_id=post.id,revision=rev.id if loop.index!=1 else None,
+ _anchor='history')}}">
{{ts(rev.time)}} ago
</a>
{% endif %}