Compare commits
No commits in common. "2c9f5ee20b6e78bbeb4fa0cc5ff0bdf1c327ff55" and "0490ea09d7347b05c6951e7b763053cc81d38b6b" have entirely different histories.
2c9f5ee20b
...
0490ea09d7
@ -8,18 +8,16 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
if (data.results && data.results.length > 0) {
|
||||
data.results.forEach(file => {
|
||||
const card = document.createElement('div');
|
||||
const filenameWithoutExtension = file.filename.split('.').slice(0, -1).join('.');
|
||||
const parentFolder = file.relative_path.split('/').slice(0, -1).join('/');
|
||||
card.className = 'card';
|
||||
card.innerHTML = `
|
||||
<div class="card-body">
|
||||
<p><button class="btn btn-light" onclick="startPlaying('${file.relative_path}')" style="width:100%;">🔊 ${filenameWithoutExtension}</button></p>
|
||||
<p><button onclick="window.open('/path/${file.relative_path}', '_self');" class="btn btn-light btn-sm" style="width:100%;">📁 ${parentFolder}</button></p>
|
||||
<p class="card-text">Datum: ${file.performance_date}</p>
|
||||
<p><button class="btn btn-light" onclick="startPlaying('${file.relative_path}')" style="width:100%;">🔊 ${file.filename}</button></p>
|
||||
<p><button onclick="window.open('/path/${file.relative_path}', '_self');" class="btn btn-light btn-sm" style="width:100%;">📁 ${file.relative_path}</button></p>
|
||||
${ file.transcript_hits !== undefined
|
||||
? `<p class="card-text">Treffer im Transkript: ${file.transcript_hits}</p>`
|
||||
: `<p class="card-text">Downloads: ${file.hitcount}</p>`
|
||||
}
|
||||
<p class="card-text">Datum: ${file.performance_date}</p>
|
||||
</div>
|
||||
`;
|
||||
resultsDiv.appendChild(card);
|
||||
|
||||
@ -34,7 +34,6 @@
|
||||
<h1>{{ title_long }}</h1>
|
||||
</header>
|
||||
<div class="wrapper">
|
||||
{% if admin_enabled %}
|
||||
<!-- Navigation Bar -->
|
||||
<div class="admin-nav">
|
||||
<a href="{{ url_for('index') }}">App</a>
|
||||
@ -46,10 +45,11 @@
|
||||
<a href="{{ url_for('dashboard') }}">Dashbord</a>
|
||||
<span> | </span>
|
||||
<a href="{{ url_for('songs_dashboard') }}">Wiederholungen</a>
|
||||
{% if admin_enabled %}
|
||||
<span> | </span>
|
||||
<a href="{{ url_for('folder_secret_config_editor') }}" id="edit-folder-config">Ordnerkonfiguration</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user