Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Update contacts template
Browse files Browse the repository at this point in the history
Contacts have no 'use' so that part is deadwood and can go
  • Loading branch information
goetzk committed Mar 9, 2017
1 parent 3c3a929 commit 94bec3e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions templates/contacts.cfg.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@ define contact{
{# loop through all key:value pairs and print out the results #}
{% for key, value in item.iteritems() %}

{% if key == 'use' %}
{% if key is defined %}
{{ key }} {{ value }}
{% else %}
{{ key }} generic-contact
{% endif %}
{% elif key == 'contact_name' %}
{% if key == 'contact_name' %}
{% if key is defined %}
{{ key }} {{ value }}
{% else %}
{{ key }} {{ value |mandatory }}
{% endif %}
{% else %}
{# Guess none of the special cases apply here #}
{# Special case doesn't apply here #}
{{ key }} {{ value }}
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 94bec3e

Please sign in to comment.