Skip to content

Commit bf81a9f

Browse files
authored
Merge pull request #81 from stackhpc/upstream/master-2025-12-01
Synchronise master with upstream
2 parents 24a05f9 + afe788d commit bf81a9f

16 files changed

Lines changed: 75 additions & 160 deletions

File tree

cloudkittydashboard/dashboards/admin/hashmap/templates/hashmap/_field_create.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
{% block modal-body-right %}
55
<h3>{% trans "Description:" %}</h3>
6-
<p>{% trans "A field is referring to a metadata field of a resource. " %}</p>
6+
<p>{% trans "A field is referring to a metadata field of a resource." %}</p>
77
{% endblock %}

cloudkittydashboard/dashboards/admin/hashmap/templates/hashmap/_group_create.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@
33

44
{% block modal-body-right %}
55
<h3>{% trans "Description:" %}</h3>
6-
<p>{% trans "A group is a way to group calculations of mappings." %}</p>
6+
<p>{% blocktrans trimmed %}
7+
A group lets you organize mapping calculations into separate sets.
8+
For example, you might create one group with rules for rating instance uptime
9+
and another for evaluating block storage volumes. Keeping them in separate
10+
groups ensures the calculations remain independent and don’t interfere
11+
with each other.
12+
{% endblocktrans %}</p>
713
{% endblock %}

cloudkittydashboard/dashboards/admin/hashmap/templates/hashmap/_mapping_create.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
{% block modal-body-right %}
55
<h3>{% trans "Description:" %}</h3>
6-
<p>{% trans "A mapping is the final object, it’s what triggers calculation." %}</p>
6+
<p>{% trans "A mapping is the final object that triggers calculation." %}</p>
77
{% endblock %}

cloudkittydashboard/dashboards/admin/hashmap/templates/hashmap/group_details.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="row">
77
<div class="col-sm-12">
88
<div class="detail">
9-
<dl>
9+
<dl class="dl-horizontal">
1010
<dt>{% trans "Id" %}</dt>
1111
<dd>{{ group.group_id }}</dd>
1212
<dt>{% trans "Name" %}</dt>
@@ -18,7 +18,7 @@ <h3>{% trans "Mappings" %}</h3>
1818
{% if mappings.services %}
1919
<h4>{% trans "Services" %}</h4>
2020
{% for service in mappings.services %}
21-
<dl>
21+
<dl class="dl-horizontal">
2222
<dt>{% trans "Mapping ID" %}</dt>
2323
<dd>{{ service.mapping_id }}</dd>
2424
<dt>{% trans "Service ID" %}</dt>
@@ -33,7 +33,7 @@ <h4>{% trans "Services" %}</h4>
3333
{% if mappings.fields %}
3434
<h4>{% trans "Fields" %}</h4>
3535
{% for field in mappings.fields %}
36-
<dl>
36+
<dl class="dl-horizontal">
3737
<dt>{% trans "Mapping ID" %}</dt>
3838
<dd>{{ field.mapping_id }}</dd>
3939
<dt>{% trans "Field ID" %}</dt>
@@ -53,7 +53,7 @@ <h3>{% trans "Thresholds" %}</h3>
5353
{% if thresholds.services %}
5454
<h4>{% trans "Services" %}</h4>
5555
{% for service in thresholds.services %}
56-
<dl>
56+
<dl class="dl-horizontal">
5757
<dt>{% trans "Service ID" %}</dt>
5858
<dd>{{ service.service_id }}</dd>
5959
<dt>{% trans "Level" %}</dt>
@@ -68,7 +68,7 @@ <h4>{% trans "Services" %}</h4>
6868
{% if thresholds.fields %}
6969
<h4>{% trans "Fields" %}</h4>
7070
{% for field in thresholds.fields %}
71-
<dl>
71+
<dl class="dl-horizontal">
7272
<dt>{% trans "Field ID" %}</dt>
7373
<dd>{{ field.field_id }}</dd>
7474
<dt>{% trans "Level" %}</dt>

cloudkittydashboard/dashboards/admin/hashmap/templates/hashmap/service_details.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
<div class="span12">
88

99
{% if service_period %}
10-
{% blocktrans with service_period as period %}
11-
<p>Usage data are collected every {{ period }} seconds.</p>
12-
{% endblocktrans %}
10+
<p>
11+
{% blocktrans trimmed with service_period as period %}
12+
Usage data is collected every {{ period }} seconds.
13+
{% endblocktrans %}
14+
</p>
1315
{% endif %}
1416

1517
{{ tab_group.render }}

cloudkittydashboard/dashboards/admin/hashmap/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ def get_success_url(self, **kwargs):
189189
class FieldMappingCreateView(forms.ModalFormView):
190190
form_class = hashmap_forms.CreateFieldMappingForm
191191
form_id = "create_field_mapping"
192-
modal_header = _("Create Field Mapping")
193-
page_title = _("Create field Mapping")
192+
modal_header = _("Create field mapping")
193+
page_title = _("Create field mapping")
194194
template_name = 'admin/hashmap/mapping_create.html'
195195
submit_url = 'horizon:admin:hashmap:field_mapping_create'
196196
success_url = 'horizon:admin:hashmap:field_mapping_create'

cloudkittydashboard/dashboards/admin/modules/templates/rating_modules/_priority_edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% block modal-body-right %}
55
<h3>{% trans "Description:" %}</h3>
66
<p>
7-
{% blocktrans with module_id=module_id %}
7+
{% blocktrans trimmed with module_id=module_id %}
88
Edit the priority for the <i>{{ module_id }}</i> module.
99
{% endblocktrans %}
1010
</p>

cloudkittydashboard/dashboards/admin/modules/templates/rating_modules/details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="row">
77
<div class="col-sm-12">
88
<div class="detail">
9-
<dl>
9+
<dl class="dl-horizontal">
1010
<dt>{% trans "Id" %}</dt>
1111
<dd>{{ module.module_id }}</dd>
1212
<dt>{% trans "Description" %}</dt>

cloudkittydashboard/dashboards/admin/pyscripts/templates/pyscripts/details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="row">
77
<div class="col-sm-12">
88
<div class="detail">
9-
<dl>
9+
<dl class="dl-horizontal">
1010
<dt>{{ _("Id") }}</dt>
1111
<dd>{{ script.script_id }}</dd>
1212
<dt>{{ _("Name") }}</dt>

cloudkittydashboard/dashboards/admin/pyscripts/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_success_url(self, **kwargs):
8181

8282
class ScriptDetailsView(views.APIView):
8383
template_name = 'admin/pyscripts/details.html'
84-
page_title = _("Script Details : {{ script.name }}")
84+
page_title = _("Script details: {{ script.name }}")
8585

8686
def get_data(self, request, context, *args, **kwargs):
8787
script_id = kwargs.get("script_id")

0 commit comments

Comments
 (0)