-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix import and add api version to info screen
- Loading branch information
1 parent
260a422
commit eb5dc87
Showing
3 changed files
with
68 additions
and
66 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 |
---|---|---|
@@ -1,98 +1,102 @@ | ||
<html> | ||
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'> | ||
<style> | ||
<link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet" /> | ||
<style> | ||
body { | ||
text-align: center; | ||
font-family: 'Poppins'; | ||
text-align: center; | ||
font-family: "Poppins"; | ||
} | ||
|
||
.header { | ||
background-color: black | ||
background-color: black; | ||
} | ||
|
||
.header h1 { | ||
color: white | ||
color: white; | ||
} | ||
|
||
.header h2 { | ||
color: teal | ||
color: teal; | ||
} | ||
|
||
.header a { | ||
color: white | ||
color: white; | ||
} | ||
|
||
table { | ||
text-align: left; | ||
margin-left: auto; | ||
margin-right: auto; | ||
text-align: left; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
.good { | ||
color: darkgreen | ||
color: darkgreen; | ||
} | ||
|
||
.bad { | ||
color: darkred | ||
color: darkred; | ||
} | ||
|
||
a { | ||
color: teal | ||
color: teal; | ||
} | ||
|
||
b { | ||
color: teal | ||
color: teal; | ||
} | ||
</style> | ||
<body> | ||
<div class="header"> | ||
<h1>AmCAT4 API</h1> | ||
<h2>API Documentation: <a href="redoc">[redoc]</a> | <a href="docs">[docs]</a></h2> | ||
</div> | ||
</style> | ||
<body> | ||
<div class="header"> | ||
<h1>AmCAT4 API <small style="color: grey"> {{ api_version }}</small></h1> | ||
<h2>API Documentation: <a href="redoc">[redoc]</a> | <a href="docs">[docs]</a></h2> | ||
</div> | ||
|
||
<h1>Settings</h1> | ||
Note: To change settings, add environment variables to the API worker process and/or in a .env file in the working | ||
directory. <br/> | ||
<a href="https://github.com/ccs-amsterdam/amcat4/tree/main/.env.example">Example .env file</a> | ||
<p> | ||
<b>Settings summary:</b> | ||
<table class="center"> | ||
<h1>Settings</h1> | ||
Note: To change settings, add environment variables to the API worker process and/or in a .env file in the working | ||
directory. <br /> | ||
<a href="https://github.com/ccs-amsterdam/amcat4/tree/main/.env.example">Example .env file</a> | ||
<p> | ||
<b>Settings summary:</b> | ||
</p> | ||
|
||
<tr> | ||
<table class="center"> | ||
<tr> | ||
<th>Host:</th> | ||
<td>{{ host }}</td> | ||
</tr> | ||
<tr> | ||
</tr> | ||
<tr> | ||
<th>Elasticsearch:</th> | ||
<td>{% if es_alive %}<span class="good">Connected</span>{% else %}<span class="bad">Not Connected</span>{%endif%} | ||
<td> | ||
{% if es_alive %}<span class="good">Connected</span>{% else %}<span class="bad">Not Connected</span>{%endif%} | ||
</td> | ||
</tr> | ||
<tr> | ||
</tr> | ||
<tr> | ||
<th>Authorization mode:</th> | ||
<td> | ||
<span class="{% if auth == 'no_auth'%}bad{%else%}good{%endif%}"> | ||
{{auth.name}}: {{ auth.__doc__ }} | ||
</span> | ||
<span class="{% if auth == 'no_auth'%}bad{%else%}good{%endif%}"> {{auth.name}}: {{ auth.__doc__ }} </span> | ||
</td> | ||
</tr> | ||
<tr> | ||
</tr> | ||
<tr> | ||
<th>Middlecat:</th> | ||
<td>{% if middlecat_alive %}<span class="good">Connected</span>{% else %}<span class="bad">Not Connected</span>{%endif%} | ||
<td> | ||
{% if middlecat_alive %}<span class="good">Connected</span>{% else %}<span class="bad">Not Connected</span | ||
>{%endif%} | ||
</td> | ||
</tr> | ||
<tr> | ||
</tr> | ||
<tr> | ||
<th>Middlecat url:</th> | ||
<td> | ||
{% if middlecat_url %}<a href="{{middlecat_url}}">{{middlecat_url}}</a> | ||
{% else %}<span class="bad">Not set up</span> | ||
{% endif %} | ||
{% if middlecat_url %}<a href="{{middlecat_url}}">{{middlecat_url}}</a> {% else %}<span class="bad" | ||
>Not set up</span | ||
> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
<tr> | ||
</tr> | ||
<tr> | ||
<th>Admin email:<span title="Note: Email needs to be authenticated using middlecat">[i]</span></th> | ||
<td>{% if has_admin_email %}<span class="good">Setup</span>{% else %}<span class="bad">Not set up</span>{%endif%} | ||
<td> | ||
{% if has_admin_email %}<span class="good">Setup</span>{% else %}<span class="bad">Not set up</span>{%endif%} | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |