stats.tpl 3.72 KB
Newer Older
1
2
3
{if !$fromindex}
<div class="statinfoblock panel panel-info">
  <h3>{str tag="Overview" section=statistics}</h3>
Naomi Guyer's avatar
Naomi Guyer committed
4
{/if}
5
6
  <table class="table">
    <tr>
7
        <th>{str tag=institutioncreated$showall section=admin}</th>
8
        <td>{$institutiondata.installdate}</td>
9
    </tr>
Naomi Guyer's avatar
Naomi Guyer committed
10
    {if $institutiondata.users}
11
12
    <tr>
        <th>{str tag=users}</th>
13
        <td>{$institutiondata.users}
14
15
16
            <small>{str tag=activeusers section=admin}: {$institutiondata.usersloggedin}</small>
        </td>
    </tr>
Naomi Guyer's avatar
Naomi Guyer committed
17
18
    {/if}
    {if $institutiondata.groups}
19
20
    <tr>
        <th>{str tag=groups}</th>
21
22
        <td>{$institutiondata.groups}
            <small>{$institutiondata.strgroupmemberaverage}</small>
23
        </td>
Naomi Guyer's avatar
Naomi Guyer committed
24
25
    {/if}
    {if $institutiondata.views}
26
27
    <tr>
        <th>{str tag=Views section=view}</th>
28
        <td>{$institutiondata.views}
29
            <small>{$institutiondata.strviewsperuser}</small>
30
        </td>
Naomi Guyer's avatar
Naomi Guyer committed
31
    {/if}
32
33
34
35
36
37
    {if $institutiondata.dbsize}
    <tr>
        <th>{str tag=databasesize section=admin}</th>
        <td>{$institutiondata.dbsize|display_size}</td>
    </tr>
    {/if}
Naomi Guyer's avatar
Naomi Guyer committed
38
    {if $institutiondata.diskusage}
39
40
    <tr>
        <th>{str tag=diskusage section=admin}</th>
41
        <td>{$institutiondata.diskusage|display_size}</td>
Naomi Guyer's avatar
Naomi Guyer committed
42
    {/if}
43
44
45
    {if $showall}
    <tr>
        <th>{str tag=maharaversion section=admin}</th>
46
        <td>{$institutiondata.release}</td>
47
    </tr>
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
    {if $institutiondata.strlatestbranchversion || $institutiondata.strnotinsupport || $institutiondata.strlatestversion || $institutiondata.uptodate}
    <tr>
        <td colspan="2">
        {if $institutiondata.uptodate}
            {$institutiondata.uptodate}
        {else}
            <ul>
            {if $institutiondata.strlatestbranchversion}<li>{$institutiondata.strlatestbranchversion|clean_html|safe}</li>{/if}
            {if $institutiondata.strnotinsupport}<li><span class="text-danger">{$institutiondata.strnotinsupport}</span></li>{/if}
            {if $institutiondata.strlatestversion}<li>{$institutiondata.strlatestversion|clean_html|safe}</li>{/if}
            </ul>
        {/if}
        </td>
    </tr>
    {/if}
63
64
65
66
67
68
69
70
    <tr>
        <th>{str tag=Cron section=admin}</th>
        <td>{if $institutiondata.cronrunning}{str tag=runningnormally section=admin}{else}
                {if $institutiondata.siteclosedbyadmin}
                    {str tag=cronnotrunningsiteclosed1 section=admin}
                {else}
                    {str tag=cronnotrunning2 section=admin}
                {/if}
71
72
            {/if}
        </td>
73
74
75
    </tr>
    {/if}
  </table>
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{if !$fromindex}
</div>
{/if}
{if $institutiondata.usersinfo}
<div class="statinfoblock panel panel-info">
    <h3>{str tag="usersinfo" section=statistics}</h3>
    {$institutiondata.usersinfo|safe}
</div>
{/if}
{if $institutiondata.viewsinfo}
<div class="statinfoblock panel panel-info">
    <h3>{str tag="viewsinfo" section=statistics}</h3>
    {$institutiondata.viewsinfo|safe}
</div>
{/if}
{if $institutiondata.groupinfo}
<div class="statinfoblock panel panel-info">
    <h3>{str tag="groupinfo" section=statistics}</h3>
    {$institutiondata.groupinfo|safe}
</div>
{/if}
{if $institutiondata.weekly}
<div class="statinfoblock panel panel-info">
    <h3>{str tag="weeklytrend" section=statistics}</h3>
    <div class="panel-body">
        <canvas class="graphcanvas" id="sitestatsgraph"></canvas>
        <script type="application/javascript">
        {literal}
        jQuery(function() {
            fetch_graph_data({'id':'sitestatsgraph','type':'line','graph':'graph_institution_data_weekly',
                              'extradata': {'institution': '{/literal}{$institutiondata.institution}{literal}'}
                             });
        });
        {/literal}
        </script>
    </div>
</div>
{/if}