Move "view history" and related buttons, for person profile view
need those to be more front-and-center
This commit is contained in:
parent
3fde80f991
commit
e2b91dca23
|
@ -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()}
|
||||||
|
|
|
@ -18,27 +18,29 @@
|
||||||
${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'):
|
||||||
<b-button v-if="!viewingHistory"
|
<div class="level-item" style="margin-left: 2rem;">
|
||||||
icon-pack="fas"
|
<b-button v-if="!viewingHistory"
|
||||||
icon-left="history"
|
icon-pack="fas"
|
||||||
@click="viewHistory()">
|
icon-left="history"
|
||||||
View History
|
@click="viewHistory()">
|
||||||
</b-button>
|
View History
|
||||||
<div v-if="viewingHistory"
|
|
||||||
class="buttons">
|
|
||||||
<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>
|
</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>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
% endif
|
% endif
|
||||||
</%def>
|
</%def>
|
||||||
|
|
Loading…
Reference in a new issue