mirror of https://github.com/CIRCL/lookyloo
new: config key to display a link to the github page
parent
92d8b9e36c
commit
81f10c7cb8
|
@ -16,6 +16,7 @@
|
|||
"async_capture_processes": 1,
|
||||
"use_user_agents_users": false,
|
||||
"enable_default_blur_screenshot": false,
|
||||
"show_project_page": true,
|
||||
"enable_context_by_users": false,
|
||||
"enable_categorization": false,
|
||||
"enable_bookmark": false,
|
||||
|
@ -59,6 +60,7 @@
|
|||
"async_capture_processes": "Number of async_capture processes to start. This should not be higher than the number of splash instances you have running. A very high number will use *a lot* of ram.",
|
||||
"use_user_agents_users": "Only usable for medium/high use instances: use the user agents of the users of the platform",
|
||||
"enable_default_blur_screenshot": "If true, blur the screenshot by default (useful on public instances)",
|
||||
"show_project_page": "If true, display a ribbon with a link to the githug projects page at the top right side of the screen",
|
||||
"enable_context_by_users": "Allow the users to add context to a response body",
|
||||
"enable_categorization": "Allow the users to add contextualization to a capture",
|
||||
"enable_bookmark": "Allow to bookmark nodes on tree",
|
||||
|
|
|
@ -705,7 +705,9 @@ def index_generic(show_hidden: bool=False, show_error: bool=True, category: Opti
|
|||
titles.append((cached.uuid, cached.title, cached.timestamp.isoformat(), cached.url,
|
||||
cached.redirects, cached.incomplete_redirects))
|
||||
titles = sorted(titles, key=lambda x: (x[2], x[3]), reverse=True)
|
||||
return render_template('index.html', titles=titles, public_domain=lookyloo.public_domain, version=version)
|
||||
return render_template('index.html', titles=titles, public_domain=lookyloo.public_domain,
|
||||
show_project_page=get_config('generic', 'show_project_page'),
|
||||
version=version)
|
||||
|
||||
|
||||
def get_index_params(request):
|
||||
|
|
|
@ -63,9 +63,11 @@ $(document).ready(function () {
|
|||
<div class="corner-ribbon bottom-left sticky white shadow">
|
||||
<a href="https://github.com/Lookyloo/lookyloo/releases/tag/v{{version}}">Changelog</br>(v{{version}})</a>
|
||||
</div>
|
||||
{% if show_project_page %}
|
||||
<div class="corner-ribbon top-right sticky white shadow">
|
||||
<a href="https://github.com/Lookyloo">Project page</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<center>
|
||||
<a href="{{ url_for('capture_web') }}">
|
||||
<img src="{{ url_for('static', filename='lookyloo.jpeg') }}"
|
||||
|
|
Loading…
Reference in New Issue