mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
This was an awkward property to have in a model class because - it’s presentation not data about the object - it munged together data from a different object, so it wasn’t well encapsulated This commit moves the logic to the template, where it can reference the `Organisation` and `User` models directly.
15 lines
435 B
Plaintext
15 lines
435 B
Plaintext
Organisation: {% if current_service.organisation -%}
|
||
{{ current_service.organisation.name }}
|
||
{%- else -%}
|
||
Can’t tell (domain is {{ current_user.email_domain }})
|
||
{%- endif %}
|
||
Service: {{ current_service.name }}
|
||
{{ url_for('main.service_dashboard', service_id=current_service.id, _external=True) }}
|
||
|
||
---
|
||
Current branding: {{ current_branding }}
|
||
Branding requested: {{ branding_requested }}
|
||
{% if detail %}
|
||
{{ detail }}
|
||
{% endif %}
|