<!DOCTYPE html>
<html{{#if Layout.locale}} lang="{{Layout.locale}}"{{/if}}{{#if Layout.version}} data-version="{{Layout.version}}"{{/if}}{{#if Layout.layout_id}} data-layout="{{Layout.layout_id}}"{{/if}}>
<head>
<meta charset="utf-8">
<title>{{join " — " (i18n "layout.title." (fallback Layout.title_id Layout.layout_id) data=Layout) (i18n "common.title")}}</title>

{{#if rum}}
{{#each rum.inline_scripts}}
<script data-src="{{this.src}}">
    {{{this.content}}}
</script>
{{/each}}
<script>
    Ya.Rum.init({{{rum.init.[0]}}}, {{{rum.init.[1]}}});
</script>
<script src="/js/rum.js"></script>
{{#if rum.debug}}
<script src="/js/rum.debug.js"></script>
{{/if}}
<script>
    Ya.Rum.observeDOMNode('2876', '.main-logo');
</script>
{{/if}}

{{#if Layout.layout_id}}
<link rel="stylesheet" href="/css/layouts/{{Layout.layout_id}}.css">
{{/if}}
<link rel="shortcut icon" type="image/x-icon" href="/res/favicon.ico">
</head>
<body{{#if Layout.org_list.filter}} data-filter="{{Layout.org_list.filter}}"{{/if}}>

{{> notification Layout.action}}
{{{this.body}}}

{{#if Layout.scripts}}
{{#each Layout.scripts}}
<script src="/js/{{this}}"></script>
{{/each}}
{{else}}
<script src="/js/index.js"></script>
{{/if}}
</body>
</html>