<div id="gd-page">
    <div id="gd-nav">

        <div id="gd-navmain" class="container">
            <div class="row">
                <div class="col-md-4">
                    <?php if ($logo): ?>
                    <a tabindex="2" href="<?php print check_url($front_page); ?>" title="<?php print $site_name; ?>"><img class="gd-logo" id="gd-logo" src="<?php print $logo; ?>" alt="<?php print $site_name; ?>" /></a>
                    <?php endif; ?>
                </div>
                <div class="col-md-8">
                    <?php if ($logged_in) : ?>
                    <ul class="secondary-menu menulist pull-right">
                        <li class="first"><?php print l($user->firstname . ' ' . $user->lastname,'user/profile', array('attributes' => array('tabindex' => '3'))); ?></li>
                        <?php
                        if ( gd_account_user_is_admin() || gd_account_user_is_any_datasource_admin() ) {
                            if ( arg(0) == 'cp' ) {
                                print '<li>'.l("Dashboard Viewer","dashboards", array('query'=>array('ds'=>gd_datasource_find_active()),'attributes' => array('tabindex' => '4'))).'</li>';
                            } else {
                                print '<li>'.l("Control Panel","cp", array('attributes' => array('tabindex' => '4'))).'</li>';
                            }
                        } else {
                            print '<li>'.l("Dashboard Viewer","dashboards", array('attributes' => array('tabindex' => '4'))).'</li>';
                        }
                        ?>
                        <li class="last"><?php print l("Logout","user/logout",array('attributes' => array('tabindex' => '5'))); ?></li>
                    </ul>
                    <?php else : ?>
                    <ul class="menu pull-right">
                        <li class="last">
                            <?php
 * 
 * GovDashboard is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * GovDashboard is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with GovDashboard.  If not, see <http://www.gnu.org/licenses/>.
 */

    if ( !gd_account_user_is_admin() && !gd_account_user_is_any_datasource_admin() ) {
    echo "<h3>Access Denied</h3>";
    drupal_exit();
}
?>

<div id="datamart-usage-chart" class="stats"></div>
<script type='text/javascript'>

    var datamartLinks = <?php echo $datamarts_links_js; ?>;

    $(document).ready(function() {
        var chart = new Highcharts.Chart({
            chart: {
                renderTo: 'datamart-usage-chart',
                defaultSeriesType: 'bar',