new: Allow to hide the link to the takedown form from index

pull/923/head
Raphaël Vinot 2024-06-28 14:28:06 +02:00
parent 7324c8b085
commit 6b25788b52
3 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@
"enable_context_by_users": false,
"enable_categorization": false,
"enable_bookmark": false,
"enable_takedown_form": false,
"auto_trigger_modules": false,
"enable_mail_notification": false,
"remote_lacus": {

View File

@ -1319,6 +1319,7 @@ def index_generic(show_hidden: bool=False, show_error: bool=True, category: str
return render_template('index.html', titles=titles, public_domain=lookyloo.public_domain,
show_hidden=show_hidden,
show_project_page=get_config('generic', 'show_project_page'),
enable_takedown_form=get_config('generic', 'enable_takedown_form'),
version=pkg_version)

View File

@ -83,7 +83,7 @@ $(document).ready(function () {
<a href="{{ url_for('submit_capture') }}">
<button class="new-capture-button btn btn-primary">Submit capture</button>
</a>
{% if current_user.is_authenticated %}
{% if current_user.is_authenticated and enable_takedown_form == true %}
<a href="{{ url_for('simple_capture') }}">
<button class="new-capture-button btn btn-primary">Takedown process</button>
</a>