Move "Page History" into button group
If the user has edit permissions, the "History" button is shown in a button group with "Edit" and "Rename". If the user does not have edit permissions, it's shown by itself. This commit also renames the label from "Page History" to "History".
This commit is contained in:
committed by
benjamin wil
parent
b7caa228e6
commit
f71ba31bfe
@@ -41,21 +41,19 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#history}}
|
||||
<div class="TableObject-item pl-2 hide-sm hide-md">
|
||||
<a
|
||||
class="btn btn-sm"
|
||||
href="{{history_path}}/{{escaped_url_path}}"
|
||||
id="minibutton-history"
|
||||
>
|
||||
Page History
|
||||
</a>
|
||||
</div>
|
||||
{{/history}}
|
||||
<div class="TableObject-item px-2">
|
||||
<div class="BtnGroup" style="display: flex;">
|
||||
{{#history}}
|
||||
<a
|
||||
class="btn BtnGroup-item btn-sm hide-sm hide-md"
|
||||
href="{{history_path}}/{{escaped_url_path}}"
|
||||
id="minibutton-history"
|
||||
>
|
||||
History
|
||||
</a>
|
||||
{{/history}}
|
||||
|
||||
{{#allow_editing}}
|
||||
<div class="TableObject-item px-2">
|
||||
<div class="BtnGroup" style="display: flex;">
|
||||
{{#allow_editing}}
|
||||
{{#allow_uploads}}
|
||||
<a
|
||||
class="btn BtnGroup-item btn-sm hide-sm hide-md
|
||||
@@ -80,9 +78,12 @@
|
||||
Edit
|
||||
</a>
|
||||
{{/editable}}
|
||||
</div>
|
||||
{{/allow_editing}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{#allow_editing}}
|
||||
{{#editable}}
|
||||
<div class="TableObject-item">
|
||||
<a class="btn btn-primary btn-sm minibutton-new-page" href="#">
|
||||
|
||||
Reference in New Issue
Block a user