Skip to content

Commit

Permalink
[#2375] Pull in config extras from ini file into base.html
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Jul 25, 2012
1 parent 1b41a9b commit 1a42b47
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ckan/templates/base.html
Expand Up @@ -75,6 +75,11 @@
<!--[if IE 7]> <link rel="stylesheet" href="{% url_for_static '/base/vendor/font-awesome/css/font-awesome-ie7.css' %}" /> <![endif]-->
<link rel="stylesheet" href="{% url_for_static ('/base/css/main.debug.css' if config.debug else '/base/css/main.css') %}" />
{% endblock %}

{# defined in the config.ini under "ckan.template_head_end" #}
{% block head_extras %}
{{ config.get('ckan.template_head_end') | safe }}
{% endblock %}
</head>

{# Allows custom attributes to be added to the <body> tag #}
Expand Down Expand Up @@ -107,5 +112,10 @@
#}
{%- block scripts %}
{% endblock -%}

{# defined in the config.ini under "ckan.template_footer_end" #}
{% block body_extras %}
{{ config.get('ckan.template_footer_end') | safe }}
{% endblock %}
</body>
</html>

0 comments on commit 1a42b47

Please sign in to comment.