html fixes and reeneable downloads count
[ckanext-ga-report.git] / ckanext / ga_report / templates / ga_report / site / layout_base.html
blob:a/ckanext/ga_report/templates/ga_report/site/layout_base.html -> blob:b/ckanext/ga_report/templates/ga_report/site/layout_base.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]--> <!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en" <!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"
xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
xmlns:i18n="http://genshi.edgewall.org/i18n" xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:py="http://genshi.edgewall.org/" xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude"
> <!--<![endif]--> > <!--<![endif]-->
<xi:include href="../../_util.html" /> <xi:include href="../../_util.html" />
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
   
<title>${page_title()} - ${g.site_title}</title> <title>${page_title()} - ${g.site_title}</title>
<meta name="description" content="" /> <meta name="description" content="" />
<meta name="author" content="" /> <meta name="author" content="" />
   
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="${h.url_for_static(g.favicon)}" /> <link rel="shortcut icon" href="${h.url_for_static(g.favicon)}" />
   
<py:choose> <py:choose>
<py:when test="defined('optional_feed')"> <py:when test="defined('optional_feed')">
${optional_feed()} ${optional_feed()}
</py:when> </py:when>
<py:otherwise> <py:otherwise>
<link rel="alternate" type="application/atom+xml" title="${g.site_title} - Recent Revision History" href="${h.url_for(controller='revision', action='list', format='atom', days=1)}" /> <link rel="alternate" type="application/atom+xml" title="${g.site_title} - Recent Revision History" href="${h.url_for(controller='revision', action='list', format='atom', days=1)}" />
</py:otherwise> </py:otherwise>
</py:choose> </py:choose>
<link href='http://fonts.googleapis.com/css?family=Ubuntu:400,700' rel='stylesheet' type='text/css' /> <link href='http://fonts.googleapis.com/css?family=Ubuntu:400,700' rel='stylesheet' type='text/css' />
   
<link rel="stylesheet" href="${h.url_for_static('/scripts/vendor/jqueryui/1.8.14/css/jquery-ui.custom.css')}" type="text/css" media="screen, print" /> <link rel="stylesheet" href="${h.url_for_static('/scripts/vendor/jqueryui/1.8.14/css/jquery-ui.custom.css')}" type="text/css" media="screen, print" />
<link rel="stylesheet" href="${h.url_for_static('/css/bootstrap.min.css')}" type="text/css" media="screen, projection" /> <link rel="stylesheet" href="${h.url_for_static('/css/bootstrap.min.css')}" type="text/css" media="screen, projection" />
<link rel="stylesheet" href="${h.url_for_static('/css/chosen.css')}" type="text/css" /> <link rel="stylesheet" href="${h.url_for_static('/css/chosen.css')}" type="text/css" />
<link rel="stylesheet" href="${h.url_for_static('/css/style.css?v=2')}" /> <link rel="stylesheet" href="${h.url_for_static('/css/style.css?v=2')}" />
${jsConditionalForIe(9, '&lt;script type="text/javascript" src="' + h.url_for_static('/scripts/vendor/html5shiv/html5.js') + '"&gt;&lt;/script&gt;')} ${jsConditionalForIe(9, '&lt;script type="text/javascript" src="' + h.url_for_static('/scripts/vendor/html5shiv/html5.js') + '"&gt;&lt;/script&gt;')}
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script> <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="/scripts/vendor/rickshaw.min.css"/> <link rel="stylesheet" type="text/css" href="/scripts/vendor/rickshaw.min.css"/>
<link rel="stylesheet" type="text/css" href="/css/ga_report.css?1"/> <link rel="stylesheet" type="text/css" href="/css/ga_report.css?1"/>
<script type="text/javascript" src="/scripts/modernizr-2.6.2.custom.js"></script> <script type="text/javascript" src="/scripts/modernizr-2.6.2.custom.js"></script>
<script type="text/javascript" src="/scripts/vendor/jquery.sparkline.modified.js"></script> <script type="text/javascript" src="/scripts/vendor/jquery.sparkline.modified.js"></script>
<script type="text/javascript" src="/scripts/ckanext_ga_reports.js?1"></script> <script type="text/javascript" src="/scripts/ckanext_ga_reports.js?1"></script>
<script type="text/javascript" src="/scripts/rickshaw_ie7_shim.js"></script> <script type="text/javascript" src="/scripts/rickshaw_ie7_shim.js"></script>
<script type="text/javascript" src="/scripts/vendor/d3.v2.js"></script> <script type="text/javascript" src="/scripts/vendor/d3.v2.js"></script>
<script type="text/javascript" src="/scripts/vendor/d3.layout.min.js"></script> <script type="text/javascript" src="/scripts/vendor/d3.layout.min.js"></script>
<script type="text/javascript" src="/scripts/vendor/rickshaw.min.js"></script> <script type="text/javascript" src="/scripts/vendor/rickshaw.min.js"></script>
<style> <style>
#pre-content #breadcrumbs { #pre-content #breadcrumbs {
padding-left: 0; padding-left: 0;
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;
margin-bottom: 0; margin-bottom: 0;
list-style-type: none; list-style-type: none;
color: #ccc color: #ccc
} }
   
#pre-content #breadcrumbs li { #pre-content #breadcrumbs li {
color: #999; color: #999;
display: inline-block; display: inline-block;
zoom: 1; zoom: 1;
*display: inline; *display: inline;
margin-right: 8px margin-right: 8px
} }
   
#pre-content #breadcrumbs li:after { #pre-content #breadcrumbs li:after {
content: '/'; content: '/';
display: inline-block; display: inline-block;
zoom: 1; zoom: 1;
*display: inline; *display: inline;
margin-left: 12px margin-left: 12px
} }
   
#pre-content #breadcrumbs li:last-child:after { #pre-content #breadcrumbs li:last-child:after {
display: none display: none
} }
   
#pre-content #breadcrumbs a { #pre-content #breadcrumbs a {
color: #999 color: #999
} }
   
#pre-content #breadcrumbs a:hover { #pre-content #breadcrumbs a:hover {
color: #000; color: #000;
text-decoration: none text-decoration: none
} }
   
#pre-content #breadcrumbs .spacer { #pre-content #breadcrumbs .spacer {
color: #ccc color: #ccc
} }
</style> </style>
<py:if test="defined('optional_head')"> <py:if test="defined('optional_head')">
${optional_head()} ${optional_head()}
</py:if> </py:if>
   
${h.literal(getattr(g, 'template_head_end', ''))} ${h.literal(getattr(g, 'template_head_end', ''))}
</head> </head>
   
<body class="${request.environ.get('pylons.routes_dict', {}).get('action')} <body class="${request.environ.get('pylons.routes_dict', {}).get('action')}
${request.environ.get('pylons.routes_dict', {}).get('controller').split(':')[-1]} ${request.environ.get('pylons.routes_dict', {}).get('controller').split(':')[-1]}
${defined('body_class') and body_class()} ${defined('body_class') and body_class()}
"> ">
   
<div id="wrap"> <div id="wrap">
<div class="header outer"> <div class="header outer">
<header class="container"> <header class="container">
<div class="menu account"> <div class="menu account">
<span class="ckan-logged-in" style="display: none;"> <span class="ckan-logged-in" style="display: none;">
<a href="${h.url_for(controller='user',action='me')}">${h.gravatar((c.userobj.email_hash if c and c.userobj else ''),size=20)}${c.user}</a> <a href="${h.url_for(controller='user',action='me')}">${h.gravatar((c.userobj.email_hash if c and c.userobj else ''),size=20)}${c.user}</a>
<a href="${h.url_for('/user/_logout')}">Logout</a> <a href="${h.url_for('/user/_logout')}">Logout</a>
</span> </span>
<span class="ckan-logged-out"> <span class="ckan-logged-out">
<a href="${h.url_for(controller='user',action='login')}">Login</a> <a href="${h.url_for(controller='user',action='login')}">Login</a>
<a href="${h.url_for(controller='user',action='register')}">Register</a> <a href="${h.url_for(controller='user',action='register')}">Register</a>
</span> </span>
</div> </div>
<a href="${h.url('home')}"> <a href="${h.url('home')}">
<img width="64" src="${h.url_for_static(g.site_logo)}" alt="${g.site_title} Logo" title="${g.site_title} Logo" id="logo" /> <img width="196" src="${h.url_for_static(g.site_logo)}" alt="${g.site_title} Logo" title="${g.site_title} Logo" id="logo" />
</a> </a>
<div id="site-name"> <div id="site-name">
<!-- <a href="${h.url('home')}">${g.site_title} &mdash; ${g.site_description}</a>--> <!-- <a href="${h.url('home')}">${g.site_title} &mdash; ${g.site_description}</a>-->
</div> </div>
<div class="menu"> <div class="menu">
<!-- <span id="menusearch"> <!-- <span id="menusearch">
<form action="${h.url(controller='package', action='search')}" method="GET"> <form action="${h.url(controller='package', action='search')}" method="GET">
<input name="q" value="${c.q if hasattr(c, 'q') else ''}" class="search" placeholder="${_('Find datasets')}" /> <input name="q" value="${c.q if hasattr(c, 'q') else ''}" class="search" placeholder="${_('Find datasets')}" />
</form> </form>
</span> </span>
<div id="mainmenu"> <div id="mainmenu">
<span py:if="h.check_access('package_create')">${h.nav_link(_('Add a dataset'), controller='package', action='new')}</span> <span py:if="h.check_access('package_create')">${h.nav_link(_('Add a dataset'), controller='package', action='new')}</span>
${h.nav_link(_('Search'), controller='package', action='search', highlight_actions = 'new index')} ${h.nav_link(_('Search'), controller='package', action='search', highlight_actions = 'new index')}
${h.nav_link(_('Groups'), named_route='%s_index' % h.default_group_type())} ${h.nav_link(_('Groups'), named_route='%s_index' % h.default_group_type())}
${h.nav_link(_('About'), controller='home', action='about')} ${h.nav_link(_('About'), controller='home', action='about')}
</div>--> </div>-->
</div> </div>
</header> </header>
</div> </div>
<div id="pre-content"> <div id="pre-content">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<ul id="breadcrumbs"> <ul id="breadcrumbs">
<li><a href="/"><i class="icon-home"></i></a></li> <li><a href="/"><i class="icon-home"></i></a></li>
<breadcrumbs> <breadcrumbs>
</breadcrumbs> </breadcrumbs>
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
   
<py:with vars="messages = list(h.flash.pop_messages())"> <py:with vars="messages = list(h.flash.pop_messages())">
<div class="flash-messages container"> <div class="flash-messages container">
<div class="alert ${m.category}" py:for="m in messages"> <div class="alert ${m.category}" py:for="m in messages">
${h.literal(m)} ${h.literal(m)}
</div> </div>
</div> </div>
</py:with> </py:with>
   
<div id="main" class="container" role="main"> <div id="main" class="container" role="main">
<h1 py:if="defined('page_heading')" class="page_heading"> <h1 py:if="defined('page_heading')" class="page_heading">
<img py:if="defined('page_logo')" id="page-logo" src="${page_logo()}" alt="Page Logo" /> <img py:if="defined('page_logo')" id="page-logo" src="${page_logo()}" alt="Page Logo" />
<!-- ${page_heading()} --> <!-- ${page_heading()} -->
</h1> </h1>
<div class="row"> <div class="row">
<div class="span12"> <div class="span12">
<div id="minornavigation"> <div id="minornavigation">
<minornavigation></minornavigation> <minornavigation></minornavigation>
</div> </div>
</div> </div>
</div> </div>
   
<div class="row"> <div class="row">
<div class="span9 content-outer"> <div class="span9 content-outer">
<div id="content"> <div id="content">
<py:if test="defined('content')"> <py:if test="defined('content')">
${content()} ${content()}
</py:if> </py:if>
<content> <content>
<p>Master content template placeholder &hellip; please replace me.</p> <p>Master content template placeholder &hellip; please replace me.</p>
</content> </content>
</div> <!-- /content --> </div> <!-- /content -->
</div> </div>
<div class="span3 sidebar-outer"> <div class="span3 sidebar-outer">
<div id="sidebar"> <div id="sidebar">
<div class="col-md-4"> <div class="col-md-4">
<div class="whitebox"> <div class="whitebox">
<strong>Graph Legend</strong> <strong>Graph Legend</strong>
<div id="graph-legend-container"> <div id="graph-legend-container">
<div style="display: none;" id="legend_none">(No graph is loaded)</div> <div style="display: none;" id="legend_none">(No graph is loaded)</div>
</div> </div>
</div> </div>
</div> </div>
   
