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,
|
"async_capture_processes": 1,
|
||||||
"use_user_agents_users": false,
|
"use_user_agents_users": false,
|
||||||
"enable_default_blur_screenshot": false,
|
"enable_default_blur_screenshot": false,
|
||||||
|
"show_project_page": true,
|
||||||
"enable_context_by_users": false,
|
"enable_context_by_users": false,
|
||||||
"enable_categorization": false,
|
"enable_categorization": false,
|
||||||
"enable_bookmark": 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.",
|
"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",
|
"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)",
|
"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_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_categorization": "Allow the users to add contextualization to a capture",
|
||||||
"enable_bookmark": "Allow to bookmark nodes on tree",
|
"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,
|
titles.append((cached.uuid, cached.title, cached.timestamp.isoformat(), cached.url,
|
||||||
cached.redirects, cached.incomplete_redirects))
|
cached.redirects, cached.incomplete_redirects))
|
||||||
titles = sorted(titles, key=lambda x: (x[2], x[3]), reverse=True)
|
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):
|
def get_index_params(request):
|
||||||
|
|
|
@ -63,9 +63,11 @@ $(document).ready(function () {
|
||||||
<div class="corner-ribbon bottom-left sticky white shadow">
|
<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>
|
<a href="https://github.com/Lookyloo/lookyloo/releases/tag/v{{version}}">Changelog</br>(v{{version}})</a>
|
||||||
</div>
|
</div>
|
||||||
|
{% if show_project_page %}
|
||||||
<div class="corner-ribbon top-right sticky white shadow">
|
<div class="corner-ribbon top-right sticky white shadow">
|
||||||
<a href="https://github.com/Lookyloo">Project page</a>
|
<a href="https://github.com/Lookyloo">Project page</a>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
<center>
|
<center>
|
||||||
<a href="{{ url_for('capture_web') }}">
|
<a href="{{ url_for('capture_web') }}">
|
||||||
<img src="{{ url_for('static', filename='lookyloo.jpeg') }}"
|
<img src="{{ url_for('static', filename='lookyloo.jpeg') }}"
|
||||||
|
|
Loading…
Reference in New Issue