2018-06-28 13:48:12 -04:00
|
|
|
{% extends base_template %}
|
|
|
|
{% load helpers %}
|
2020-01-25 15:56:24 +00:00
|
|
|
{% load static %}
|
2023-07-29 03:30:25 +07:00
|
|
|
{% load i18n %}
|
2018-06-28 13:48:12 -04:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6">
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
2024-01-17 16:25:42 -05:00
|
|
|
<h5 class="card-header d-flex justify-content-between">
|
2023-07-29 03:30:25 +07:00
|
|
|
{% trans "Rendered Context" %}
|
2020-01-25 15:56:24 +00:00
|
|
|
{% include 'extras/inc/configcontext_format.html' %}
|
2021-03-13 02:19:42 -07:00
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
2020-04-24 12:01:41 -04:00
|
|
|
{% include 'extras/inc/configcontext_data.html' with data=rendered_context format=format %}
|
2018-06-28 13:48:12 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6">
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
2023-07-29 03:30:25 +07:00
|
|
|
{% trans "Local Context" %}
|
2021-03-13 02:19:42 -07:00
|
|
|
</h5>
|
|
|
|
<div class="card-body">
|
2020-11-19 11:29:18 -05:00
|
|
|
{% if object.local_context_data %}
|
|
|
|
{% include 'extras/inc/configcontext_data.html' with data=object.local_context_data format=format %}
|
2018-09-16 00:25:20 -04:00
|
|
|
{% else %}
|
2023-07-29 03:30:25 +07:00
|
|
|
<span class="text-muted">{% trans "None" %}</span>
|
2018-09-16 00:25:20 -04:00
|
|
|
{% endif %}
|
2018-09-18 11:52:12 -04:00
|
|
|
</div>
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card-footer">
|
2018-09-16 00:25:20 -04:00
|
|
|
<span class="help-block">
|
2021-04-21 11:31:28 -07:00
|
|
|
<i class="mdi mdi-information-outline"></i>
|
2023-07-29 03:30:25 +07:00
|
|
|
{% trans "The local config context overwrites all source contexts" %}.
|
2018-09-16 00:25:20 -04:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
2023-07-29 03:30:25 +07:00
|
|
|
{% trans "Source Contexts" %}
|
2021-03-13 02:19:42 -07:00
|
|
|
</h5>
|
2018-06-28 13:48:12 -04:00
|
|
|
{% for context in source_contexts %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card-body">
|
2021-04-18 16:42:28 -07:00
|
|
|
<div class="float-end">
|
2018-06-28 13:48:12 -04:00
|
|
|
<span class="text-muted">{{ context.weight }}</span>
|
|
|
|
</div>
|
2022-05-06 08:01:15 +02:00
|
|
|
<strong>{{ context|linkify:"name" }}</strong>
|
2018-06-29 09:44:32 -04:00
|
|
|
{% if context.description %}
|
|
|
|
<br /><small>{{ context.description }}</small>
|
|
|
|
{% endif %}
|
2020-04-24 12:01:41 -04:00
|
|
|
{% include 'extras/inc/configcontext_data.html' with data=context.data format=format %}
|
2018-06-28 13:48:12 -04:00
|
|
|
</div>
|
2018-07-10 16:16:23 -04:00
|
|
|
{% empty %}
|
2021-03-13 02:19:42 -07:00
|
|
|
<div class="card-body">
|
2023-07-29 03:30:25 +07:00
|
|
|
<span class="text-muted">{% trans "None found" %}</span>
|
2018-07-10 16:16:23 -04:00
|
|
|
</div>
|
2018-06-28 13:48:12 -04:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|