{*
    blocks:
        title
        sidebar
        content
    variables:
        extra_title: If set, this will override the contents of the title block
*}
{capture assign="title"}{block name="title"}{$extra_title|default:""}{/block}{/capture}
<!DOCTYPE html>
<html>
<head data-rel-url="{$core.rel_url}">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=8" />
  <link rel="shortcut icon" href="{$core.rel_url}favicon.ico" type="image/x-icon" />
  <link rel="search" type="application/opensearchdescription+xml" href="{$core.rel_url}opensearch.php" title="{t}Eventum Issues search{/t}" />
  <title>{if $title != '' or isset($extra_title)}{$extra_title|default:$title} - {/if}{$core.app_setup.tool_caption|default:$core.app_title}</title>
  <script type="text/javascript">
  <!--
  var user_prefs = {
{if isset($core.user)}
    relative_date: {$core.current_user_prefs.relative_date},
    week_firstday: {$core.current_user_prefs.week_firstday}
{/if}
  };
  //-->
  </script>

  {* libraries setup with component installer *}
  <link rel="stylesheet" type="text/css" media="screen" href="{$core.rel_url}components/font-awesome/css/font-awesome.css?c=8a4d">
  <link rel="stylesheet" type="text/css" media="screen" href="{$core.rel_url}components/jquery-ui/themes/base/all.css?c=5a1a">
  <link rel="stylesheet" type="text/css" media="screen" href="{$core.rel_url}components/jquery-chosen/chosen.css?c=735b">
  <link rel="stylesheet" type="text/css" media="screen" href="{$core.rel_url}components/dropzone/dist/basic.css?c=4ce7">
  {* allow pages to inject to <head> block *}
  {block "stylesheets"}
  {/block}
  {* local directory can add overrides *}
  {$userstyle}

  <script type="text/javascript" src="{$core.rel_url}components/jquery/jquery.js?c=dd5d"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-blockui/jquery.blockUI.js?c=cfd4"></script>
  <script type="text/javascript" src="{$core.rel_url}components/form/src/jquery.form.js?c=f820"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-cookie/jquery.cookie.js?c=c493"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-ui/ui/core.js?c=e638"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-ui/ui/datepicker.js?c=5989"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-ui/ui/widget.js?c=6aa4"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-ui/ui/mouse.js?c=bb11"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-ui/ui/progressbar.js?c=7ba0"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-ui/ui/position.js?c=a204"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-ui/ui/menu.js?c=3a62"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-ui/ui/selectmenu.js?c=4ff4"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-ui/ui/sortable.js?c=728c"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-chosen/chosen.jquery.js?c=b0c3"></script>
  <script type="text/javascript" src="{$core.rel_url}components/dropzone/dist/dropzone.js?c=9666"></script>
  <script type="text/javascript" src="{$core.rel_url}components/autosize/dist/autosize.js?c=b0d3"></script>
  <script type="text/javascript" src="{$core.rel_url}components/jquery-timeago/jquery.timeago.js?c=b642"></script>
  <script type="text/javascript" src="{$core.rel_url}components/filereader.js/filereader.js?c=5684"></script>
  <script type="text/javascript" src="{$core.rel_url}components/garlicjs/js/garlic.min.js?c=aabb"></script>
  <script type="text/javascript" src="{$core.rel_url}components/cmd-ctrl-enter/src/cmd-ctrl-enter.js?c=c5cd"></script>

  {* our css/js after remote assets to allow overrides *}
  <link rel="stylesheet" type="text/css" media="screen" href="{$core.rel_url}css/main.css?c=eec7">
  <link rel="stylesheet" type="text/css" media="screen" href="{$core.rel_url}css/page.css?c=b764">
  <script type="text/javascript" src="{$core.rel_url}js/main.js?c=6a88"></script>
  <script type="text/javascript" src="{$core.rel_url}js/page.js?c=aea6"></script>

  {* allow pages to inject to <head> block *}
  {block "javascripts"}
  {/block}
  {$debugbar_head|default:''}
  {* local directory can add overrides *}
  {$userscript}

  {* local directory can add overrides *}
  {include file="extra_header.tpl.html"}
</head>
<!--[if lt IE 7 ]> <body class="ie6 {block page_classes}{/block}" id="{$core.template_id}"> <![endif]-->
<!--[if IE 7 ]> <body class="ie7 {block page_classes}{/block}" id="{$core.template_id}"> <![endif]-->
<!--[if IE 8 ]> <body class="ie8 {block page_classes}{/block}" id="{$core.template_id}"> <![endif]-->
<!--[if !IE]>--> <body class="{block page_classes}{/block}" id="{$core.template_id}"><!--<![endif]-->
<div id="container">
    {block "header"}{/block}

    <div id="full_width_messages">
    {block "messages"}
        {include "app_messages.tpl.html"}
    {/block}
    </div>

    <div id="middle">
        <div id="content">
        {block name="content"}{/block}
        </div>
        <div class="clear"></div>
    </div>

    {block "footer"}{/block}
    {$debugbar_body|default:''}
</div>
</body>
</html>