<ul class="widget-list"> <ul class="widget-list">
<py:if test="defined('primary_sidebar_extras')"> <py:if test="defined('primary_sidebar_extras')">
${primary_sidebar_extras()} ${primary_sidebar_extras()}
</py:if> </py:if>
<primarysidebar> <primarysidebar>
<!-- Primary Side Bar Goes Here --> <!-- Primary Side Bar Goes Here -->
</primarysidebar> </primarysidebar>
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<br/><br/> <br/><br/>
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>
<div class="footer outer"> <div class="footer outer">
<footer class="container"> <footer class="container">
<div class="row"> <div class="row">
<!-- <div class="span3"> <!-- <div class="span3">
<h3 class="widget-title">About ${g.site_title}</h3> <h3 class="widget-title">About ${g.site_title}</h3>
<div class="textwidget"> <div class="textwidget">
<ul> <ul>
<li>${h.link_to(_('About'), h.url_for(controller='home', action='about'))}</li> <li>${h.link_to(_('About'), h.url_for(controller='home', action='about'))}</li>
<li> <li>
<a href="http://twitter.com/ckanproject">Twitter @ckanproject</a> <a href="http://twitter.com/ckanproject">Twitter @ckanproject</a>
</li> </li>
<li>${h.link_to(_('API'), h.url_for(controller='api', action='get_api', ver=1))}</li> <li>${h.link_to(_('API'), h.url_for(controller='api', action='get_api', ver=1))}</li>
<li>${h.link_to(_('API Docs'), 'http://docs.ckan.org/en/latest/api.html')}</li> <li>${h.link_to(_('API Docs'), 'http://docs.ckan.org/en/latest/api.html')}</li>
<li> <li>
<a href="http://ckan.org/contact/">Contact Us</a> <a href="http://ckan.org/contact/">Contact Us</a>
</li> </li>
<li> <li>
<a href="http://okfn.org/privacy-policy/">Privacy Policy</a> <a href="http://okfn.org/privacy-policy/">Privacy Policy</a>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
<div class="span3"> <div class="span3">
<h3 class="widget-title">Sections</h3> <h3 class="widget-title">Sections</h3>
<div class="textwidget"> <div class="textwidget">
<ul> <ul>
<li> <li>
<a href="${h.url(controller='user', action='index')}"> <a href="${h.url(controller='user', action='index')}">
Users Users
</a> </a>
</li> </li>
<li> <li>
<a href="${h.url(controller='tag', action='index')}"> <a href="${h.url(controller='tag', action='index')}">
Tags Tags
</a> </a>
</li> </li>
<li py:if="'stats' in config.get('ckan.plugins','').split(' ')"> <li py:if="'stats' in config.get('ckan.plugins','').split(' ')">
<a href="${h.url('stats')}"> <a href="${h.url('stats')}">
Statistics Statistics
</a> </a>
</li> </li>
<li> <li>
<a href="${h.url(controller='revision', action='index')}"> <a href="${h.url(controller='revision', action='index')}">
Revisions Revisions
</a> </a>
</li> </li>
<li> <li>
<a href="${h.url_for('ckanadmin_index')}"> <a href="${h.url_for('ckanadmin_index')}">
Site Admin Site Admin
</a> </a>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
<div class="span3"> <div class="span3">
<h3 class="widget-title">Languages</h3> <h3 class="widget-title">Languages</h3>
<div class="textwidget"> <div class="textwidget">
<ul> <ul>
<?python <?python
current_url = request.environ['CKAN_CURRENT_URL'] current_url = request.environ['CKAN_CURRENT_URL']
?> ?>
<li py:for="locale in h.get_available_locales()"> <li py:for="locale in h.get_available_locales()">
<a href="${h.url(current_url, locale=str(locale))}"> <a href="${h.url(current_url, locale=str(locale))}">
${locale.display_name or locale.english_name} ${locale.display_name or locale.english_name}
</a> </a>
</li> </li>
</ul> </ul>
</div> </div>
</div>--> </div>-->
<div class="span12"> <div class="span12">
<p id="credits"> <p id="credits">
&copy; 2012-2014 &copy; 2012-2014
<img src="//assets.okfn.org/images/logo/okf_logo_white_and_green_tiny.png" id="footer-okf-logo" /> <img src="//assets.okfn.org/images/logo/okf_logo_white_and_green_tiny.png" id="footer-okf-logo" />
<a href="http://okfn.org/">Open Knowledge Foundation</a> <a href="http://okfn.org/">Open Knowledge Foundation</a>
Licensed under the <a href="http://opendatacommons.org/licenses/odbl/1.0/">Open Database License</a> Licensed under the <a href="http://opendatacommons.org/licenses/odbl/1.0/">Open Database License</a>
<a href="http://opendefinition.org/"><img alt="This Content and Data is Open" src="//assets.okfn.org/images/ok_buttons/od_80x15_blue.png" style="border: none;"/></a> <a href="http://opendefinition.org/"><img alt="This Content and Data is Open" src="//assets.okfn.org/images/ok_buttons/od_80x15_blue.png" style="border: none;"/></a>
   
<br/><br/> <br/><br/>
Powered by <a href="http://ckan.org">CKAN</a> v${c.__version__}.<br/> Powered by <a href="http://ckan.org">CKAN</a> v${c.__version__}.<br/>
</p> </p>
</div> </div>
</div> </div>
</footer> </footer>
</div> <!-- eo #container --> </div> <!-- eo #container -->
<div style="display:none;" id="scripts"> <div style="display:none;" id="scripts">
<!--<script src="${h.url_for_static('/scripts/vendor/jquery/1.7.1/jquery.js')}"></script>--> <!--<script src="${h.url_for_static('/scripts/vendor/jquery/1.7.1/jquery.js')}">