diff --git a/templates/__generic__.html.j2 b/templates/__generic__.html.j2
index 77be0fa..f038fd8 100644
--- a/templates/__generic__.html.j2
+++ b/templates/__generic__.html.j2
@@ -8,7 +8,7 @@
{% if object.name %}
{{ object.name }} ({{ object.__class__.__name__ }})
{% else %}
-Unnamed ({{ object.__class__.__name__ }})
+Unnamed ({{ object.__class__.__name__ }})
{% endif %}
{{show_other_attributes(object) | safe}}
diff --git a/templates/common_macros.html.j2 b/templates/common_macros.html.j2
index ed3c812..3dcd93b 100644
--- a/templates/common_macros.html.j2
+++ b/templates/common_macros.html.j2
@@ -168,7 +168,6 @@
{{req_rels(req.relations, scope=scope) | safe}}
{{show_other_attributes(req, excluded=["related", "relations", "requirements", "text", "owner", "validate", "xtype"], hide_rules_check=True, hide_unset_attrs=True) | safe}}
-
{% endfor %}
diff --git a/templates/cross-cutting/region.html.j2 b/templates/cross-cutting/region.html.j2
index 56b86fa..4036d73 100644
--- a/templates/cross-cutting/region.html.j2
+++ b/templates/cross-cutting/region.html.j2
@@ -45,19 +45,21 @@ Upon completion of all entry activities of {{ render_name_with_icon(tx.source
{% endif %}
-{% if state.entry %}
-On entry into the {{ state.name }} {{ state.__class__.__name__ }} the system shall perform the following activities:
-{% for fnc in state.entry %}
+{% if state.entries %}
+
+On entry into the {{ state.name }} {{ state.__class__.__name__ }} the system shall perform the following activities:
+{% for fnc in state.entries %}
{{ render_name_with_icon(fnc) | safe }};
-{% endfor %}
+{% endfor %}
+
{% endif %}
{% if state.do_activity %}
-While in {{ state.name }} {{ state.__class__.__name__ }} the system may perform the following activities:
+While in {{ state.name }} {{ state.__class__.__name__ }} the system may perform the following activities:
{% for fnc in state.do_activity %}
- {{ render_name_with_icon(fnc) | safe }}
-{% endfor %}
+{% endfor %}
{% endif %}
diff --git a/templates/functional.html.j2 b/templates/functional.html.j2
index e39588c..506191e 100644
--- a/templates/functional.html.j2
+++ b/templates/functional.html.j2
@@ -108,7 +108,7 @@
The function is available in the following states of the {{ owner | safe }}:
{% for state in object.available_in_states %}
- - {{linked_name_with_icon(state) | safe}}
+ - {{linked_name_with_icon(state) | safe}}
{% endfor %}
{% else %}
diff --git a/templates/logical-architecture/logical-component.html.j2 b/templates/logical-architecture/logical-component.html.j2
index b7893ab..1b338ab 100644
--- a/templates/logical-architecture/logical-component.html.j2
+++ b/templates/logical-architecture/logical-component.html.j2
@@ -15,7 +15,7 @@ The figure below provides an overview of the logical subsystem and external enti
{{ object.context_diagram.as_svg|safe }}
-Logical interface partners of {{object.name}}
+Logical interface partners of {{object.name}}
{% set lexcs = [] %}{% for port in object.ports %}{% for lexc in port.exchanges %}
{% set _ = lexcs.append([lexc, lexc.source.owner if lexc.source.owner != subsystem else lexc.target.owner]) %}
diff --git a/templates/logical-architecture/logical-state.html.j2 b/templates/logical-architecture/logical-state.html.j2
index 4282e31..be0e8b9 100644
--- a/templates/logical-architecture/logical-state.html.j2
+++ b/templates/logical-architecture/logical-state.html.j2
@@ -30,19 +30,21 @@ Upon completion of all entry activities of {{ render_name_with_icon(tx.source
{% endif %}
-{% if object.entry %}
-
On entry into the {{ object.name }} {{ object.__class__.__name__ }} the system shall perform the following activities:
-{% for fnc in object.entry %}
+{% if object.entries %}
+
+On entry into the {{ object.name }} {{ object.__class__.__name__ }} the system shall perform the following activities:
+{% for fnc in object.entries %}
{{ render_name_with_icon(fnc) | safe }};
-{% endfor %}
+{% endfor %}
+
{% endif %}
{% if object.do_activity %}
-While in {{ object.name }} {{ object.__class__.__name__ }} the system may perform the following activities:
+While in {{ object.name }} {{ object.__class__.__name__ }} the system may perform the following activities:
{% for fnc in object.do_activity %}
- {{ render_name_with_icon(fnc) | safe }}
-{% endfor %}
+{% endfor %}
{% endif %}
diff --git a/templates/object_comparison.html.j2 b/templates/object_comparison.html.j2
index 0727aea..a07682a 100644
--- a/templates/object_comparison.html.j2
+++ b/templates/object_comparison.html.j2
@@ -51,7 +51,7 @@
{% if object.name %}
{{ object.name }} ({{ object.__class__.__name__ }})
{% else %}
- Unnamed ({{ object.__class__.__name__ }})
+ Unnamed ({{ object.__class__.__name__ }})
{% endif %}
{{show_other_attributes(object, object_diff, display_modified_changes=display_modified_changes) | safe}}
{% else %}
diff --git a/templates/system-analysis/mod-rules-compliance.html.j2 b/templates/system-analysis/mod-rules-compliance.html.j2
index ab98d05..744d8b1 100644
--- a/templates/system-analysis/mod-rules-compliance.html.j2
+++ b/templates/system-analysis/mod-rules-compliance.html.j2
@@ -41,7 +41,6 @@
{% endif -%}
{% endmacro -%}
-
Modeling Rules Compliance Report for System Analysis Layer
@@ -66,7 +65,7 @@
{% if total != 0 %}
{{score}}% ({{passed}} / {{total}} rule checks) for {{category}} rules category
{% else %}
- No rules in {{category}} category apply to objects under evaluation.
+ No rules in {{category}} category apply to objects under evaluation.
{% endif -%}
{% endfor %}
@@ -102,8 +101,10 @@
- Rule
- | Definition
+ | Rule |
+ Definition |
+
+
{% for rule in results.iter_rules() | sort(attribute="id") | sort(attribute="category.value") -%}
{% set rule_results = results.by_rule(rule) -%}
diff --git a/templates/system-analysis/system-actor.html.j2 b/templates/system-analysis/system-actor.html.j2
index 3d82f62..4ba4695 100644
--- a/templates/system-analysis/system-actor.html.j2
+++ b/templates/system-analysis/system-actor.html.j2
@@ -15,7 +15,7 @@
{{ object.name }}
{% else %}
-Unnamed ({{ object.__class__.__name__ }})
+Unnamed ({{ object.__class__.__name__ }})
{% endif %}
{{ description(object) | safe }}
diff --git a/templates/system-analysis/system-interface.html.j2 b/templates/system-analysis/system-interface.html.j2
index d9050e9..7795223 100644
--- a/templates/system-analysis/system-interface.html.j2
+++ b/templates/system-analysis/system-interface.html.j2
@@ -25,7 +25,7 @@
{% if object.name %}
{{ object.name }} ({{ object.__class__.__name__ }})
{% else %}
-Unnamed ({{ object.__class__.__name__ }})
+Unnamed ({{ object.__class__.__name__ }})
{% endif %}
{% set source_provides = [] %}