Commit aeffa968 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Bug 1483963 - Adding help file"

parents ee54e805 612595cf
<!-- @license http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later -->
<!-- @copyright For copyright information on Mahara, please see the README file distributed with this software. -->
<h3>Login statistics</h3>
<p>By default you see the logins for the previous calendar month. If you view this page in April, you will see the results for March.</p>
<p>To alter the results time period you can add a <strong>'start'</strong> and an <strong>'end'</strong> option to the URL, e.g.</p>
<p>'admin/statistics.php?type=logins&start=2015-01-01&end=2015-04-30'</p>
<p>This will return the results for the 4-month period of 1 January to 30 April 2015.</p>
......@@ -2150,6 +2150,7 @@ function institution_logins_statistics($limit, $offset, $sort, $sortdesc, $start
$data['table'] = institution_logins_stats_table($limit, $offset, $sort, $sortdesc, $start, $end);
$data['tabletitle'] = get_string('institutionloginstabletitle', 'admin');
$data['tablesubtitle'] = get_string('institutionloginstablesubtitle', 'admin', format_date(strtotime($start), 'strftimedate'), format_date(strtotime($end), 'strftimedate'));
$data['help'] = get_help_icon('core','statistics',null,null,null,'statisticslogins');
$data['summary'] = $data['table']['count'] == 0 ? get_string('nostats', 'admin') : null;
......
......@@ -21,7 +21,7 @@
<div class="subpage panel-body row" id="site-stats-wrap2">
<div id="statistics_table_container" class="col-md-12">
<h3>{$subpagedata.tabletitle}</h3>
<h3>{$subpagedata.tabletitle}{if $subpagedata.help}{$subpagedata.help|safe}{/if}</h3>
{if $subpagedata.tablesubtitle}<div class="small">{$subpagedata.tablesubtitle}</div>{/if}
{if $subpagedata.table.count == 0}{else}
<table id="statistics_table" class="table table-striped fullwidth">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment