Move "view history" and related buttons, for person profile view

need those to be more front-and-center
This commit is contained in:
Lance Edgar 2023-06-10 14:22:21 -05:00
parent 3fde80f991
commit e2b91dca23
2 changed files with 24 additions and 19 deletions

View file

@ -432,6 +432,7 @@
<div class="level-item">
<h1 class="title" v-html="contentTitleHTML"></h1>
</div>
${self.render_instance_header_title_extras()}
</div>
<div class="level-right">
${self.render_instance_header_buttons()}
@ -621,6 +622,8 @@
% endif
</%def>
<%def name="render_instance_header_title_extras()"></%def>
<%def name="render_instance_header_buttons()">
${self.render_crud_header_buttons()}
${self.render_prevnext_header_buttons()}

View file

@ -18,8 +18,9 @@
${dynamic_content_title}
</%def>
<%def name="render_instance_header_buttons()">
<%def name="render_instance_header_title_extras()">
% if request.has_perm('people_profile.view_versions'):
<div class="level-item" style="margin-left: 2rem;">
<b-button v-if="!viewingHistory"
icon-pack="fas"
icon-left="history"
@ -28,17 +29,18 @@
</b-button>
<div v-if="viewingHistory"
class="buttons">
<b-button icon-pack="fas"
icon-left="user"
@click="viewingHistory = false">
View Profile
</b-button>
<b-button icon-pack="fas"
icon-left="redo"
@click="refreshHistory()"
:disabled="gettingRevisions">
{{ gettingRevisions ? "Working, please wait..." : "Refresh History" }}
</b-button>
<b-button icon-pack="fas"
icon-left="user"
@click="viewingHistory = false">
View Profile
</b-button>
</div>
</div>
% endif
</%def>