mirror of https://github.com/CIRCL/lookyloo
new: Allow to hide the link to the takedown form from index
parent
7324c8b085
commit
6b25788b52
|
@ -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": {
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue