Skip to content

Commit

Permalink
merge: Fix templates (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuestengecko committed Sep 30, 2024
2 parents ad9ea6a + 9c9a553 commit 1cc496d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
]
dependencies = [
"capellambse>=0.6.6,<0.7",
"capellambse-context-diagrams>=0.4.0",
"capellambse-context-diagrams>=0.4.1",
"capella-diff-tools",
"diff-match-patch",
"jinja2",
Expand Down
2 changes: 1 addition & 1 deletion templates/functional.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<tr>
<td>FEX-{{ exchange.uuid[-5:] | upper}}</td>
<td>
<p>While performing {{ linked_name_with_icon(exchange.source.owner) | safe }} activity {{ source_owner | safe }} may provide {{ linked_name_with_icon(exchange) | safe }} to {{ owner | safe }} so that {{ owner_name | safe }} could {{ object.name }}.</p>
<p>While performing {{ linked_name_with_icon(exchange.source.owner) | safe }} activity {{ source_owner | safe }} may provide {{ linked_name_with_icon(exchange) | safe }} to {{ owner | safe }} so that {{ owner_name | safe }} could {{ linked_name_with_icon(object) | safe }}.</p>
{{ list_related_exchange_items(exchange) | safe }}
</td>
</tr>
Expand Down
4 changes: 3 additions & 1 deletion templates/physical-architecture/physical-link.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
<p>A part of {{ linked_name(object.parent) | safe }}</p>
{% endif %}

{{ object.context_diagram.as_svg | safe }}

<p>Connects {{ linked_name(object.ends[0].owner) | safe}} via {{ linked_name(object.ends[0]) | safe }} port and {{ linked_name(object.ends[1].owner) | safe }} via {{ linked_name(object.ends[1]) | safe }} port.</p>

{{ display_property_values(object ) | safe }}

{% set covered = ["ends", "linkEnds", "name", "owner", "source", "target", "xtype", "applied_property_value_groups", "property_value_groups", "parent"] %}
{% set covered = ["ends", "linkEnds", "name", "owner", "source", "target", "xtype", "applied_property_value_groups", "property_value_groups", "parent", "context_diagram"] %}
{{show_other_attributes(object, covered) | safe}}
4 changes: 2 additions & 2 deletions templates/system-analysis/system-definition.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
SPDX-License-Identifier: Apache-2.0
#}

{% from 'common_macros.html.j2' import show_other_attributes %}
{% from 'common_macros.html.j2' import show_other_attributes, linked_name_with_icon %}

{% set object = model.sa.root_component%}
<h1>System Definition</h1>
Expand Down Expand Up @@ -42,7 +42,7 @@
<p>The system is expected to perform the following functions:</p>
<ul>
{% for fnc in object.allocated_functions %}
<li><a href="{{ fnc | make_href }}">{{ fnc.name }}</a></li>
<li><a href="{{ fnc | make_href }}">{{ linked_name_with_icon(fnc) | safe }}</a></li>
{% endfor %}
</ul>
{% else %}
Expand Down

0 comments on commit 1cc496d

Please sign in to comment.