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

View file

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