From e2b91dca23406cb98b5930b0eb32c042c3cc93e4 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 10 Jun 2023 14:22:21 -0500 Subject: [PATCH] Move "view history" and related buttons, for person profile view need those to be more front-and-center --- tailbone/templates/base.mako | 3 ++ .../templates/people/view_profile_buefy.mako | 40 ++++++++++--------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/tailbone/templates/base.mako b/tailbone/templates/base.mako index 723e106c..0e767353 100644 --- a/tailbone/templates/base.mako +++ b/tailbone/templates/base.mako @@ -432,6 +432,7 @@

+ ${self.render_instance_header_title_extras()}
${self.render_instance_header_buttons()} @@ -621,6 +622,8 @@ % endif +<%def name="render_instance_header_title_extras()"> + <%def name="render_instance_header_buttons()"> ${self.render_crud_header_buttons()} ${self.render_prevnext_header_buttons()} diff --git a/tailbone/templates/people/view_profile_buefy.mako b/tailbone/templates/people/view_profile_buefy.mako index c1799c16..eb24cc29 100644 --- a/tailbone/templates/people/view_profile_buefy.mako +++ b/tailbone/templates/people/view_profile_buefy.mako @@ -18,27 +18,29 @@ ${dynamic_content_title} -<%def name="render_instance_header_buttons()"> +<%def name="render_instance_header_title_extras()"> % if request.has_perm('people_profile.view_versions'): - - View History - -
- - {{ gettingRevisions ? "Working, please wait..." : "Refresh History" }} - - - View Profile +
+ + View History +
+ + View Profile + + + {{ gettingRevisions ? "Working, please wait..." : "Refresh History" }} + +
% endif