diff --git a/tailbone/templates/base.mako b/tailbone/templates/base.mako
index 560db8fb..f06edc91 100644
--- a/tailbone/templates/base.mako
+++ b/tailbone/templates/base.mako
@@ -83,7 +83,25 @@
- ${self.content_title()}
+ % if capture(self.content_title):
+
+ % if show_prev_next is not Undefined and show_prev_next:
+
+ % if prev_url:
+ ${h.link_to("« Older", prev_url, class_='button autodisable')}
+ % else:
+ ${h.link_to("« Older", '#', class_='button', disabled='disabled')}
+ % endif
+ % if next_url:
+ ${h.link_to("Newer »", next_url, class_='button autodisable')}
+ % else:
+ ${h.link_to("Newer »", '#', class_='button', disabled='disabled')}
+ % endif
+
+ % endif
+
+
${self.content_title()}
+ % endif
@@ -136,7 +154,7 @@
<%def name="title()">%def>
<%def name="content_title()">
- ${self.title()}
+ ${self.title()}
%def>
<%def name="header_core()">
diff --git a/tailbone/templates/master/versions.mako b/tailbone/templates/master/versions.mako
index b6bc3824..b20b7a4e 100644
--- a/tailbone/templates/master/versions.mako
+++ b/tailbone/templates/master/versions.mako
@@ -18,7 +18,7 @@
%def>
<%def name="content_title()">
- History for ${instance_title}
+ History for ${instance_title}
%def>
${grid.render_complete()|n}
diff --git a/tailbone/templates/master/view.mako b/tailbone/templates/master/view.mako
index 5e7e8c07..2f340e2d 100644
--- a/tailbone/templates/master/view.mako
+++ b/tailbone/templates/master/view.mako
@@ -26,21 +26,7 @@
%def>
<%def name="content_title()">
- % if master.supports_prev_next:
-
- % if prev_instance:
- ${h.link_to(u"« Older", url('{}.view'.format(route_prefix), uuid=prev_instance.uuid), class_='button autodisable')}
- % else:
- ${h.link_to(u"« Older", '#', class_='button', disabled='disabled')}
- % endif
- % if next_instance:
- ${h.link_to(u"Newer »", url('{}.view'.format(route_prefix), uuid=next_instance.uuid), class_='button autodisable')}
- % else:
- ${h.link_to(u"Newer »", '#', class_='button', disabled='disabled')}
- % endif
-
- % endif
- ${instance_title}
+ ${instance_title}
%def>
<%def name="context_menu_items()">
diff --git a/tailbone/templates/master/view_row.mako b/tailbone/templates/master/view_row.mako
index 7971444d..e786da05 100644
--- a/tailbone/templates/master/view_row.mako
+++ b/tailbone/templates/master/view_row.mako
@@ -4,7 +4,7 @@
<%def name="title()">${model_title}%def>
<%def name="content_title()">
- ${row_title}
+ ${row_title}
%def>
<%def name="context_menu_items()">
diff --git a/tailbone/templates/master/view_version.mako b/tailbone/templates/master/view_version.mako
index fb9a672e..0980235d 100644
--- a/tailbone/templates/master/view_version.mako
+++ b/tailbone/templates/master/view_version.mako
@@ -5,22 +5,6 @@
## TODO: this was basically copied from Revel diff template..need to abstract
-<%def name="content_title()">
-
- % if previous_transaction:
- ${h.link_to(u"« Older", url('{}.version'.format(route_prefix), uuid=instance.uuid, txnid=previous_transaction.id), class_='button')}
- % else:
- ${h.link_to(u"« Older", '#', class_='button', disabled='disabled')}
- % endif
- % if next_transaction:
- ${h.link_to(u"Newer »", url('{}.version'.format(route_prefix), uuid=instance.uuid, txnid=next_transaction.id), class_='button')}
- % else:
- ${h.link_to(u"Newer »", '#', class_='button', disabled='disabled')}
- % endif
-
- ${self.title()}
-%def>
-