mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
9e9e961390
commit
7e0cedae3d
3 changed files with 13 additions and 0 deletions
|
|
@ -438,7 +438,9 @@ def app_factory(files, num_threads=3):
|
|||
])
|
||||
)
|
||||
app.add_route(IndexView.as_view(files, jinja, executor), '/')
|
||||
# TODO: /favicon.ico and /-/static/ deserve far-future cache expires
|
||||
app.add_route(favicon, '/favicon.ico')
|
||||
app.static('/-/static/', str(app_root / 'immutabase' / 'static'))
|
||||
app.add_route(
|
||||
DatabaseView.as_view(files, jinja, executor),
|
||||
'/<db_name:[^/\.]+?><as_json:(.jsono?)?$>'
|
||||
|
|
|
|||
8
immutabase/static/bootstrap-4.0.0-beta.2.min.css
vendored
Normal file
8
immutabase/static/bootstrap-4.0.0-beta.2.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -2,6 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
<link rel="stylesheet" href="/-/static/bootstrap-4.0.0-beta.2.min.css">
|
||||
<style>
|
||||
th {
|
||||
text-align: left;
|
||||
|
|
@ -10,10 +11,12 @@ th {
|
|||
{% block extra_head %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
{% if error %}
|
||||
<div style="padding: 1em; margin: 1em; border: 3px solid red;">{{ error }}</div>
|
||||
{% endif %}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue