From 3bcbefa3200437543a18b6e632fd049cd1f18d8b Mon Sep 17 00:00:00 2001
From: Friedel Wolff
Date: Mon, 22 Jul 2024 09:42:40 +0200
Subject: [PATCH 1/4] Sort lists on institution page
---
app/app/views.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/app/views.py b/app/app/views.py
index 7d4538e9..05020a17 100644
--- a/app/app/views.py
+++ b/app/app/views.py
@@ -142,8 +142,8 @@ def institution_detail(request, institution_id):
template = "app/institution_detail.html"
institution = get_object_or_404(Institution, id=institution_id)
- projects = Project.objects.filter(institution=institution)
- documents = DocumentFile.objects.filter(institution=institution)
+ projects = Project.objects.filter(institution=institution).order_by("name")
+ documents = DocumentFile.objects.filter(institution=institution).order_by("title")
logo = institution.logo
From 24632d06cd2c96a1fa0ee3dc31e8ad611b313326 Mon Sep 17 00:00:00 2001
From: Friedel Wolff
Date: Mon, 22 Jul 2024 09:42:52 +0200
Subject: [PATCH 2/4] Enable search box on front page
---
app/templates/app/home.html | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/app/templates/app/home.html b/app/templates/app/home.html
index 51f7d962..eb4485a7 100644
--- a/app/templates/app/home.html
+++ b/app/templates/app/home.html
@@ -38,13 +38,12 @@ {% trans "Search" %}
{% blocktrans %}This platforms hosts terminology and other useful language resources.{% endblocktrans %}
- {% blocktrans %}Search for a term or topic you are interested in.
- (Functionality coming soon.){% endblocktrans %}
+
- {# TODO: create the search box right here so that no additional click is required. #}
-
- {% trans "Search a term" %}
-
From 963eb3f3292ebfbe83cf663b15a8e9b789540e2c Mon Sep 17 00:00:00 2001
From: Friedel Wolff
Date: Mon, 22 Jul 2024 09:43:28 +0200
Subject: [PATCH 3/4] Show project description on project detail
---
app/templates/app/project_detail.html | 3 +++
1 file changed, 3 insertions(+)
diff --git a/app/templates/app/project_detail.html b/app/templates/app/project_detail.html
index e16f817e..a6d32cf1 100644
--- a/app/templates/app/project_detail.html
+++ b/app/templates/app/project_detail.html
@@ -12,6 +12,9 @@