Updated contact template
authorThierry Florac <thierry.florac@onf.fr>
Tue, 20 Nov 2018 16:11:31 +0100
changeset 242 74607c05f702
parent 241 88e43c1723e1
child 243 cb03816a6419
Updated contact template
src/pyams_default_theme/component/paragraph/templates/contact-default.pt
--- a/src/pyams_default_theme/component/paragraph/templates/contact-default.pt	Tue Nov 20 16:09:15 2018 +0100
+++ b/src/pyams_default_theme/component/paragraph/templates/contact-default.pt	Tue Nov 20 16:11:31 2018 +0100
@@ -23,9 +23,9 @@
 		</div>
 		<tal:if condition="view.contact_email">
 			<span i18n:translate="">Contact email:</span>
-			<a tal:define="buttom_label i18n:settings.button_label"
+			<a tal:define="button_label view.button_label"
 			   href="mailto:${view.contact_email}?subject=${view.title}">
-				${button_label or view.contact_email}
+				${button_label}
 			</a><br />
 		</tal:if>
 		<tal:if condition="view.phone_number">