refactor: show service instead of services

This commit is contained in:
Shivam Mishra 2020-06-18 19:49:46 +05:30
parent 82ddef58c0
commit 25702a1c55

View File

@ -10,9 +10,17 @@
'Agriculture': '/agriculture',
'Hospitality': ''
} %}
{% set link = '' %}
{% set label = domains[0].domain %}
{% if domains %}
{% set link = links[domains[0].domain] %}
{% set link = links[label] %}
{% endif %}
<a href="https://erpnext.com{{ link }}?source=website_footer" target="_blank" class="text-muted">Powered by ERPNext - {{ '' if domains else 'Open Source' }} ERP Software {{ ('for ' + domains[0].domain + ' Companies') if domains else '' }}</a>
{% if label == "Services" %}
{% set label = "Service" %}
{% endif %}
<a href="https://erpnext.com{{ link }}?source=website_footer" target="_blank" class="text-muted">Powered by ERPNext - {{ '' if domains else 'Open Source' }} ERP Software {{ ('for ' + label + ' Companies') if domains else '' }}</a>