Skip to content

Commit

Permalink
[#2648] Embed the site root in the body element
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Jul 16, 2012
1 parent 2d32a39 commit 97bb92f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/templates/base.html
Expand Up @@ -3,15 +3,15 @@

{# Allows custom attributes to be added to the <html> tag #}
{%- block htmltag -%}
{% set lang = 'en-gb' %}
{% set lang = h.lang() %}
<!--[if IE 7]> <html lang="{{ lang }}" class="ie ie7"> <![endif]-->
<!--[if IE 8]> <html lang="{{ lang }}" class="ie ie8"> <![endif]-->
<!--[if IE 9]> <html lang="{{ lang }}" class="ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="{{ lang }}"> <!--<![endif]-->
{%- endblock -%}

{# Allows custom attributes to be added to the <head> tag #}
{% block headtag %}<head>{% endblock -%}
<head{% block headtag %}{% endblock %}>
{# Append a .js class to the html element #}
<script>document.getElementsByTagName('html')[0].className += ' js';</script>

Expand Down Expand Up @@ -78,7 +78,7 @@
</head>

{# Allows custom attributes to be added to the <body> tag #}
{%- block bodytag %}<body>{% endblock -%}
<body{% block bodytag %} data-site-root="{{ h.url('/', locale='default', qualified=true) }}" data-locale-root="{{ h.url('/', qualified=true) }}"{% endblock %}>

{#
The page block allows you to add content to the page. Most of the time it is
Expand Down

0 comments on commit 97bb92f

Please sign in to comment.