Skip to content
Snippets Groups Projects
Commit 1cae7b4e authored by Olli Jalonen's avatar Olli Jalonen :disguised_face:
Browse files

Add site_base.html to load custom css file

parent d499a7ac
Branches
Tags
No related merge requests found
{% extends "site_base.html" %}
{% load i18n %}
{% load staticfiles %}
......@@ -27,22 +27,25 @@ TMP='tmp'
IMAGES='images'
# Image path inside container
CONTAINER_IMAGE_PATH='/usr/src/resilienceacademy/resilienceacademy/static/geonode/img'
CONTAINER_IMAGE_PATH='/usr/src/resilienceacademy/resilienceacademy/static/img'
# File names inside container
CONTAINER_FILES=(
'geonode-utu.css' # 0 (does not exist inside container on first run)
'site_base.html' # 1
)
# File paths inside container
CONTAINER_PATHS=(
'/usr/src/resilienceacademy/resilienceacademy/static/geonode/css/' # 0
'/usr/src/resilienceacademy/resilienceacademy/static/css/' # 0
'/usr/src/resilienceacademy/resilienceacademy/templates/' # 1
)
# File names outside container (here)
# This is needed because there are files with same name on different path
LOCAL_FILES=(
'geonode-utu.css' # 0
'site_base.html' # 1
)
# Image files, these are not backed up but existence is checked
......
{% extends "base.html" %}
{% block extra_head %}
<link href="{{ STATIC_URL }}css/site_base.css" rel="stylesheet"/>
<link href="{{ STATIC_URL }}css/geonode-utu.css" rel="stylesheet"/>
{% endblock %}
{% block extra_tab %}
{% comment %}
Add Tab for Third Party Apps
<li>
<a href="{{ PROJECT_ROOT }}app">App</a>
</li>
{% endcomment %}
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment