mirror of https://github.com/CIRCL/lookyloo
new: Link to changelog on index
parent
cc8ae07434
commit
f8ed5567fa
|
@ -44,6 +44,8 @@ app.config['SESSION_COOKIE_NAME'] = 'lookyloo'
|
||||||
app.config['SESSION_COOKIE_SAMESITE'] = 'Strict'
|
app.config['SESSION_COOKIE_SAMESITE'] = 'Strict'
|
||||||
app.debug = False
|
app.debug = False
|
||||||
|
|
||||||
|
version = pkg_resources.get_distribution('lookyloo').version
|
||||||
|
|
||||||
# Auth stuff
|
# Auth stuff
|
||||||
login_manager = flask_login.LoginManager()
|
login_manager = flask_login.LoginManager()
|
||||||
login_manager.init_app(app)
|
login_manager.init_app(app)
|
||||||
|
@ -706,7 +708,7 @@ 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)
|
return render_template('index.html', titles=titles, public_domain=lookyloo.public_domain, version=version)
|
||||||
|
|
||||||
|
|
||||||
def get_index_params(request):
|
def get_index_params(request):
|
||||||
|
@ -1090,6 +1092,6 @@ api = Api(app, title='Lookyloo API',
|
||||||
description='API to submit captures and query a lookyloo instance.',
|
description='API to submit captures and query a lookyloo instance.',
|
||||||
doc='/doc/',
|
doc='/doc/',
|
||||||
authorizations=authorizations,
|
authorizations=authorizations,
|
||||||
version=pkg_resources.get_distribution('lookyloo').version)
|
version=version)
|
||||||
|
|
||||||
api.add_namespace(generic_api)
|
api.add_namespace(generic_api)
|
||||||
|
|
|
@ -60,6 +60,9 @@ $(document).ready(function () {
|
||||||
<div class="corner-ribbon top-left sticky white shadow">
|
<div class="corner-ribbon top-left sticky white shadow">
|
||||||
<a href="https://www.lookyloo.eu/docs/main/index.html">Documentation</a>
|
<a href="https://www.lookyloo.eu/docs/main/index.html">Documentation</a>
|
||||||
</div>
|
</div>
|
||||||
|
<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>
|
||||||
<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>
|
||||||
|
|
Loading…
Reference in New Issue