diff --git a/digitaleagentur/__pycache__/settings.cpython-38.pyc b/digitaleagentur/__pycache__/settings.cpython-38.pyc index 0d03a12..a7b3c66 100644 Binary files a/digitaleagentur/__pycache__/settings.cpython-38.pyc and b/digitaleagentur/__pycache__/settings.cpython-38.pyc differ diff --git a/digitaleagentur/settings.py b/digitaleagentur/settings.py index 9a0b236..c252e32 100644 --- a/digitaleagentur/settings.py +++ b/digitaleagentur/settings.py @@ -24,7 +24,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = '_qv2t2lmsctjxpbb4rrp=op%_20_hxzonv^mvty1o85c)l$s^q' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = ['digitale-agentur.com', 'www.digitale-agentur.com', 'localhost'] @@ -169,18 +169,16 @@ LOGIN_REDIRECT_URL = 'users-dashboard' #SITE_ROOT = '/var/www/digitale-agentur.com/digitaleagentur/digitaleagentur/../' #STATIC_ROOT = (os.path.join(SITE_ROOT, 'static/')) - - -STATIC_URL = 'users/static/' -#STATIC_URL = '/static/' - - -SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) + '/..' -STATIC_ROOT = (os.path.join(SITE_ROOT, 'users/static/')) -STATICFILES_DIRS = ( - os.path.join(SITE_ROOT, 'users/static/'), -) - +if DEBUG: + STATIC_URL = '/static/' +else: + STATIC_URL = 'users/static/' + SITE_ROOT = os.path.dirname(os.path.realpath(__file__)) + '/..' + STATIC_ROOT = (os.path.join(SITE_ROOT, 'users/static/')) + STATICFILES_DIRS = ( + os.path.join(SITE_ROOT, 'users/static/'), + ) + # CRISPY CRISPY_TEMPLATE_PACK = 'bootstrap4' diff --git a/standards/templates/standards/standards_management.html b/standards/templates/standards/standards_management.html index ec18b60..5b9d4db 100644 --- a/standards/templates/standards/standards_management.html +++ b/standards/templates/standards/standards_management.html @@ -14,40 +14,6 @@
- {% for item in standards_of_agency %} - {% if item.public or item.created_standard_by == user or perms.users.standard_management %} -
-
-
- - {% if item.public %} -

{{item.name}}

- {% else %} -

{{item.name}}

- {% endif %} -
- {% if item.created_standard_by == user or perms.users.standard_management %} - - {% endif %} -
-
-
{{item.created_standard_by.first_name}} {{item.created_standard_by.last_name}}
Zuletzt bearbeitet von {{ item.last_modified_by.first_name }} {{ item.last_modified_by.last_name }} am {{ item.last_modified_on }}
- -

{{ item.content|truncatechars:250|safe}}

-
-
-
- {% endif %} - {% endfor%} +
{% endblock content %} diff --git a/standards/templates/standards/standards_single.html b/standards/templates/standards/standards_single.html index e569e39..a995ef1 100644 --- a/standards/templates/standards/standards_single.html +++ b/standards/templates/standards/standards_single.html @@ -10,7 +10,7 @@

{{standard.name}}

- Erstellt durch {{standard.created_standard_by.first_name}} {{standard.created_standard_by.last_name}} am {{standard.created_standard_date}} | Zuletzt bearbeitet von {{ standard.last_modified_by.first_name}} {{ standard.last_modified_by.last_name}} am {{ standard.last_modified_on}} + Erstellt durch {{standard.created_standard_by.first_name}} {{standard.created_standard_by.last_name}} am {{standard.created_standard_date}} | Zuletzt bearbeitet von {{ standard.last_modified_by.first_name}} {{ standard.last_modified_by.last_name}} am {{ standard.last_modified_on}} {% if standard.created_standard_by == user or perms.users.standard_management %}  | Bearbeiten {% endif%} diff --git a/users/__pycache__/views.cpython-38.pyc b/users/__pycache__/views.cpython-38.pyc index d1e70f0..c7f4c72 100644 Binary files a/users/__pycache__/views.cpython-38.pyc and b/users/__pycache__/views.cpython-38.pyc differ diff --git a/users/templates/users/base.html b/users/templates/users/base.html index 385dfd6..fcc2f11 100644 --- a/users/templates/users/base.html +++ b/users/templates/users/base.html @@ -173,13 +173,18 @@ @@ -221,9 +226,7 @@
- -
- + {% if messages %} {% for message in messages %} @@ -233,17 +236,9 @@
- {% endfor %} {% endif %} -