{#This file is part of ExamSys ExamSys 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. ExamSys 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 ExamSys. If not, see . #} {# This template is for the system information page. author Neill Magill copyright 2022 onwards The University of Nottingham Required variables - * data.data.application - an array containing title and value keys * data.directories - an array containing name, location and permissions keys * data.error_reporting - an array containing title, value and type keys * data.late_log_count * data.late_log_warning * data.mysql_stats - an array containing title and value keys * data.partitions * data.serverinfo - an array containing title and value keys * data.temp_user_count * data.temp_user_warning Required localised language strings - * lang.application * lang.directories * lang.ErrorLogSettings * lang.freespace * lang.more_details * lang.mysqlstatus * lang.off * lang.on * lang.partitions * lang.permissions_good * lang.permissions_bad * lang.records * lang.rogoplugins * lang.serverinformation * lang.table * lang.warning #}
{{lang.table}} {{lang.records}}
log_late {% if data.late_log_warning %} {{lang.warning}} {{lang.more_details}} {% endif %} {{data.late_log_count}}
temp_users {% if data.late_log_warning %} {{lang.warning}} {{lang.more_details}} {% endif %} {{data.temp_user_count}}
{% for id,item in data.mysql_stats %} {% endfor %}
{{lang.mysqlstatus}}
{{item.title}} {{item.value}}
{% for id,item in data.application %} {% endfor %}
{{lang.application}}
{{item.title}} {{item.value}}
{% for id,item in data.error_reporting %} {% endfor %}
{{lang.ErrorLogSettings}}
{{item.title}} {% if item.type == 'onoff' and item.value %} {{lang.on}} {% elseif item.type == 'onoff' %} {{lang.off}} {% else %} {{item.value}} {% endif %}
{% for id,item in data.plugins %} {% endfor %}
{{lang.rogoplugins}}
{{item.title}} {{item.value|raw}}
{% for id,item in data.serverinfo %} {% endfor %}
{{lang.serverinformation}}
{{item.title}} {{item.value|raw}}

{{lang.partitions}}

{% for id,item in data.partitions %}{% if item[1] != 'OK' and item[5] != '' %}

{{item[5]}}

{{ lang.freespace | format(item.freespace, item.totalspace) }}
{% endif %}{% endfor %}

{{lang.directories}}

{% for id,item in data.directories %}

{{item.name}}

{{ item.location }}
{% if item.permissions %} {{lang.permissions_good}} {% else %} {{lang.permissions_bad}} {% endif %}
{% endfor %}