diff --git a/tailbone/templates/themes/falafel/base.mako b/tailbone/templates/themes/falafel/base.mako
index 5ab12a03..94e20f3e 100644
--- a/tailbone/templates/themes/falafel/base.mako
+++ b/tailbone/templates/themes/falafel/base.mako
@@ -236,34 +236,7 @@
% endfor
-
-
- ## User Menu
- % if request.user:
-
- % if messaging_enabled:
-
${request.user}${" ({})".format(inbox_count) if inbox_count else ''}
- % else:
-
${request.user}
- % endif
-
- % if request.is_root:
- ${h.link_to("Stop being root", url('stop_root'), class_='navbar-item root-user')}
- % elif request.is_admin:
- ${h.link_to("Become root", url('become_root'), class_='navbar-item root-user')}
- % endif
- % if messaging_enabled:
- ${h.link_to("Messages{}".format(" ({})".format(inbox_count) if inbox_count else ''), url('messages.inbox'), class_='navbar-item')}
- % endif
- ${h.link_to("Change Password", url('change_password'), class_='navbar-item')}
- ${h.link_to("Logout", url('logout'), class_='navbar-item')}
-
-
- % else:
- ${h.link_to("Login", url('login'), class_='navbar-item')}
- % endif
-
-
+ ${self.render_navbar_end()}
@@ -552,6 +525,38 @@
${tailbone_autocomplete_template()}
%def>
+<%def name="render_navbar_end()">
+
+ ${self.render_user_menu()}
+
+%def>
+
+<%def name="render_user_menu()">
+ % if request.user:
+
+ % if messaging_enabled:
+
${request.user}${" ({})".format(inbox_count) if inbox_count else ''}
+ % else:
+
${request.user}
+ % endif
+
+ % if request.is_root:
+ ${h.link_to("Stop being root", url('stop_root'), class_='navbar-item root-user')}
+ % elif request.is_admin:
+ ${h.link_to("Become root", url('become_root'), class_='navbar-item root-user')}
+ % endif
+ % if messaging_enabled:
+ ${h.link_to("Messages{}".format(" ({})".format(inbox_count) if inbox_count else ''), url('messages.inbox'), class_='navbar-item')}
+ % endif
+ ${h.link_to("Change Password", url('change_password'), class_='navbar-item')}
+ ${h.link_to("Logout", url('logout'), class_='navbar-item')}
+
+
+ % else:
+ ${h.link_to("Login", url('login'), class_='navbar-item')}
+ % endif
+%def>
+
<%def name="render_instance_header_buttons()">
${self.render_crud_header_buttons()}
${self.render_prevnext_header_buttons()}
@@ -665,6 +670,7 @@
let WholePage = {
template: '#whole-page-template',
+ computed: {},
methods: {
changeContentTitle(newTitle) {