add hyphen to jobnames
This commit is contained in:
@@ -84,6 +84,7 @@ INSTALLED_APPS = [
|
|||||||
'ckeditor_uploader',
|
'ckeditor_uploader',
|
||||||
'easy_thumbnails',
|
'easy_thumbnails',
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
|
'softhyphen',
|
||||||
'django_crontab',
|
'django_crontab',
|
||||||
'django_filters',
|
'django_filters',
|
||||||
'django_static_jquery_ui',
|
'django_static_jquery_ui',
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ django-crontab==0.7.1
|
|||||||
django-environ==0.4.5
|
django-environ==0.4.5
|
||||||
django-filter==2.4.0
|
django-filter==2.4.0
|
||||||
django-static-jquery-ui==1.12.1.1
|
django-static-jquery-ui==1.12.1.1
|
||||||
|
django-softhyphen==1.1.0
|
||||||
django-taggit==1.3.0
|
django-taggit==1.3.0
|
||||||
djangorestframework==3.12.1
|
djangorestframework==3.12.1
|
||||||
configparser==5.0.1
|
configparser==5.0.1
|
||||||
|
|||||||
@@ -1,14 +1,20 @@
|
|||||||
{% extends 'layout.html' %}
|
{% extends 'layout.html' %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
{% load softhyphen_tags %}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.button {
|
.button {
|
||||||
background-color: green;
|
background-color: gray;
|
||||||
|
|
||||||
|
}
|
||||||
|
.button:hover {
|
||||||
|
background-color: black;
|
||||||
}
|
}
|
||||||
.memb {
|
.memb {
|
||||||
background-color: blue;
|
background-color: darkgray;
|
||||||
}
|
}
|
||||||
.active {
|
.active {
|
||||||
background-color: red;
|
background-color: black;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@@ -21,7 +27,11 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% for job in unpinned_job_groups %}
|
{% 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 %}
|
{% 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>
|
<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>
|
||||||
|
|||||||
Reference in New Issue
Block a user