Skip to content

Commit

Permalink
[#2375] Add new {% block subtitle %} to base.html
Browse files Browse the repository at this point in the history
Saves us using the delimiter all over the place in the templates.
  • Loading branch information
aron committed Aug 2, 2012
1 parent 06257ac commit 56c258f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ckan/templates/base.html
Expand Up @@ -41,7 +41,13 @@
{% block title %}My Subtitle - {{ super() }}{% endblock %}

#}
<title>{% block title %}{{ g.site_title }}{% endblock %}</title>
<title>
{%- block title -%}
{%- block subtitle %}{% endblock -%}
{%- if self.subtitle()|trim %} {{ config.template_title_delimiter or '-' }} {% endif -%}

This comment has been minimized.

Copy link
@tobes

tobes Aug 2, 2012

Contributor

we should not really access config in templates only g. as we can override that - I think I will cause all jinja templates to die if they even think about accessing config and set through the app_globals - i'll fix things like this so don't worry

Also this is ltr language specific

This comment has been minimized.

Copy link
@aron

aron via email Aug 3, 2012

Author Contributor
{{ g.site_title }}
{%- endblock -%}
</title>

{#
The html5shim allows you to modify/override the html5 shim. This is useful
Expand Down

0 comments on commit 56c258f

Please sign in to comment.