initial release for movie media type

This commit is contained in:
herby2212 2023-10-28 17:38:34 +02:00
parent 32cf26884b
commit 0fb362d4ee
4 changed files with 47 additions and 6 deletions

View file

@ -2940,6 +2940,12 @@ a .home-platforms-list-cover-face:hover
max-width: 1750px;
display: flow-root;
}
.table-card-header.spaced {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
align-content: center;
}
.table-card-back td {
font-size: 12px;
}
@ -2951,6 +2957,18 @@ a .home-platforms-list-cover-face:hover
font-weight: bold;
line-height: 34px;
}
.info-bar {
display: inline;
}
.info-element {
display: inline-block;
border-radius: 1rem;
border: 0.2rem solid #242424;
padding: 0.7rem;
background-color: #3B3B3B;
font-style: italic;
color: #676767;
}
.button-bar {
float: right;
}

View file

@ -271,7 +271,7 @@ DOCUMENTATION :: END
You may leave this page and check back later.
</div>
% endif
<div class='table-card-header'>
<div class='table-card-header spaced'>
<div class="header-bar">
<span>
<i class="fa fa-info-circle"></i> Media Info for <strong>
@ -279,6 +279,16 @@ DOCUMENTATION :: END
</strong>
</span>
</div>
% if config['get_file_sizes'] and not data['section_id'] in config['get_file_sizes_hold']['section_ids']:
<div class="info-bar">
<div class="info-element">
<span>Total File Size: <strong><span id="info-element-total-file-size" /></strong></span>
</div>
<div class="info-element">
<span>Total Media Runtime: <strong><span id="info-element-total-media-runtime" /></strong></span>
</div>
</div>
% endif
<div class="button-bar">
% if _session['user_group'] == 'admin':
<div class="btn-group">
@ -842,6 +852,10 @@ DOCUMENTATION :: END
section_id: section_id,
refresh: refresh_table
};
},
complete: function(xhr, status) {
$("#info-element-total-media-runtime").html(humanDuration(xhr.responseJSON.total_duration));
$("#info-element-total-file-size").html(humanFileSize(xhr.responseJSON.total_file_size));
}
};
media_info_table = $('#media_info_table-SID-${data["section_id"]}').DataTable(media_info_table_options);