mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-21 23:42:24 +02:00
Solved features bug
This commit is contained in:
parent
b0dd574c26
commit
3eb9163412
2
filter_plugins/TODO.md
Normal file
2
filter_plugins/TODO.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Todos
|
||||||
|
- Refactor all 4 functions to one
|
@ -14,7 +14,7 @@ def get_oidc_enabled(applications, application_id):
|
|||||||
|
|
||||||
def get_features_iframe(applications, application_id):
|
def get_features_iframe(applications, application_id):
|
||||||
app = applications.get(application_id)
|
app = applications.get(application_id)
|
||||||
enabled = app.features.iframe
|
enabled = app.get('features', {}).get('iframe', False)
|
||||||
return bool(enabled)
|
return bool(enabled)
|
||||||
|
|
||||||
def get_database_central_storage(applications, application_id):
|
def get_database_central_storage(applications, application_id):
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
configuration_destination: "{{nginx.directories.http.servers}}{{domain}}.conf"
|
configuration_destination: "{{nginx.directories.http.servers}}{{domain}}.conf"
|
||||||
final_oauth2_enabled: "{{applications[application_id].get('features', {}).get('oauth2', False)}}"
|
final_oauth2_enabled: "{{applications[application_id].get('features', {}).get('oauth2', False)}}"
|
@ -2,8 +2,8 @@
|
|||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
sub_filter_types text/html;
|
sub_filter_types text/html;
|
||||||
|
|
||||||
{% set features_css_final = applications.get(application_id).get('features').get('css') | bool %}
|
{% set features_css_final = applications.get(application_id).get('features').get('css') | bool %}
|
||||||
{% set features_matomo_final = applications.get(application_id).get('features').get('matomo') | bool %}
|
{% set features_matomo_final = applications.get(application_id).get('features').get('matomo') | bool %}
|
||||||
|
|
||||||
|
|
||||||
{% if features_matomo_final | bool %}
|
{% if features_matomo_final | bool %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user