blackboard view fix

This commit is contained in:
root (fetsite21)
2021-01-29 23:41:40 +01:00
parent 23b1f1514f
commit d751bfb146
3 changed files with 13 additions and 2 deletions

View File

@@ -16,3 +16,12 @@ div.footer {
.footer a i { .footer a i {
font-size:30px; font-size:30px;
} }
a.thumbnail {
width: 150px;
height: 150px;
}
a.thumbnail img {
width: 150px;
height: 150px;
}

View File

@@ -53,7 +53,9 @@ class JobPosting(models.Model):
encoding = locale.getpreferredencoding() encoding = locale.getpreferredencoding()
args = [a.encode(encoding) for a in args] 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): def save(self, *args, **kwargs):
super().save(*args, **kwargs) super().save(*args, **kwargs)

View File

@@ -4,7 +4,7 @@
Mindestgehalt: {{job.salary}}€</p> Mindestgehalt: {{job.salary}}€</p>
{# only thumb and name of member #} {# only thumb and name of member #}
<a class="thumbnail member-thumb" href="{{job.pdfLocation.url}}" style="width:200px;height:280px" target="_blank"> <a class="thumbnail member-thumb" href="{{job.pdfLocation.url}}" style="width:200px;height:280px" target="_blank">
<img src="{{job.pdf_thumb_location}}" alt="" /> <img style="width:200px;height:280px" src="{{job.pdf_thumb_location}}" alt="" />
<div class="thumb-layer"> <div class="thumb-layer">
<div> <div>
<h1>{{job.companyName}}</h1> <h1>{{job.companyName}}</h1>