forked from evmos/safe-config-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add configuration for templates and static files - Add collect static to Dockerfile - Don't rebuild docker image unless dependencies change
- Loading branch information
Showing
6 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends "drf-yasg/swagger-ui.html" %} | ||
{% load static %} | ||
|
||
{% block favicon %} | ||
<link rel="icon" type="image/png" href="{% static 'safe/favicon.png' %}"/> | ||
{% endblock %} | ||
|
||
{% block main_styles %} | ||
<link rel="stylesheet" type="text/css" href="{% static 'drf-yasg/style.css' %}"/> | ||
<link rel="stylesheet" type="text/css" href="{% static 'drf-yasg/swagger-ui-dist/swagger-ui.css' %}"> | ||
<style> | ||
.swagger-ui .topbar {background-color: black;} | ||
.swagger-ui .topbar .download-url-wrapper .download-url-button {background-color: #008c73;} | ||
.swagger-ui .topbar .download-url-wrapper input[type=text] {border: 2px solid #008c73;} | ||
|
||
.topbar-wrapper img[alt="Swagger UI"], .topbar-wrapper span { | ||
visibility: collapse; | ||
} | ||
|
||
.topbar-wrapper .link:before { | ||
content: url("{% static 'safe/logo.png' %}"); | ||
} | ||
|
||
</style> | ||
{% endblock %} |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.