parent
076583e8bd
commit
2488ce0d44
Binary file not shown.
|
|
@ -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 = False
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['digitale-agentur.com', 'www.digitale-agentur.com', 'localhost']
|
||||
|
||||
|
|
@ -169,15 +169,16 @@ LOGIN_REDIRECT_URL = 'users-dashboard'
|
|||
#SITE_ROOT = '/var/www/digitale-agentur.com/digitaleagentur/digitaleagentur/../'
|
||||
#STATIC_ROOT = (os.path.join(SITE_ROOT, '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/'),
|
||||
)
|
||||
#DEV-UMBGEUNG
|
||||
#STATIC_URL = '/static/'
|
||||
|
||||
#SERVER
|
||||
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'
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -4,20 +4,22 @@
|
|||
<h3>Willkommen, {{request.user.first_name}} {{request.user.last_name}}!</h3>
|
||||
<small>Letzter Login: {{ request.user.last_login }}</small>
|
||||
<hr>
|
||||
Agentur: <b>{{ request.user.profile.agency.name }}</b>
|
||||
<div class="">
|
||||
<img class="img-profile" width="75%" src="{{ request.user.profile.agency.agencypic.url }}">
|
||||
<hr>
|
||||
<h4>Agentur: <b>{{ request.user.profile.agency.name }}</b></h4>
|
||||
<hr>
|
||||
<h5>Neueste Standards</h5>
|
||||
<div class="row">
|
||||
<hr>
|
||||
<div class="col mt-2">
|
||||
{% for item in standards_of_agency %}
|
||||
{% if item.public or item.created_standard_by == user or perms.users.standard_management %}
|
||||
<div class=" mb-4 col-5">
|
||||
<div class=" mb-4">
|
||||
<div class="card">
|
||||
<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
|
||||
<a href="{% url 'standard-single' item.pk%}">
|
||||
{% if item.public %}
|
||||
<h4><u>{{item.name}}</u></h4>
|
||||
<h5><u>{{item.name}}</u></h5>
|
||||
{% else %}
|
||||
<h4 class="text-warning"><u>{{item.name}}</u></h4>
|
||||
<h5 class="text-warning"><u>{{item.name}}</u></h5>
|
||||
{% endif %}
|
||||
</a>
|
||||
{% if item.created_standard_by == user or perms.users.standard_management %}
|
||||
|
|
@ -35,14 +37,18 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{item.created_standard_by.first_name}} {{item.created_standard_by.last_name}} <h6>Zuletzt bearbeitet von {{ item.last_modified_by.first_name }} {{ item.last_modified_by.last_name }} am {{ item.last_modified_on }}</h6>
|
||||
</h5>
|
||||
<p class="card-text">{{ item.content|truncatechars:250|safe}}</p>
|
||||
<h6 class="card-title">{{item.created_standard_by.first_name}} {{item.created_standard_by.last_name}} <small>Zuletzt bearbeitet von {{ item.last_modified_by.first_name }} {{ item.last_modified_by.last_name }} am {{ item.last_modified_on }}</small>
|
||||
</h6>
|
||||
<p class="card-text">{{ item.content|truncatechars:80|safe}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor%}
|
||||
</div>
|
||||
<div class="col">
|
||||
<img class="img-profile" width="75%" src="{{ request.user.profile.agency.agencypic.url }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
Loading…
Reference in New Issue