Skip to content

Commit

Permalink
Add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 2, 2022
1 parent 7a11396 commit c93facf
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tilecloud_chain/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,8 @@ def main(global_config: Any, **settings: Any) -> Router:
config.add_route("tiles", "/*path", request_method="GET")
config.add_view(PyramidView, route_name="tiles")

config.add_static_view(name="static", path="/app/tilecloud_chain/static")

config.scan("tilecloud_chain.views")

return config.make_wsgi_app()
Binary file added tilecloud_chain/static/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tilecloud_chain/static/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions tilecloud_chain/templates/admin_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
<html lang="en">
<head>
<title>The tile generation admin interface</title>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="${request.static_url('/app/tilecloud_chain/static/favicon-32x32.png')}"
referrerpolicy="no-referrer"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="${request.static_url('/app/tilecloud_chain/static/favicon-16x16.png')}"
referrerpolicy="no-referrer"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.2/css/bootstrap.min.css"
Expand Down
14 changes: 14 additions & 0 deletions tilecloud_chain/templates/openlayers.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>TileCloud-chain test page</title>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="${request.static_url('/app/tilecloud_chain/static/favicon-32x32.png')}"
referrerpolicy="no-referrer"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="${request.static_url('/app/tilecloud_chain/static/favicon-16x16.png')}"
referrerpolicy="no-referrer"
/>

<link
rel="stylesheet"
Expand Down

0 comments on commit c93facf

Please sign in to comment.