From d751bfb146764217385d868e67b37a4a91a843e2 Mon Sep 17 00:00:00 2001
From: "root (fetsite21)"
Date: Fri, 29 Jan 2021 23:41:40 +0100
Subject: [PATCH] blackboard view fix
---
assets/fet.css | 9 +++++++++
fet2020/blackboard/models.py | 4 +++-
.../templates/blackboard/partials/_show_job_posting.html | 2 +-
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/assets/fet.css b/assets/fet.css
index 5376ed1f..a19eefb6 100644
--- a/assets/fet.css
+++ b/assets/fet.css
@@ -16,3 +16,12 @@ div.footer {
.footer a i {
font-size:30px;
}
+a.thumbnail {
+ width: 150px;
+ height: 150px;
+}
+a.thumbnail img {
+ width: 150px;
+ height: 150px;
+
+}
diff --git a/fet2020/blackboard/models.py b/fet2020/blackboard/models.py
index db100b2d..4011af04 100644
--- a/fet2020/blackboard/models.py
+++ b/fet2020/blackboard/models.py
@@ -53,7 +53,9 @@ class JobPosting(models.Model):
encoding = locale.getpreferredencoding()
args = [a.encode(encoding) for a in args]
- ghostscript.Ghostscript(*args)
+ #ghostscript.Ghostscript(*args)
+ with ghostscript.Ghostscript(*args) as g:
+ ghostscript.cleanup()
def save(self, *args, **kwargs):
super().save(*args, **kwargs)
diff --git a/fet2020/templates/blackboard/partials/_show_job_posting.html b/fet2020/templates/blackboard/partials/_show_job_posting.html
index 9f9093f7..d107a4a9 100644
--- a/fet2020/templates/blackboard/partials/_show_job_posting.html
+++ b/fet2020/templates/blackboard/partials/_show_job_posting.html
@@ -4,7 +4,7 @@
Mindestgehalt: {{job.salary}}€
{# only thumb and name of member #}
-
+