Commit 038a8586 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Match stats box with style of register, close site boxes


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent b5161d80
......@@ -147,6 +147,9 @@ $string['reopensitedetail'] = 'Your site is closed. Site administrators may sta
// Statistics
$string['sitestatistics'] = 'Site Statistics';
$string['databasesize'] = 'Database Size';
$string['diskusage'] = 'Disk Usage';
$string['maharaversion'] = 'Mahara version';
// Site options
$string['adminsonly'] = 'Administrators only';
......
......@@ -205,6 +205,8 @@ function site_statistics() {
$data['weekly'][$r->type][$keys[$r->type]++] = array($keys[$r->type], $r->value);
}
}
$data['release'] = get_config('release');
$data['version'] = get_config('version');
return($data);
}
......
......@@ -157,6 +157,8 @@ input#register_register {
.site-stats {
margin: 0 0 1em 0;
padding: 1em 1.5em;
text-align: left;
}
.site-stats h5 {
margin-bottom: .25em;
......
<div id="site-stats-graph" class="fr" width="300" height="200">
</div>
<div class="message site-stats">
{if $sitedata.weekly}
<script type="text/javascript">
<div id="site-stats-graph" class="fr" width="300" height="200"></div>
<script type="text/javascript">
addLoadEvent(function () {literal}{{/literal}
EasyPlot('line', {literal}{}{/literal}, $('site-stats-graph'), {$sitedata.dataarray});
{literal}}{/literal});
</script>
</script>
{/if}
<div class="site-stats fl">
<h5>{$sitedata.name}: {str tag=sitestatistics section=admin}</h5>
<p><strong>{str tag=users}:</strong> {$sitedata.users}{if $sitedata.rank.users} ({str tag=Rank section=admin}: $sitedata.rank.users}){/if}</p>
<p><strong>{str tag=groups}:</strong> {$sitedata.groups}{if $sitedata.rank.groups} ({str tag=Rank section=admin}: $sitedata.rank.groups}){/if}</p>
<p><strong>{str tag=views}:</strong> {$sitedata.views}{if $sitedata.rank.views} ({str tag=Rank section=admin}: $sitedata.rank.views}){/if}</p>
<div class="fl">
<h3>{$sitedata.name}: {str tag=sitestatistics section=admin}</h3>
<p><strong>{str tag=users}:</strong> {$sitedata.users}{if $sitedata.rank.users} ({str tag=Rank section=admin}: $sitedata.rank.users}){/if}</p>
<p><strong>{str tag=groups}:</strong> {$sitedata.groups}{if $sitedata.rank.groups} ({str tag=Rank section=admin}: $sitedata.rank.groups}){/if}</p>
<p><strong>{str tag=views}:</strong> {$sitedata.views}{if $sitedata.rank.views} ({str tag=Rank section=admin}: $sitedata.rank.views}){/if}</p>
<!--p><strong>{str tag=databasesize section=admin}:</strong></p-->
<!--p><strong>{str tag=diskusage section=admin}:</strong></p-->
<p><strong>{str tag=maharaversion section=admin}:</strong> {$sitedata.release}</p>
</div>
<div class="cb"></div>
</div>
<div class="cb"></div>
\ No newline at end of file
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