diff --git a/machines/templates/machines/aff_dname.html b/machines/templates/machines/aff_dname.html
index 8ee3280e..8797be72 100644
--- a/machines/templates/machines/aff_dname.html
+++ b/machines/templates/machines/aff_dname.html
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %}
{% load acl %}
+{% load logs_extra %}
@@ -38,7 +39,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% can_edit dname %}
{% include 'buttons/edit.html' with href='machines:edit-dname' id=dname.id %}
{% acl_end %}
- {% include 'buttons/history.html' with href='machines:history' name='dname' id=dname.id %}
+ {% history_button dname %}
{% endfor %}
diff --git a/machines/templates/machines/index_extension.html b/machines/templates/machines/index_extension.html
index 19a0fca4..29c5a0bd 100644
--- a/machines/templates/machines/index_extension.html
+++ b/machines/templates/machines/index_extension.html
@@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load acl %}
+{% load i18n %}
{% block title %}Machines{% endblock %}