From ca3effcad1c15787dd2bbe73fb9c64b64be53f5e Mon Sep 17 00:00:00 2001 From: Tris Forster Date: Fri, 29 May 2026 22:47:33 +1000 Subject: [PATCH 1/2] Fixed my music page --- .../templates/interface/project_items.html | 2 +- .../library/templates/library/item_list.html | 23 ++++++++----------- polyphonic/library/views/__init__.py | 16 ++++++++----- 3 files changed, 20 insertions(+), 21 deletions(-) diff --git a/polyphonic/interface/templates/interface/project_items.html b/polyphonic/interface/templates/interface/project_items.html index 6db05e6..561048a 100644 --- a/polyphonic/interface/templates/interface/project_items.html +++ b/polyphonic/interface/templates/interface/project_items.html @@ -33,4 +33,4 @@ {% endfor %} - \ No newline at end of file + diff --git a/polyphonic/library/templates/library/item_list.html b/polyphonic/library/templates/library/item_list.html index 7207fa5..ab88d32 100644 --- a/polyphonic/library/templates/library/item_list.html +++ b/polyphonic/library/templates/library/item_list.html @@ -31,12 +31,6 @@ - - - @@ -45,6 +39,7 @@ Piece + Composer Running time Part @@ -61,6 +56,7 @@ {{ item.work.name }} {% endif %} + {{ item.work.composer }} {% firstof item.work.running_time "------" %} @@ -74,8 +70,9 @@ - - + + + Get @@ -85,13 +82,11 @@ - {% firstof running_time "------" %} - - + {% firstof running_time "------" %} + + + diff --git a/polyphonic/library/views/__init__.py b/polyphonic/library/views/__init__.py index 995ba22..e36dc5d 100644 --- a/polyphonic/library/views/__init__.py +++ b/polyphonic/library/views/__init__.py @@ -38,7 +38,8 @@ class ProjectItemListView(ProjectMixin, ListView): project_works = self.project.works.all() - instruments = request.POST.getlist("instruments") + print(request.POST) + instruments = request.POST.getlist("instrument-selection") works = request.POST.getlist("works") request.session["part"] = request.POST.get("part", "") @@ -65,13 +66,16 @@ class ProjectItemListView(ProjectMixin, ListView): (part.doc.upload.path, part.doc.work.name, part.start, part.end, 1) ) - result = extract_and_concat(sections) + action = request.POST.get("action") + if action == "pdf": + result = extract_and_concat(sections) + download_name = f"{self.project.name}.pdf" - download_name = f"{self.project.name}.pdf" + response = FileResponse(result, content_type="application/pdf") + response["Content-Disposition"] = f'inline; filename="{download_name}"' + return response - response = FileResponse(result, content_type="application/pdf") - response["Content-Disposition"] = f'inline; filename="{download_name}"' - return response + return HttpResponse(f"Unknown action: {action}", status=400) def get_queryset(self): return ( From 1301d19c08938d7e62b0cb1ea8f91c31a4bda98f Mon Sep 17 00:00:00 2001 From: Tris Forster Date: Tue, 16 Jun 2026 09:18:21 +1000 Subject: [PATCH 2/2] Switched to material icons --- polyphonic/interface/templates/base.html | 5 ++- .../templates/bulma/file_upload.html | 4 +- .../templates/interface/ensemble_detail.html | 9 +++-- .../templates/interface/ensemble_list.html | 9 +++-- .../templates/interface/project_detail.html | 6 +-- .../templates/interface/resource_list.html | 11 +++--- .../interface/templates/interface/wiki.html | 7 ++-- .../interface/templatetags/polyphonic.py | 18 +++++++++ polyphonic/library/music_tags.py | 4 ++ .../templates/library/collection_list.html | 6 ++- .../templates/library/document_annotate.html | 32 ++++++++++----- .../templates/library/document_entry.html | 18 ++++++--- .../library/templates/library/gdrive.html | 32 ++++++++------- .../library/templates/library/item_list.html | 13 +++++-- .../templates/library/item_list_manage.html | 19 ++++++--- .../templates/library/work_detail.html | 39 ++++++++++--------- .../library/templates/library/work_list.html | 9 ++++- .../templates/library/work_partset.html | 8 ++-- 18 files changed, 165 insertions(+), 84 deletions(-) diff --git a/polyphonic/interface/templates/base.html b/polyphonic/interface/templates/base.html index 1775c30..3bc4692 100644 --- a/polyphonic/interface/templates/base.html +++ b/polyphonic/interface/templates/base.html @@ -11,7 +11,8 @@ - + + {% block title %}Polyphonic{% endblock %} {% block media %}{% endblock %} @@ -23,7 +24,7 @@