comparison sat_templates/templates/bulma/components/data_policy_panel.html @ 409:c2ac3dae1084

components: Data Policy panel: This panel shows score and details on data policy. In chat it's displayed when data policy badge is hovered/touched, in should be used in other locations in the future. rel 460
author Goffi <goffi@goffi.org>
date Thu, 26 Jun 2025 17:05:11 +0200
parents
children
comparison
equal deleted inserted replaced
408:44439110247f 409:c2ac3dae1084
1 <div class="container">
2 <div class="panel">
3 <div class="panel-heading">
4 <span class="icon fa fa-file-shield"></span>
5 {% trans %}Data Policy Report{% endtrans %}
6 </div>
7
8 <div class="panel-block">
9 <p class="title has-text-weight-bold is-4">Score: {{ score }}/10</p>
10 </div>
11
12 <div class="panel-block">
13 <strong>{% trans %}Details{% endtrans %}:</strong>
14 </div>
15
16 {% for item in detail %}
17 <div class="panel-block is-flex is-align-items-center">
18 <span class="mr-3
19 {% if item.score > 0 %}has-text-success
20 {% elif item.score < 0 %}has-text-danger
21 {% else %}has-text-black
22 {% endif %}
23 has-text-weight-bold">
24 {{ item.score }}
25 </span>
26 <p>{{ item.description }}</p>
27 </div>
28 {% endfor %}
29 </div>
30 </div>