mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Fix the display sensitive button
This commit is contained in:
parent
be0f5c04b2
commit
3048de04e8
1 changed files with 7 additions and 5 deletions
|
@ -222,9 +222,9 @@
|
||||||
<div style="clear:both">
|
<div style="clear:both">
|
||||||
<form action="{{redir}}" class="action-form" method="GET" style="display:inline-block">
|
<form action="{{redir}}" class="action-form" method="GET" style="display:inline-block">
|
||||||
<input type="hidden" name="show_sensitive" value="{{perma_id}}">
|
<input type="hidden" name="show_sensitive" value="{{perma_id}}">
|
||||||
{% if request.path == url_for("admin.admin_lookup") %}
|
{% for k, v in request.args.items() %}
|
||||||
<input type="hidden" name="url" value="{{obj.id}}">
|
<input type="hidden" name="{{k}}" value="{{v}}">
|
||||||
{% endif %}
|
{% endfor %}
|
||||||
<button type="submit" class="bar-item-reverse">display sensitive content</button>
|
<button type="submit" class="bar-item-reverse">display sensitive content</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -233,9 +233,11 @@
|
||||||
{% if obj.sensitive %}
|
{% if obj.sensitive %}
|
||||||
<div style="clear:both;margin-bottom: 20px;">
|
<div style="clear:both;margin-bottom: 20px;">
|
||||||
<form action="{{redir}}" class="action-form" method="GET" style="display:inline-block">
|
<form action="{{redir}}" class="action-form" method="GET" style="display:inline-block">
|
||||||
{% if request.path == url_for("admin.admin_lookup") %}
|
{% for k, v in request.args.items() %}
|
||||||
<input type="hidden" name="url" value="{{obj.id}}">
|
{% if k != "show_sensitive" %}
|
||||||
|
<input type="hidden" name="{{k}}" value="{{v}}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
<button type="submit" class="bar-item">hide sensitive content</button>
|
<button type="submit" class="bar-item">hide sensitive content</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue