add hyphen to jobnames

This commit is contained in:
2020-11-03 13:45:15 +00:00
parent 2315b733ce
commit 923ae695ff
3 changed files with 16 additions and 4 deletions

View File

@@ -1,14 +1,20 @@
{% extends 'layout.html' %}
{% block content %}
{% load softhyphen_tags %}
<style>
.button {
background-color: green;
background-color: gray;
}
.button:hover {
background-color: black;
}
.memb {
background-color: blue;
background-color: darkgray;
}
.active {
background-color: red;
background-color: black;
}
</style>
@@ -21,7 +27,11 @@
{% endfor %}
{% for job in unpinned_job_groups %}
<div class="cell large-2 medium-4 small-6"><a class="button {% if job.slug in request.path %} active {% endif %}" style="width: 100%;" href="/members/jobs/{{job.slug}}">{{job.name}}</a></div>
<div class="cell large-2 medium-4 small-6">
<a class="button {% if job.slug in request.path %} active {% endif %}" style="width: 100%;" href="/members/jobs/{{job.slug}}">
{{ job.name|softhyphen|safe }}
</a>
</div>
{% endfor %}
<div class="cell large-2 medium-4 small-6"><a class="button memb {% if '/members/' == request.path %} active {% endif %}" style="width: 100%;" href="/members">Alle Mitglieder</a></div>