-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: spetrovi <samuel.petrovic.sk@gmail.com>
- Loading branch information
Showing
5 changed files
with
129 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
|
||
|
||
<div class="accordion" id="accordionExample"> | ||
{% for folder in folders %}: | ||
<div class="accordion-item"> | ||
<h2 class="accordion-header" id="headingOne"> | ||
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> | ||
{{folder}} | ||
</button> | ||
</h2> | ||
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne" data-bs-parent="#accordionExample"> | ||
<div class="accordion-body"> | ||
<div class="container d-grid mx-3"> | ||
<div class="row"> | ||
{% for song in songs %} | ||
{% if folder in song.img_src_path %} | ||
<div class="col-auto"> | ||
<div class="card my-3"> | ||
<div class="card-header"> | ||
{{song.img_src_path}} | ||
</div> | ||
<div class="card-body"> | ||
<img src="/{{song.img_src_path}}" width="100px" height="200px"> | ||
</div> | ||
<div class="card-footer"> | ||
<a href="/song_editor/{{song.id}}" class="btn btn-primary">Edit</a> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
|
||
|
||
|
||
|
||
{% endblock %} |