Skip to content

Commit

Permalink
fix(capella2polarion): Fix LogicalComponent FA template
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Sep 20, 2024
1 parent aeaffa1 commit a6a007f
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 3 deletions.
8 changes: 6 additions & 2 deletions capella2polarion_document_config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

full_authority:
- template_directory: jinja/document_templates
template: icd-interfaces-full_auth.html.j2
template: icd-interfaces-full_authority.html.j2
project_id: null # None -> Defaults to Sync Project
status_allow_list:
- draft
- open
heading_numbering: True
work_item_layouts:
componentExchange:
Expand Down Expand Up @@ -45,7 +49,7 @@ full_authority:
{%- endif -%}
{% endfor %}
- template_directory: jinja/document_templates/logical-architecture
template: logical-component.html.j2
template: logical-component-full-authority.html.j2
heading_numbering: True
work_item_layouts:
logicalComponent:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{#
Copyright DB InfraGO AG and contributors
SPDX-License-Identifier: Apache-2.0
#}

{% from 'icd-interfaces-common.html.j2' import render_content %}

{% set physical_link = model.by_uuid(physical_link) %}
{{ render_content(physical_link, model, session) }}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% macro render_content(component, model, session) %}
{{ heading(2, component.name, session)}}
{{ heading(3, "Logical Component Context", session)}}
<workitem id="interface_partners">The figure below provides an overview of the logical subsystem and external entities that either require the functionality of <b>{{ object.name }}</b> (expect outputs) or enable it (provide inputs). The figure also identifies the interfaces between the subsystem and its environment.</workitem>
<workitem id="interface_partners">The figure below provides an overview of the logical subsystem and external entities that either require the functionality of <b>{{ component.name }}</b> (expect outputs) or enable it (provide inputs). The figure also identifies the interfaces between the subsystem and its environment.</workitem>
{{ insert_work_item(component, session) }}
{{ heading(3, "Logical interface partners of " + component.name, session) }}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{#
Copyright DB InfraGO AG and contributors
SPDX-License-Identifier: Apache-2.0
#}
{% from 'logical-common.html.j2' import render_content %}

{% set component = model.by_uuid(uuid) %}
{{ render_content(component, model, session) }}

0 comments on commit a6a007f

Please sign in to comment.