Hide tab bar on info page for guests
This commit is contained in:
@@ -531,17 +531,14 @@ DOCUMENTATION :: END
|
|||||||
history_active = 'active' if history_type else ''
|
history_active = 'active' if history_type else ''
|
||||||
export_active = 'active' if not history_type else ''
|
export_active = 'active' if not history_type else ''
|
||||||
%>
|
%>
|
||||||
% if history_type:
|
% if history_type and _session['user_group'] == 'admin':
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="table-card-header">
|
<div class="table-card-header">
|
||||||
<ul class="nav nav-list nav-pills" role="tablist">
|
<ul class="nav nav-list nav-pills" role="tablist">
|
||||||
<li class="${history_active}"><a href="#tabs-history" role="tab" data-toggle="tab">History</a></li>
|
<li class="${history_active}"><a href="#tabs-history" role="tab" data-toggle="tab">History</a></li>
|
||||||
% if _session['user_group'] == 'admin':
|
|
||||||
<li class="${export_active}"><a href="#tabs-export" role="tab" data-toggle="tab">Export</a></li>
|
<li class="${export_active}"><a href="#tabs-export" role="tab" data-toggle="tab">Export</a></li>
|
||||||
% endif
|
|
||||||
</ul>
|
</ul>
|
||||||
<div class="button-bar">
|
<div class="button-bar">
|
||||||
% if _session['user_group'] == 'admin':
|
|
||||||
% if source == 'history':
|
% if source == 'history':
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a href="update_metadata?rating_key=${data['rating_key']}&update=True" class="btn btn-danger btn-edit" id="fix-metadata">
|
<a href="update_metadata?rating_key=${data['rating_key']}&update=True" class="btn btn-danger btn-edit" id="fix-metadata">
|
||||||
@@ -581,7 +578,6 @@ DOCUMENTATION :: END
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
% endif
|
% endif
|
||||||
% endif
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user