<html xmlns:py="http://genshi.edgewall.org/" |
<html xmlns:py="http://genshi.edgewall.org/" |
xmlns:i18n="http://genshi.edgewall.org/i18n" |
xmlns:i18n="http://genshi.edgewall.org/i18n" |
xmlns:xi="http://www.w3.org/2001/XInclude" |
xmlns:xi="http://www.w3.org/2001/XInclude" |
py:strip=""> |
py:strip=""> |
|
|
<xi:include href="../ga_util.html" /> |
<xi:include href="../ga_util.html" /> |
|
|
<py:def function="page_title">Downloads</py:def> |
<py:def function="page_title">Downloads</py:def> |
|
|
<py:def function="content_class"><!----></py:def> |
|
|
|
<py:match path="primarysidebar"> |
<py:match path="primarysidebar"> |
${ga_sidebar(download_link=h.url_for(controller='ckanext.ga_report.controller:GaReport',action='csv_downloads',month=c.month or 'all'))} |
${ga_sidebar(download_link=h.url_for(controller='ckanext.ga_report.controller:GaReport',action='csv_downloads',month=c.month or 'all'))} |
</py:match> |
</py:match> |
|
|
<div py:match="content"> |
<div py:match="content"> |
<h1>Downloads ${usage_nav('Downloads')}</h1> |
<h1>Downloads ${usage_nav('Downloads')}</h1> |
|
|
<div class="boxed"> |
<div class="boxed"> |
|
|
<form class="form-inline" action="${h.url_for(controller='ckanext.ga_report.controller:GaReport',action='downloads')}" method="get"> |
<form class="form-inline" action="${h.url_for(controller='ckanext.ga_report.controller:GaReport',action='downloads')}" method="get"> |
<div class="controls"> |
<div class="controls"> |
|
|
${month_selector(c.month, c.months, c.day)} |
${month_selector(c.month, c.months, c.day)} |
|
|
<input class="btn button btn-primary" type='submit' value="Update"/> |
<input class="btn button btn-primary" type='submit' value="Update"/> |
</div> |
</div> |
</form> |
</form> |
|
|
<py:if test="c.downloads"> |
<py:if test="c.downloads"> |
${downloads_table(c.downloads)} |
${downloads_table(c.downloads)} |
</py:if> |
</py:if> |
<py:if test="not c.downloads"> |
<py:if test="not c.downloads"> |
<h4>No data</h4> |
<h4>No data</h4> |
<p>There is no download data available for this month</p> |
<p>There is no download data available for this month</p> |
</py:if> |
</py:if> |
</div> |
</div> |
</div> |
</div> |
|
|
<xi:include href="../../layout.html" /> |
<xi:include href="../../layout.html" /> |
|
|
<py:def function="optional_footer"> |
<py:def function="optional_footer"> |
<script type='text/javascript'> |
<script type='text/javascript'> |
$('.dropdown-toggle').dropdown(); |
$('.dropdown-toggle').dropdown(); |
$('.nav-tabs li a').click(function (e) { |
$('.nav-tabs li a').click(function (e) { |
e.preventDefault(); |
e.preventDefault(); |
$(this).tab('show'); |
$(this).tab('show'); |
}) |
}) |
alert(window.location.hash); |
alert(window.location.hash); |
</script> |
</script> |
</py:def> |
</py:def> |
</html> |
</html> |
|
|
|
|
|
|
|
|