-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from GSA-TTS/switch-to-jinja-filters
Switch to jinja filters in ssp markdown
- Loading branch information
Showing
11 changed files
with
48 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# switch back to a released version of compliance-trestle once the jinja tags work is merged and released | ||
compliance-trestle @ git+https://github.com/gsa-tts/compliance-trestle.git@77a6d5d0 | ||
# switch back to a released version of compliance-trestle once the jinja filters/plugins work is merged and released | ||
compliance-trestle @ git+https://github.com/gsa-tts/compliance-trestle.git@576c4369 | ||
compliance-trestle-gsa @ git+https://github.com/GSA-TTS/compliance-trestle-gsa.git@39ce4167 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,35 @@ | ||
|
||
# Approvals | ||
|
||
**System Owner** | ||
## System Owner | ||
<br> | ||
<br> | ||
<br> | ||
<br> | ||
<div style="width:400px"><hr style="border-top:solid 2px #333 !important;color:#333;background-color:#333;" /></div> | ||
{% set owners = ssp_interface.get_parties_for_role(ssp.system_characteristics.responsible_parties, "system-owner") | list %} | ||
{% if owners | count > 0 %} | ||
{{ owners[0].name }} | ||
{% else %} | ||
[Name] | ||
{% endif %} | ||
{% set owner = ssp.system_characteristics.responsible_parties | parties_for_role("system-owner", ssp) | first_or_none %} | ||
{{ owner.name | default('[Name]') }} | ||
<br> | ||
System Owner | ||
|
||
**Information System Security Officer** | ||
## Information System Security Officer | ||
<br> | ||
<br> | ||
<br> | ||
<br> | ||
<div style="width:400px"><hr style="border-top:solid 2px #333 !important;color:#333;background-color:#333;" /></div> | ||
{% set isso = ssp_interface.get_parties_for_role(ssp.system_characteristics.responsible_parties, "information-system-security-officer") | list %} | ||
{% if isso | count > 0 %} | ||
{{ isso[0].name }} | ||
{% else %} | ||
[Name] | ||
{% endif %} | ||
{% set isso = ssp.system_characteristics.responsible_parties | parties_for_role("information-system-security-officer", ssp) | first_or_none %} | ||
{{ isso.name | default('[Name]') }} | ||
<br> | ||
Information System Security Officer | ||
|
||
**Information System Security Manager** | ||
## Information System Security Manager | ||
<br> | ||
<br> | ||
<br> | ||
<br> | ||
<div style="width:400px"><hr style="border-top:solid 2px #333 !important;color:#333;background-color:#333;" /></div> | ||
{% set issm = ssp_interface.get_parties_for_role(ssp.system_characteristics.responsible_parties, "information-system-security-manager") | list %} | ||
{% if issm | count > 0 %} | ||
{{ issm[0].name }} | ||
{% else %} | ||
[Name] | ||
{% endif %} | ||
{% set issm = ssp.system_characteristics.responsible_parties | parties_for_role("information-system-security-manager", ssp) | first_or_none %} | ||
{{ issm.name | default('[Name]') }} | ||
<br> | ||
Information System Security Manager | ||
|
||
<div class="pagebreak"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 12 additions & 28 deletions
40
templates/ssp-rendering/lato/templates/partials/poc_contact_table.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,14 @@ | ||
<table> | ||
<tbody> | ||
<tr> | ||
<th scope="row">Name</th><td>{{ party.name }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Title</th><td>{{ control_interface.get_prop(party, 'title') }}</td> | ||
</tr> | ||
<tr> | ||
{% set organization = ssp_interface.get_party_by_uuid(ssp_interface.first_array_entry(party.member_of_organizations)) %} | ||
<th scope="row">Organization</th><td>{{ ssp_interface.safe_retrieval(organization, "name") }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Address</th><td> | ||
{% if organization and organization.addresses %} | ||
{% set address = ssp_interface.first_array_entry(organization.addresses) %} | ||
{% set organization = party.member_of_organizations | first_or_none | get_party(ssp) %} | ||
{% set address = organization.addresses | first_or_none %} | ||
| | | | ||
| - | - | | ||
| **Name** | {{ party.name }} | | ||
| **Title** | {{ control_interface.get_prop(party, 'title') }} | | ||
| **Organization** | {{ organization.name }} | | ||
{% if address %} | ||
{{ ssp_interface.safe_retrieval(address, 'addr_lines', []) | join(' ') }} {{ address.city }}, {{ address.state }} {{ address.postal_code }} | ||
| **Address** | {{ address.addr_lines | as_list | join(' ') }} {{ address.city }}, {{ address.state }} {{ address.postal_code }} | | ||
{% else %} | ||
| **Address** | | | ||
{% endif %} | ||
{% endif %} | ||
</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Phone Number</th><td>{{ ssp_interface.first_array_entry(party.telephone_numbers, "number") }}</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Email Address</th><td>{{ ssp_interface.first_array_entry(party.email_addresses, "__root__") }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
| **Phone Number** | {{ (party.telephone_numbers | first_or_none).number }} | | ||
| **Email Address** | {{ (party.email_addresses | first_or_none).__root__ }} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters